Serialization (pydent.marshaller
)¶
This module provides speedy serialization and deserialization
functionality for Trident models. Models that inherit the
SchemaModel
will
become registered with their own serialization/deserialization
schema. To register the schema,
use the add_schema
decorator on the class. The
dump
method will serialize
and object while the dump
method
will deserialize JSON data to an object.
Note
This is only relevant to Trident developers, rather than regular users.
|
A Schema class that holds information on serialization/deserialization. |
|
Stores list of all models instantiated from the SchemaModel base. |
|
Stores a list of models that can be accessed by name. |
Data descriptors that provide special behaviors when attributes are accessed. |
|
Marshalling exceptions. |
|
Fields¶
Fields are descriptors that control how attributes and data is serialized/deserialized.
|
A shallow alias to another field. |
|
Make a callback when called. |
|
A serialization/deserialization field. |
Field abstract base class. |
|
|
Represents a field that returns another nested instance. |
|
A composition (Callback/Nested) field that uses a callback to retrieve a model. |