Changelogs » Kinto-http

PyUp Safety actively tracks 334,184 Python packages for vulnerabilities and notifies you when to upgrade.

Kinto-http

10.7.0

===================
  
  - Nothing changed yet.

10.6.0

===================
  
  **New features**
  
  - Specify requests timeout in client constructor

10.5.0

===================
  
  **New features**
  
  - Add history support (fixes 112), Thanks FlorianKuckelkorn!

10.4.1

===================
  
  **Bug fixes**
  
  - Handle bearer tokens without a colon.

10.4.0

===================
  
  - Add support for Bearer tokens in the CLI utilities.
  - Use black for code formatting.

10.3.0

===================
  
  **New features**
  
  - Add support for OAuth access tokens (OpenID) with the ``BearerTokenAuth()`` helper. See README. (197)

10.2.0

===================
  
  **New features**
  
  - Created new method on client to get paginated records ``get_paginated_records``. (175)
  - Allow additional querystring params in `get_*()` methods

10.1.1

===================
  
  **Bug fixes**
  
  - Fix JSON support for `in_` and `exclude_`. (188)

10.1.0

===================
  
  **New feature**
  
  - Convert params values as JSON values before passing them to requests. (185)

10.0.0

===================
  
  **Breaking changes**
  
  By default, the client now raises an exception when a 4XX error occurs in a batch request (154)
  
  In order to ignore those errors as before, instantiate the client with ``ignore_batch_4xx=True``.
  
  **New feature**
  
  - Raise a specific ``CollectionNotFound`` exception rather than a generic ``KintoException``.
  
  **Bug fixes**
  
  - Handle date and datetime object in a Kinto payload. They will be
  formated as ISO date JSON strings.
  
  **Internal changes**
  
  - Update tests to work with Kinto 11.0.0.
  - Update tests to use stdlib mock module.

9.1.2

==================
  
  **Internal changes**
  
  - Get rid of ``six``

9.1.1

==================
  
  **Bug fixes**
  
  - Fix patch methods in batch requests (fixes 171)

9.1.0

==================
  
  **Significant changes**
  
  - When the server returns a ``409 Conflict`` error response, the request will
  be retried if the ``retry`` parameter is superior to zero (fixes 167)
  
  **New Features**
  
  - Expose kinto-http and Python module version in the User-Agent (157)
  - Support different PATCH types. Now, instead of settling for the
  "default" patch method offered by the Kinto server, you can choose
  by importing a PatchType subclass from ``kinto_http.patch_type``. (Fixes 125.)
  
  **Bug fixes**
  
  - No longer support ``method`` arguments on the ``update_bucket``,
  ``update_group``, ``update_collection``, and ``update_record``
  methods. This argument only existed to support the ``patch_*``
  methods and was never intended to be part of the public API.

9.0.1

==================
  
  **Bug fixes**
  
  - Fix exception rendering (fixes 153)

9.0.0

==================
  
  **Breaking changes**
  
  - The client will fail a batch only when a 5XX error occurs (148)
  
  **New Features**
  
  - Log all the batch responses (148)
  - Log the request and the batch responses in debug (148)
  - Allow reading responses from batch requests with the ``results()`` method. (146)

8.0.1

==================
  
  **Bug fixes**
  
  - Fix get_records_timestamp JSONDecode error while trying to decode
  the body of a HEAD response. (144)

8.0.0

==================
  
  **Breaking changes**
  
  - Fetch only one page when ``_limit`` is specified and allow to override this
  with a ``pages`` argument (fixes 136)
  - Make client methods API consistent by forcing keyword parameters (119)
  - Deduce the ``id`` of a resource with the value of ``id`` in ``data`` if present (143)
  - Drop Python 2.7 support. Now supports Python 3.5+
  
  **New Features**
  
  - Keep tracks of Backoff headers and raise an ``BackoffException`` if
  we are not waiting enough between two calls. (53)
  - Add ``--retry`` and ``--retry-after`` to CLI utils helpers (fixes 126)
  
  **Bug fixes**
  
  - Fix retry behaviour when responses are successful (fixes 129)
  - Fix Retry-After value to be read as integer rather than string. (131)
  - Fix No JSON could be decoded ValueError (fixes 116)
  
  **Internal changes**
  
  - ``make tests-once`` to run functional tests in order to calculate coverage correctly (131)

7.2.0

==================
  
  - Only provide the `data` JSON field when data is provided. (122)

7.1.0

