Releases: drhagen/serialite
Releases · drhagen/serialite
Serialite 0.3.4
Serialite 0.3.3
This release adds two features:
SetSerializer
deserializes JSON arrays of unique items into Pythonset
s. It is the default serializer forset[Element]
.OrderedSetSerializer
deserializes JSON arrays of unique items intoordered_set.OrderedSet
s from theordered-set
distribution. It is the default serializer forOrderedSet[Element]
. Theordered-set
distribution must be installed for this serializer to be available.
Serialite 0.3.2
This release adds one feature and two Python versions. This is also the first release completely built and published using a GitHub Actions workflow.
- Support terminal "Z" in datetime serializer
- Add support for Python 3.11 and 3.12
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