v2.0.0
This release brings an entirely new annotation resolution engine which
is backwards-incompatible with v1.
New features include:
typic.protocol
for binding a serialization & deserialization
for any type or annotation.@typic.constrained
for definining restricted versions of
builtin types.@typic.settings
for resolving the default values of a dataclass
from your environment variables- A whole new suite of useful types, including:
FrozenDict
, a hashable, immutable dictionaryDSN
, a JSON-serializable string-type for your database URIsURL
, a JSON-serializable string-type for your URLsEmail
, a JSON-serializable string-type for emailsSecretString
, a JSON-serializable string-type for hiding
secrets when logging or printing
typic.schema
for getting a valid JSON Schema definition for
your classes and type annotations.typical
classes also have
access to this as a classmethod.typic.primitive
for extracting a valid JSON-serializable
primitive from just about anything.typical
classes also have
access to this as an instance method.typic.tojson
for dumping any value directly to a JSON-compliant string.
And so much more. Check out the documentation for details!