1
1
Kinto python client
2
2
###################
3
3
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
6
6
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
9
9
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
12
12
13
13
14
14
Kinto is a service that allows to store and synchronize arbitrary data,
15
15
attached to a user account. Its primary interface is HTTP.
16
16
17
- *kinto-client * is a Python library that eases the interactions with
17
+ *kinto-http * is a Python library that eases the interactions with
18
18
a *Kinto * server instance. `A project with related goals is
19
19
also available for JavaScript <https://github.com/kinto/kinto.js> `_.
20
20
@@ -24,7 +24,7 @@ Installation
24
24
25
25
Use pip::
26
26
27
- $ pip install kinto-client
27
+ $ pip install kinto-http
28
28
29
29
30
30
Usage
@@ -43,7 +43,7 @@ Here is an overview of what the API provides:
43
43
44
44
.. code-block :: python
45
45
46
- from kinto_client import Client
46
+ from kinto_http import Client
47
47
48
48
client = Client(server_url = " http://localhost:8888/v1" ,
49
49
auth = (' alexis' , ' p4ssw0rd' ))
@@ -68,7 +68,7 @@ Basic authentication policies.
68
68
69
69
.. code-block :: python
70
70
71
- from kinto_client import Client
71
+ from kinto_http import Client
72
72
credentials = (' alexis' , ' p4ssw0rd' )
73
73
74
74
client = Client(server_url = ' http://localhost:8888/v1' ,
@@ -89,7 +89,7 @@ You can use the ``server_info`` method to get the server information::
89
89
90
90
.. code-block :: python
91
91
92
- from kinto_client import Client
92
+ from kinto_http import Client
93
93
94
94
client = Client(server_url = ' http://localhost:8888/v1' )
95
95
info = client.server_info()
@@ -105,7 +105,7 @@ If no specific bucket name is provided, the "default" bucket is used.
105
105
106
106
.. code-block :: python
107
107
108
- from kinto_client import Client
108
+ from kinto_http import Client
109
109
credentials = (' alexis' , ' p4ssw0rd' )
110
110
111
111
client = Client(server_url = ' http://localhost:8888/v1' ,
@@ -257,7 +257,7 @@ To enable this, specify the number of retries on the client:
257
257
retry = 10 )
258
258
259
259
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> `_.
261
261
It is possible (but not recommended) to force this value in the clients:
262
262
263
263
.. code-block :: python
@@ -297,7 +297,7 @@ to ease configuration and initialization of client from command-line arguments.
297
297
import argparse
298
298
import logging
299
299
300
- from kinto_client import cli_utils
300
+ from kinto_http import cli_utils
301
301
302
302
logger = logging.getLogger(__name__ )
303
303
0 commit comments