==================
  
  **Bug fixes**
  
  - Method for plural endpoints now return list of objects instead of ``odict_values``.
  
  **New features**
  
  - Add logging (fixes 36, 110, thanks sahildua2305)
  
  **Documentation**
  
  - Fix explanation about safe/if_match/last_modified
  - Fix missing methods in docs (102, thanks gabisurita)
  - Improve contributing guide (104, 111,  thanks Sayli-Karnik)
  - Show how to use the FxABearerTokenAuth auth (117)

7.0.0

==================
  
  **Breaking changes**
  
  - Removed ``if_exists`` argument from the ``delete_*s`` methods for plural endpoints
  (98, thanks mansimarkaur!)
  
  **New features**
  
  - Added CRUD methods for the group endpoints (95, thanks mansimarkaur!)
  
  **Documentation**
  
  - Add contributing guide (90, thanks sahildua2305!)

6.2.1

==================
  
  **New features**
  
  - Add a ``if_exists`` flag to delete methods to avoid raising if the
  item was already deleted. (82)
  - Improving the ``clone`` method to keep all the previous parameters values
  if missing as parameters. (91)

6.1.0

==================
  
  **New features**
  
  - Add a ``get_records_timestamp`` method to get the collection ``ETag``. (81)

6.0.0

==================
  
  **Breaking changes**
  
  - Rename kinto_client to kinto_http (74)

5.0.0

==================
  
  **Breaking changes**
  
  - Rename the ``last_modified`` client parameter into ``if_match`` (68)
  
  **New features**
  
  - Display a better message when having 403 on create_collection and
  create_record methods (49)
  - Expose ``get_endpoints`` as part of the client API (60)
  - Add a ``server_info`` method to retrieve the root url info (70)
  
  **Internal changes**
  
  - Rename the Batch class into BatchSession (52)
  - Change readthedocs.org urls in readthedocs.io (71)

4.1.0

==================
  
  **New features**
  
  - Add new methods ``get_buckets()``, ``delete_buckets()``, ``delete_bucket()``,
  ``delete_collections()``, ``delete_records()``, ``patch_record()`` (55)
  
  **Internal changes**
  
  - Functional tests are now tested on Kinto master version (65)

4.0.0

==================
  
  **Breaking changes**
  
  - The function ``cli_utils.set_parser_server_options()`` was renamed
  ``cli_utils.add_parser_options()`` (63)
  
  
  **New features**
  
  - ``add_parser_options`` can now exclude bucket and collection
  parameters. (63)
  - ``create_client_from_args`` can now works even with no bucket or
  collection arguments (63)
  
  
  **Bug fixes**
  
  - Do not sent body in GET requests. (62)

3.1.0

==================
  
  **New features**
  
  - Add CLI helpers to configure and instantiate a Client from command-line arguments
  (59)

3.0.0

==================
  
  **Breaking changes**
  
  - Updated the ``update_collection()`` signature: data is now the fisr argument
  (47)
  
  **New features**
  
  - Added a retry option for batch requests (51)
  - Use the "default" bucket if nothing is specified (50)
  - Added a ``if_not_exists`` argument to the creation methods (42)
  - Added a replication mechanism in ``kinto_http.replication`` (26)
  - Handle the ``last_modified`` argument on update or create operations (24)
  
  **Bug fixes**
  
  - Do not force the JSON content-type in requests if multipart-encoded files are
  sent (27)
  - Fail the batch operations early (47)
  - Remove un-needed requirements (FxA) (43)
  - Use ``max_batch_request`` from the server to issue more than one batch request
  (30)
  - Make sure batch raises an error when needed (28)
  - Fix an invalid platform error for some versions of python (31)
  - Do not lowercase valid IDs (33)
  
  **Documentation**
  
  - Add documentation about client.batch (44)

2.0.0

==================
  
  - Added support for pagination in records requests (13)
  - Added support for If-Match / If-None-Match headers for not overwriting
  existing records (14)
  - Changed the API of the batch support. There is now a ``client.batch()`` context
  manager (17)
  - Added support of the PATCH methods to update records / collections (19)

1.0.0

==================
  
  **Breaking changes**
  
  - Rewrote the API to be easier to use (10)

0.2.0

==================
  
  **Breaking changes**
  
  - Rename kintoclient to kinto_client (8)
  
  **Features**
  
  - Add the endpoints class. (9)
  - Add batching utilities. (9)
  
  **Internal changes**
  
  - Add universal wheel configuration.

0.1.1

==================
  
  **Initial version**
  
  - A client to synchroneously call a Kinto server.