ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

module documentation

Initialize, serialize and describe dataclass entities with extra attributes.

Function _default_value Evaluate a declared default and serialize the resulting value.
Function _serialize_value Recursively copy configuration values, entities and enum members.
def _default_value(value: object) -> object: (source)

Evaluate a declared default and serialize the resulting value.

Parameters
value:objectDeclared default value or zero-argument default provider.
Returns
objectThe serialized default or the serialized result of the provider.
def _serialize_value(value: object) -> object: (source)

Recursively copy configuration values, entities and enum members.

Notes

Dictionaries and lists become plain dictionaries and lists. Tuples keep their shape, including named tuple types. Cyclic entity and container graphs are not supported.

Parameters
value:objectValue to convert or copy.
Returns
objectA converted dataclass, enum value, container or deep copy.