Typical: Fast, simple, & correct data-validation using Python 3 typing.
MIT License
Bot releases are hidden (Show)
Published by seandstewart over 1 year ago
Full Changelog: https://github.com/seandstewart/typical/compare/v2.8.0...v2.8.1
Published by seandstewart almost 3 years ago
Full Changelog: https://github.com/seandstewart/typical/compare/v2.7.11...v2.8.0
Published by seandstewart almost 3 years ago
Full Changelog: https://github.com/seandstewart/typical/compare/v2.7.10...v2.7.11
Published by seandstewart almost 3 years ago
This release fixes a regression in our serializer factory which failed to account for optional/nullable enum types when dumping to a primitive, leading to an AttributeError when attempting to access the enum value.
Published by seandstewart almost 3 years ago
Full Changelog: https://github.com/seandstewart/typical/compare/v2.7.8...v2.7.9
Published by seandstewart almost 3 years ago
sqlite3.Row
objects are C extension types which meet the contract for a mapping, but do not evaluate as a subclass of the Mapping
generic. This change adds them to our list of "mapping-compliant" types.
Published by seandstewart almost 3 years ago
Published by seandstewart almost 3 years ago
NamedTuple objects were improperly treated as a simple builtin subtype when coercing user-defined types, which resulted in unexpected behavior. This fixes deserialization logic to use the standard translator protocol for named tuples.
Published by seandstewart about 3 years ago
Derived classes of a typic.klass
object were improperly recognized as a simple Iterable.
This caused a recursion error when attempting to serialize these objects, since the __iter__
magic method relies upon the iterator factory, but the iterator factory simply called the __iter__
magic method.
Resolves #185
Published by seandstewart about 3 years ago
always
param in the @typic.al
decorator.Published by seandstewart about 3 years ago
collections.deque
as Array constraint (resolves #181)Published by seandstewart about 3 years ago
get_tojson
meant we weren't properly bootstrapping docs.asyncpg.Record
objects are now recognized as a Mapping type.Published by seandstewart about 3 years ago
typical
will now default to orjson for json serialization and deserialization if it is installed. This provides up to 3X performance boost, but has different behavior and output than ujson or stdlib json.always
parameter to typic.klass
, since we are raising warnings about its usage (#177)Published by seandstewart about 3 years ago
Published by seandstewart about 3 years ago
Published by seandstewart about 3 years ago
field.default
positional (resolves #168)__version__
to typic.__init__
and add bumpver
to manage multiple versions (resolves #168)Published by seandstewart about 3 years ago
_
are considered).Published by seandstewart about 3 years ago
Published by seandstewart about 3 years ago
Union[int, str]
) (#19, docs)Published by seandstewart about 3 years ago