Cattrs#
Utilities to break down CachedResponse
objects into a dict of python builtin types
using cattrs. This does the majority of the work needed for any
serialization format.
Base serializer class that does pre/post-processing with |
Make a converter to structure and unstructure nested objects within a |
- class requests_cache.serializers.cattrs.CattrStage(factory=None)[source]#
Bases:
requests_cache.serializers.pipeline.Stage
Base serializer class that does pre/post-processing with
cattrs
. This can be used either on its own, or as a stage within aSerializerPipeline
.- dumps(value)[source]#
- Parameters
value (
CachedResponse
) –- Return type