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
Provide schemas operations through instance_payload.
| Function | instance |
Expand structs using their wire names, tags and container shape. |
| Function | matching |
Match an existing schema instance or its wire representation and tag. |
| Function | matching |
Select a schema or collection annotation matching an input representation. |
| Constant | _PLANS |
Wire names and primitive configuration cached without retaining struct types. |
Expand structs using their wire names, tags and container shape.
Include default values and preserve native leaves so validation cannot skip existing struct fields or accept values coerced by serialization.
| Parameters | |
value:object | Struct, supported container or native value to prepare for validation. |
| Returns | |
object | Expanded dictionaries and lists, or the original native leaf value. |
def matching_schema(schema:
type[ msgspec.Struct], value: object) -> type[ msgspec.Struct] | None:
(source)
¶
Match an existing schema instance or its wire representation and tag.
| Parameters | |
schema:type[msgspec.Struct] | Schema whose object or array representation is expected. |
value:object | Input to compare with the schema configuration. |
| Returns | |
type[msgspec.Struct] | None | Schema when its shape and tag match, otherwise None. |
Wire names and primitive configuration cached without retaining struct types.
| Value |
|