qs_codec package¶
Subpackages¶
- qs_codec.enums package
- qs_codec.models package
- Submodules
- qs_codec.models.decode_options module
DecodeOptions
DecodeOptions.allow_dots
DecodeOptions.allow_empty_lists
DecodeOptions.charset
DecodeOptions.charset_sentinel
DecodeOptions.comma
DecodeOptions.decode_dot_in_keys
DecodeOptions.decoder()
DecodeOptions.delimiter
DecodeOptions.depth
DecodeOptions.duplicates
DecodeOptions.ignore_query_prefix
DecodeOptions.interpret_numeric_entities
DecodeOptions.list_limit
DecodeOptions.parameter_limit
DecodeOptions.parse_lists
DecodeOptions.strict_depth
DecodeOptions.strict_null_handling
- qs_codec.models.encode_options module
EncodeOptions
EncodeOptions.add_query_prefix
EncodeOptions.allow_dots
EncodeOptions.allow_empty_lists
EncodeOptions.charset
EncodeOptions.charset_sentinel
EncodeOptions.comma_round_trip
EncodeOptions.delimiter
EncodeOptions.encode
EncodeOptions.encode_dot_in_keys
EncodeOptions.encode_values_only
EncodeOptions.encoder
EncodeOptions.filter
EncodeOptions.format
EncodeOptions.indices
EncodeOptions.list_format
EncodeOptions.serialize_date()
EncodeOptions.skip_nulls
EncodeOptions.sort
EncodeOptions.strict_null_handling
- qs_codec.models.undefined module
- qs_codec.models.weak_wrapper module
- Module contents
- qs_codec.utils package
Submodules¶
qs_codec.decode module¶
A query string decoder (parser).
- qs_codec.decode.decode(value: str | ~typing.Dict[str, ~typing.Any] | None, options: ~qs_codec.models.decode_options.DecodeOptions = DecodeOptions(allow_dots=False, decode_dot_in_keys=False, allow_empty_lists=False, list_limit=20, charset=<Charset.UTF8: encoding='utf-8'>, charset_sentinel=False, comma=False, delimiter='&', depth=5, parameter_limit=1000, duplicates=<Duplicates.COMBINE: 1>, ignore_query_prefix=False, interpret_numeric_entities=False, parse_lists=True, strict_depth=False, strict_null_handling=False, decoder=<bound method DecodeUtils.decode of <class 'qs_codec.utils.decode_utils.DecodeUtils'>>)) Dict[str, Any] [source]¶
Decodes a query string into a
Dict[str, Any]
.Providing custom
DecodeOptions
will override the default behavior.
qs_codec.encode module¶
A query string encoder (stringifier).
- qs_codec.encode.encode(value: ~typing.Any, options: ~qs_codec.models.encode_options.EncodeOptions = EncodeOptions(allow_dots=False, add_query_prefix=False, allow_empty_lists=False, indices=None, list_format=<ListFormat.INDICES: list_format_name='INDICES', generator=<function ListFormatGenerator.indices>>, charset=<Charset.UTF8: encoding='utf-8'>, charset_sentinel=False, delimiter='&', encode=True, encode_dot_in_keys=False, encode_values_only=False, format=<Format.RFC3986: format_name='RFC3986', formatter=<function Formatter.rfc3986>>, filter=None, skip_nulls=False, serialize_date=<function EncodeUtils.serialize_date>, encoder=<function EncodeOptions.encoder.<locals>.<lambda>>, strict_null_handling=False, comma_round_trip=None, sort=None)) str [source]¶
Encodes an object into a query string.
Providing custom
EncodeOptions
will override the default behavior.
Module contents¶
A query string encoding and decoding library for Python. Ported from qs_codec for JavaScript.