Skip to content

Commit a307057

Browse files
authored
Merge pull request #74 from Kinto/rename-kinto-http.py
Rename kinto-client to kinto-http.
2 parents 7702c4b + df312d5 commit a307057

26 files changed

+69
-67
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[run]
2-
omit = kinto_client/tests/*
2+
omit = kinto_http/tests/*

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.cache
22
*.pyc
3-
kinto_client.egg-info/
3+
kinto_http.egg-info/
44
.coverage
55
.venv/
66
.tox

CHANGELOG.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ CHANGELOG
44
This document describes changes between each past release.
55

66

7-
5.1.0 (unreleased)
7+
6.0.0 (unreleased)
88
==================
99

10-
- Nothing changed yet.
10+
**Breaking changes**
11+
12+
- Rename kinto_client to kinto_http (#74)
1113

1214

1315
5.0.0 (2016-05-12)
@@ -87,7 +89,7 @@ This document describes changes between each past release.
8789
- Added a retry option for batch requests (#51)
8890
- Use the "default" bucket if nothing is specified (#50)
8991
- Added a ``if_not_exists`` argument to the creation methods (#42)
90-
- Added a replication mechanism in ``kinto_client.replication`` (#26)
92+
- Added a replication mechanism in ``kinto_http.replication`` (#26)
9193
- Handle the ``last_modified`` argument on update or create operations (#24)
9294

9395
**Bug fixes**

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
include *.rst README.rst CHANGELOG.rst tox.ini Makefile .coveragerc
22
include *.txt
33
include LICENSE
4-
recursive-include kinto_client *.ini
4+
recursive-include kinto_http *.ini

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ need-kinto-running:
3030
@curl http://localhost:8888/v0/ 2>/dev/null 1>&2 || (echo "Run 'make runkinto' before starting tests." && exit 1)
3131

3232
runkinto: install-dev
33-
$(VENV)/bin/kinto --ini kinto_client/tests/config/kinto.ini migrate
34-
$(VENV)/bin/kinto --ini kinto_client/tests/config/kinto.ini start
33+
$(VENV)/bin/kinto --ini kinto_http/tests/config/kinto.ini migrate
34+
$(VENV)/bin/kinto --ini kinto_http/tests/config/kinto.ini start
3535

3636
tests-once: install-dev
37-
$(VENV)/bin/py.test --cov-report term-missing --cov-fail-under 100 --cov kinto_client
37+
$(VENV)/bin/py.test --cov-report term-missing --cov-fail-under 100 --cov kinto_http
3838

3939
functional: install-dev need-kinto-running
40-
$(VENV)/bin/py.test kinto_client/tests/functional.py
40+
$(VENV)/bin/py.test kinto_http/tests/functional.py
4141

4242
tests: install-dev need-kinto-running
43-
$(VENV)/bin/py.test -f kinto_client/tests/ kinto_client/tests/functional.py
43+
$(VENV)/bin/py.test -f kinto_http/tests/ kinto_http/tests/functional.py
4444

4545
clean:
4646
find . -name '*.pyc' -delete

README.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
Kinto python client
22
###################
33

4-
.. image:: https://img.shields.io/travis/Kinto/kinto.py.svg
5-
:target: https://travis-ci.org/Kinto/kinto.py
4+
.. image:: https://img.shields.io/travis/Kinto/kinto-http.py.svg
5+
:target: https://travis-ci.org/Kinto/kinto-http.py
66

7-
.. image:: https://img.shields.io/pypi/v/kinto-client.svg
8-
:target: https://pypi.python.org/pypi/kinto-client
7+
.. image:: https://img.shields.io/pypi/v/kinto-http.svg
8+
:target: https://pypi.python.org/pypi/kinto-http
99

10-
.. image:: https://coveralls.io/repos/Kinto/kinto.py/badge.svg?branch=master
11-
:target: https://coveralls.io/r/Kinto/kinto.py
10+
.. image:: https://coveralls.io/repos/Kinto/kinto-http.py/badge.svg?branch=master
11+
:target: https://coveralls.io/r/Kinto/kinto-http.py
1212

1313

1414
Kinto is a service that allows to store and synchronize arbitrary data,
1515
attached to a user account. Its primary interface is HTTP.
1616

17-
*kinto-client* is a Python library that eases the interactions with
17+
*kinto-http* is a Python library that eases the interactions with
1818
a *Kinto* server instance. `A project with related goals is
1919
also available for JavaScript <https://github.com/kinto/kinto.js>`_.
2020

@@ -24,7 +24,7 @@ Installation
2424

2525
Use pip::
2626

27-
$ pip install kinto-client
27+
$ pip install kinto-http
2828

2929

3030
Usage
@@ -43,7 +43,7 @@ Here is an overview of what the API provides:
4343

4444
.. code-block:: python
4545
46-
from kinto_client import Client
46+
from kinto_http import Client
4747
4848
client = Client(server_url="http://localhost:8888/v1",
4949
auth=('alexis', 'p4ssw0rd'))
@@ -68,7 +68,7 @@ Basic authentication policies.
6868

6969
.. code-block:: python
7070
71-
from kinto_client import Client
71+
from kinto_http import Client
7272
credentials = ('alexis', 'p4ssw0rd')
7373
7474
client = Client(server_url='http://localhost:8888/v1',
@@ -89,7 +89,7 @@ You can use the ``server_info`` method to get the server information::
8989

9090
.. code-block:: python
9191
92-
from kinto_client import Client
92+
from kinto_http import Client
9393
9494
client = Client(server_url='http://localhost:8888/v1')
9595
info = client.server_info()
@@ -105,7 +105,7 @@ If no specific bucket name is provided, the "default" bucket is used.
105105

106106
.. code-block:: python
107107
108-
from kinto_client import Client
108+
from kinto_http import Client
109109
credentials = ('alexis', 'p4ssw0rd')
110110
111111
client = Client(server_url='http://localhost:8888/v1',
@@ -257,7 +257,7 @@ To enable this, specify the number of retries on the client:
257257
retry=10)
258258
259259
The Kinto protocol lets the server `define the duration in seconds between retries
260-
<https://kinto.readthedocs.io/en/latest/api/1.x/cliquet/backoff.html#retry-after-indicators>`_.
260+
<https://kinto.readthedocs.io/en/latest/api/1.x/backoff.html>`_.
261261
It is possible (but not recommended) to force this value in the clients:
262262

263263
.. code-block:: python
@@ -297,7 +297,7 @@ to ease configuration and initialization of client from command-line arguments.
297297
import argparse
298298
import logging
299299
300-
from kinto_client import cli_utils
300+
from kinto_http import cli_utils
301301
302302
logger = logging.getLogger(__name__)
303303

kinto_client/__init__.py renamed to kinto_http/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
from contextlib import contextmanager
66

77

8-
from kinto_client import utils
9-
from kinto_client.session import create_session, Session
10-
from kinto_client.batch import BatchSession
11-
from kinto_client.exceptions import BucketNotFound, KintoException
8+
from kinto_http import utils
9+
from kinto_http.session import create_session, Session
10+
from kinto_http.batch import BatchSession
11+
from kinto_http.exceptions import BucketNotFound, KintoException
1212

1313

1414
__all__ = ('Endpoints', 'Session', 'Client',

kinto_client/batch.py renamed to kinto_http/batch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from . import utils
22
from collections import defaultdict
33

4-
from kinto_client.exceptions import KintoException
4+
from kinto_http.exceptions import KintoException
55

66

77
class BatchSession(object):
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)