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

Class ValidationErrorParser No class docstring; 0/1 class variable, 4/4 static methods, 3/3 class methods documented
Function _get_fields_map Return a cached field-to-type mapping for a schema.
Constant _CONSTRAINT_PATTERNS Undocumented
Constant _MISSING Undocumented
Constant _NESTED_TYPE_CACHE Undocumented
Constant _PATH_MARKER Undocumented
Constant _PATH_MARKER_LEN Undocumented
Constant _STRUCT_FIELDS_MAP Undocumented
Constant MISSING_FIELD_RE Undocumented
def _get_fields_map(schema: type) -> dict[str, object]: (source)

Return a cached field-to-type mapping for a schema.

Parameters
schema:typeMsgspec struct class whose fields should be inspected.
Returns
dict[str, object]Mapping of field names to their declared types.
_CONSTRAINT_PATTERNS: tuple[tuple[str, str], ...] = (source)

Undocumented

Value
(('of length >=', 'min_length'),
 ('of length <=', 'max_length'),
 ('matching regex', 'pattern'),
 ('multiple of', 'multiple_of'),
 ('no timezone', 'tz_naive'),
 ('timezone', 'tz_aware'),
 (' >= ', 'ge'),
...

Undocumented

Value
object()
_NESTED_TYPE_CACHE: dict[tuple[type, str], type | None] = (source)

Undocumented

Value
{}
_PATH_MARKER: str = (source)

Undocumented

Value
' - at `$'
_PATH_MARKER_LEN = (source)

Undocumented

Value
len(_PATH_MARKER)
_STRUCT_FIELDS_MAP: dict[type, dict[str, object]] = (source)

Undocumented

Value
{}
MISSING_FIELD_RE = (source)

Undocumented

Value
re.compile(r'missing required field `(?P<field>[^`]+)`')