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.

class documentation

Undocumented

Static Method validate Validate payload against a schema and return a typed instance.
Async Static Method validateAsync Validate a payload while awaiting rules that require native I/O.
Class Variable __slots__ Undocumented
def validate(payload: object, schema: type[SchemaType]) -> SchemaType: (source)

Validate payload against a schema and return a typed instance.

Parameters
payload:objectInput data to convert and validate.
schema:type[Schema]Schema class used for conversion and rule validation.
Returns
SchemaConverted schema instance.
Raises
ValidationExceptionIf payload conversion fails or schema rules raise validation errors. The exception carries every failure found, indexed by field name.
async def validateAsync(payload: object, schema: type[SchemaType]) -> SchemaType: (source)

Validate a payload while awaiting rules that require native I/O.

Parameters
payload:objectInput data to convert and validate.
schema:type[Schema]Schema class with precompiled conversion and rule metadata.
Returns
SchemaConverted instance after all applicable rules succeed.
Raises
ValidationExceptionIf conversion or synchronous or asynchronous rules reject fields.
__slots__: tuple = (source)

Undocumented