Serialite 0.3.1
This is the first public release of Serialite, a new serialization and deserialization library for Python. The core functionality is implemented and tested. The documentation is still lacking.
Serializer
: The main abstract base classSerializable
: The abstract base class for classes that can serialize and deserialize instances of themselvesSerializableMixin
: Provides an implementation for theSerializable
interface given that the class attribute__fields_serializer__
is implemented as an instance ofFieldsSerializer
AbstractSerializableMixin
: Provides an implementation for theSerializable
interface for a sealed class given that the class attribute__subclass_serializers__
is implementedserializable
: A decorator that provides an implementation ofSerializable
when applied to adataclass
abstract_serializable
: Provides an implementation ofSerializable
when applied to a sealed class, using the_type
key as a discriminator and the names of the subclasses as the values- If installed,
fastapi
andpydantic
are monkey patched to allow SerialiteSerializable
s to work as PydanticBaseModel
s in FastAPI endpoints