kinto-http.py
kinto-http.py copied to clipboard
A Python HTTP client for the Kinto API.
Bumps [idna](https://github.com/kjd/idna) from 3.6 to 3.7. Release notes Sourced from idna's releases. v3.7 What's Changed Fix issue where specially crafted inputs to encode() could take exceptionally long amount of time...
When we use the get_records functions with filtering, if the the value we want to filter out in the key value pair is string but has numbers only, the code...
I tried `Client` constructor, update_record method or even Session but with no luck. I was trying to override the User-Agent ``` headers={'User-Agent': 'backoffice {}'.format(version)} ```
I'm not sure if supporting plugins is in the scope of the Python client, but I think it would be useful to have attachments support. My idea is to do...
This might be outside the scope of this PR, but maybe 507 (indicating quota violation) should also not be retried? As commented by @glasserc in #168
The if_not_exists behavior doesn't ignore the 412 if they happen in a batch.
Some tests would benefit from a refactor. I'm mostly thinking about the logic contained in the `_get_or_create` private method, which is not directly tested but via its callers. One solution...
For example: ```python @requires_capability("attachments") @retry_timeout def add_attachment(...): .... ```
permissions endpoint returns a paginated list. The current get_permissions method does not account for it. https://github.com/Kinto/kinto-http.py/blob/1182c295f23194e8851a1df582a14153b736cfcc/src/kinto_http/client.py#L682 It should use pagination properly. This is handled appropriately in https://github.com/Kinto/kinto.js/blob/9e8086989a59beaa9616c6cd8aaa1d756cda66f4/src/http/base.ts#L849