summaryrefslogtreecommitdiff
path: root/requests_cache/serializers
Commit message (Collapse)AuthorAgeFilesLines
* Fix loading cached JSON content when decode_content=True and the root ↵Jordan Cook2023-05-081-3/+8
| | | | element is a list
* Update dependenciesJordan Cook2023-03-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump rrainn/dynamodb-action from 2.0.1 to 3.0.0 Bumps [rrainn/dynamodb-action](https://github.com/rrainn/dynamodb-action) from 2.0.1 to 3.0.0. - [Release notes](https://github.com/rrainn/dynamodb-action/releases) - [Commits](https://github.com/rrainn/dynamodb-action/compare/v2.0.1...v3.0.0) --- updated-dependencies: - dependency-name: rrainn/dynamodb-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Bump pytest from 7.1.3 to 7.2.0 Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.1.3 to 7.2.0. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/7.1.3...7.2.0) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Bump pytest-xdist from 2.5.0 to 3.0.2 Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) from 2.5.0 to 3.0.2. - [Release notes](https://github.com/pytest-dev/pytest-xdist/releases) - [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v2.5.0...v3.0.2) --- updated-dependencies: - dependency-name: pytest-xdist dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Bump sphinx-autodoc-typehints from 1.19.5 to 1.20.1 Bumps [sphinx-autodoc-typehints](https://github.com/tox-dev/sphinx-autodoc-typehints) from 1.19.5 to 1.20.1. - [Release notes](https://github.com/tox-dev/sphinx-autodoc-typehints/releases) - [Changelog](https://github.com/tox-dev/sphinx-autodoc-typehints/blob/main/CHANGELOG.md) - [Commits](https://github.com/tox-dev/sphinx-autodoc-typehints/compare/1.19.5...1.20.1) --- updated-dependencies: - dependency-name: sphinx-autodoc-typehints dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Bump ujson from 5.6.0 to 5.7.0 Bumps [ujson](https://github.com/ultrajson/ultrajson) from 5.6.0 to 5.7.0. - [Release notes](https://github.com/ultrajson/ultrajson/releases) - [Commits](https://github.com/ultrajson/ultrajson/compare/5.6.0...5.7.0) --- updated-dependencies: - dependency-name: ujson dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Bump coverage from 6.5.0 to 7.0.5 Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.5.0 to 7.0.5. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/6.5.0...7.0.5) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
* Set default serializers for each backend using param defaults instead of ↵Jordan Cook2023-01-131-1/+22
| | | | 'default_serializer' class attributes
* Update type hints to appease Pylance and stricter mypy settingsJordan Cook2022-12-132-5/+8
|
* Handle using a converter that doesn't support the omit_if_default keyword ↵Jordan Cook2022-10-281-1/+5
| | | | argument
* Update for cattrs 22.2Jordan Cook2022-10-081-8/+8
|
* Use json.JSONDecodeError and requests.RequestException instead of ↵Jordan Cook2022-06-111-2/+3
| | | | requests.JSONDecodeError for compatibility with requests<2.27
* Remove HTTPResponse attributes from the cache, and re-construct ↵Jordan Cook2022-06-111-4/+0
| | | | CachedResponse.raw after deserialization
* Clean up SerializerPipeline.decode_contentJordan Cook2022-06-111-11/+2
|
* Consolidate BaseCache convenience methods into contains(), filter(), and ↵Jordan Cook2022-06-111-4/+9
| | | | delete()
* Add decode_content option for storage classes, and use as the default ↵Jordan Cook2022-06-103-9/+12
| | | | behavior for Filesystem, DynamoDB, and MongoDB backends
* Change this into an option for CattrStage instead of a separate classJordan Cook2022-06-104-104/+61
|
* Add serializer stage that decodes/re-encodes response contentJordan Cook2022-06-103-1/+106
|
* Update serialization docsJordan Cook2022-06-104-20/+27
|
* Add a BaseStorage.default_serializer attribute, to be more explicit about ↵Jordan Cook2022-04-223-7/+9
| | | | which backends use something other than pickle by default
* Merge *PickleDict storage classes into parent classesJordan Cook2022-04-222-3/+4
|
* Add missing placeholder class if pymongo isn't installedJordan Cook2022-04-221-0/+1
|
* Store responses in DynamoDB as JSON documents instead of serialized binariesJordan Cook2022-04-193-7/+43
|
* Refactor utilities for parsing cache headers into CacheDirectives classJordan Cook2022-04-181-1/+1
|
* Add serializer name to cache key to avoid errors due to switching serializersJordan Cook2022-04-153-11/+35
|
* Fix structuring/unstructuring CachedResponse.historyJordan Cook2022-04-151-2/+1
|
* Use BSON preconf stage and store response values under top-level keys, so ↵Jordan Cook2022-04-153-10/+25
| | | | created_at attribute is compatible with TTL index
* Improvements for MongoDB:Jordan Cook2022-04-152-3/+9
| | | | | * Use native document format (BSON) instead of binary blob * Add option to use native TTL feature
* Add compatibility with cattrs 21.1+, and clean up preconf module a bitJordan Cook2022-04-091-41/+48
|
* More code cleanup and commentsJordan Cook2022-03-291-1/+1
|
* Fix handling BSON serializer differences between pymongo's bson and ↵Jordan Cook2022-02-151-4/+6
| | | | standalone bson codec.
* Fix serialization in filesystem backend with binary content that is also ↵Jordan Cook2022-02-152-16/+25
| | | | valid UTF-8
* Update to mypy v0.931 and add some ignores/workarounds for new false positivesJordan Cook2022-02-021-1/+1
|
* Switch to a different method of resolving ForwardRefs during deserialization ↵Jordan Cook2022-01-151-4/+4
| | | | for python 3.10.2 compatibility
* Update dependencies and pre-commit hooksJordan Cook2022-01-011-1/+0
|
* Format using a more typical line length of 100Jordan Cook2022-01-012-3/+9
|
* Add a new RedisDict class that stores responses in separate hashes instead ↵Jordan Cook2021-12-011-1/+1
| | | | of in a single hash
* Improve some RedisDict methods and rename to RedisHashDictJordan Cook2021-12-013-3/+5
|
* Add a 'utf8_encoder' for convenience, since that's a common enough stepJordan Cook2021-11-192-0/+3
|
* Move misc minor utils to a separate moduleJordan Cook2021-10-271-1/+1
|
* Fix some type checking issuesJordan Cook2021-08-281-2/+1
|
* Reorganize user docs: break down User Guide and Advanced Usage sections into ↵Jordan Cook2021-08-261-1/+1
| | | | smaller pages
* Allow Stage objects to take functions instead of object + method namesJordan Cook2021-08-251-12/+26
|
* Minor optimization: exclude redundant CachedResponse.cache_key and ↵Jordan Cook2021-08-251-4/+4
| | | | CachedHTTPResponse.headers from serialization, and set at runtime instead
* Better serializer docsJordan Cook2021-08-202-29/+43
|
* Move autosummaries to module docstrings instead of template, to make them ↵Jordan Cook2021-08-202-5/+20
| | | | easier to customize
* Remove deprecated 'core' module and BaseCache.remove_old_entries()Jordan Cook2021-08-141-9/+1
|
* Drop support for python 3.6Jordan Cook2021-08-143-27/+9
|
* More doc formatting and class/module linksJordan Cook2021-08-071-8/+8
|
* Pretty-print JSON by defaultJordan Cook2021-08-031-1/+8
|
* Improve type annotations and fix type checking errorsJordan Cook2021-07-063-9/+24
|
* Some serialization fixes & updates:Jordan Cook2021-07-034-129/+183
| | | | | | | | | | | | | | | | | * Fix tests on python 3.6: * Make `cattrs` optional again * Don't run tests for serializers with missing optional dependencies * Show any skipped tests in pytest output * Fix redirect serialization for backends that serialize all values (DynamoDB and Redis) * Otherwise, the redirect value (which is just another key) will get converted into a `CachedResponse` * Make `pickle` serializer use `cattrs` if installed * Make `bson` serializer compatible with both `pymongo` version and standalone `bson` library * Split up `CattrStage` and preconf converters into separate modules * Turn preconf converters into `Stage` objects * Add `DeprecationWarning` for previous method of using `itsdangerous`, now that there's a better way to initialize it via `SerializerPipeline` * Remove `suppress_warnings` kwarg that's now unused * Make `SerializerPipeline`, `Stage`, and `CattrStage` importable from top-level package (`from requests_cache import ...`) * Add some more details to docs and docstrings
* addressing comments from JWCookParker Hancock2021-06-212-4/+2
|
* moving ForwardRef inside the ImportError try/except clause to address py3.6 ↵Parker Hancock2021-06-211-2/+3
| | | | incompatibility
* Add pyyaml as an optional dependency, and fix importJordan Cook2021-06-171-2/+2
|