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

Undocumented

Function _dict_factory Build a dictionary and serialize enum field values.
Function _enum_serializer Serialize enum members and preserve all other values.
Constant _FIELD_METADATA_CACHE Undocumented
def _dict_factory(items: list[tuple[str, object]]) -> dict[str, object]: (source)

Build a dictionary and serialize enum field values.

Parameters
items:list[tuple[str, object]]Field names and values supplied by dataclasses.asdict.
Returns
dict[str, object]A dictionary with enum values serialized.
def _enum_serializer(value: object) -> object: (source)

Serialize enum members and preserve all other values.

Parameters
value:objectValue to serialize.
Returns
objectThe enum member's value, or the original value when it is not an enum.
_FIELD_METADATA_CACHE: dict[type, tuple[tuple[Field[Any], tuple[str, ...]], ...]] = (source)

Undocumented

Value
{}