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

Classes

class  Base85Bytes
 
class  BsonConverter
 

Functions

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

Variables

 T = TypeVar("T")
 

Detailed Description

Preconfigured converters for bson.

Function Documentation

◆ configure_converter()

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

* sets are serialized as lists
* byte mapping keys are base85-encoded into strings when unstructuring, and reverse
* non-string, non-byte mapping keys are coerced into strings when unstructuring
* a deserialization hook is registered for bson.ObjectId by default