Preconf#
Stages and serializers for supported serialization formats.
Base stage for all serializer pipelines |
|
BSON partial serializer that produces a MongoDB-compatible document |
|
Pre-serialization steps for BSON |
|
Complete BSON serializer; uses pymongo's |
|
|
A single stage in a serializer pipeline. |
Partial serializer that unstructures responses into dicts |
|
DynamoDB-compatible document serializer |
|
Pre-serialization steps for DynamoDB |
|
Pre-serialization steps for JSON |
|
Complete JSON serializer; uses ultrajson if available |
|
Create a preconf serializer stage from a module name, if dependencies are installed |
|
Pickle serializer |
|
Create a serializer that uses |
|
Create a stage that uses |
|
Pre-serialization steps for ultrajson |
|
Encode to bytes |
|
Pre-serialization steps for YAML |
|
Complete YAML serializer |
- requests_cache.serializers.preconf.base_stage = <requests_cache.serializers.cattrs.CattrStage object>#
Base stage for all serializer pipelines
- requests_cache.serializers.preconf.bson_document_serializer = <requests_cache.serializers.pipeline.SerializerPipeline object>#
BSON partial serializer that produces a MongoDB-compatible document
- requests_cache.serializers.preconf.bson_preconf_stage = <requests_cache.serializers.cattrs.CattrStage object>#
Pre-serialization steps for BSON
- requests_cache.serializers.preconf.bson_serializer = <requests_cache.serializers.pipeline.SerializerPipeline object>#
Complete BSON serializer; uses pymongo’s
bson
if installed, otherwise standalonebson
codec
- requests_cache.serializers.preconf.dict_serializer = <requests_cache.serializers.pipeline.SerializerPipeline object>#
Partial serializer that unstructures responses into dicts
- requests_cache.serializers.preconf.dynamodb_document_serializer = <requests_cache.serializers.pipeline.SerializerPipeline object>#
DynamoDB-compatible document serializer
- requests_cache.serializers.preconf.dynamodb_preconf_stage = <requests_cache.serializers.cattrs.CattrStage object>#
Pre-serialization steps for DynamoDB
- requests_cache.serializers.preconf.json_preconf_stage = <requests_cache.serializers.cattrs.CattrStage object>#
Pre-serialization steps for JSON
- requests_cache.serializers.preconf.json_serializer = <requests_cache.serializers.pipeline.SerializerPipeline object>#
Complete JSON serializer; uses ultrajson if available
- requests_cache.serializers.preconf.make_stage(preconf_module, **kwargs)[source]#
Create a preconf serializer stage from a module name, if dependencies are installed
- Parameters:
preconf_module (
str
) –
- requests_cache.serializers.preconf.msgpack_preconf_stage#
Pre-serialization steps for msgpack
- requests_cache.serializers.preconf.orjson_preconf_stage#
Pre-serialization steps for orjson
- requests_cache.serializers.preconf.pickle_serializer = <requests_cache.serializers.pipeline.SerializerPipeline object>#
Pickle serializer
- requests_cache.serializers.preconf.safe_pickle_serializer(secret_key=None, salt='requests-cache', **kwargs)[source]#
Create a serializer that uses
pickle
+itsdangerous
to add a signature to responses on write, and validate that signature with a secret key on read.- Return type:
- requests_cache.serializers.preconf.signer_stage(secret_key=None, salt='requests-cache')[source]#
Create a stage that uses
itsdangerous
to add a signature to responses on write, and validate that signature with a secret key on read. Can be used in aSerializerPipeline
in combination with any other serialization steps.- Return type:
- requests_cache.serializers.preconf.toml_preconf_stage#
Pre-serialization steps for TOML
- requests_cache.serializers.preconf.ujson_preconf_stage = <requests_cache.serializers.cattrs.CattrStage object>#
Pre-serialization steps for ultrajson
- requests_cache.serializers.preconf.utf8_encoder = <requests_cache.serializers.pipeline.Stage object>#
Encode to bytes
- requests_cache.serializers.preconf.yaml_preconf_stage = <requests_cache.serializers.cattrs.CattrStage object>#
Pre-serialization steps for YAML
- requests_cache.serializers.preconf.yaml_serializer = <requests_cache.serializers.pipeline.SerializerPipeline object>#
Complete YAML serializer