Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Classes | Functions | Variables
cattrs.preconf.orjson Namespace Reference

Classes

class  OrjsonConverter
 

Functions

 configure_converter (BaseConverter converter)
 
OrjsonConverter make_converter (*Any args, **Any kwargs)
 

Variables

 T = TypeVar("T")
 

Detailed Description

Preconfigured converters for orjson.

Function Documentation

◆ configure_converter()

cattrs.preconf.orjson.configure_converter ( BaseConverter  converter)
Configure the converter for use with the orjson library.

* bytes are serialized as base85 strings
* datetimes and dates are passed through to be serialized as RFC 3339 by orjson
* typed namedtuples are serialized as lists
* sets are serialized as lists
* string enum mapping keys have special handling
* mapping keys are coerced into strings when unstructuring

.. versionchanged: 24.1.0
    Add support for typed namedtuples.