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
class ModelMetadata: (source)
Precomputed metadata describing a model class.
Built once by the metaclass so hot paths (hydration, persistence) never perform reflection at runtime.
| Method | apply |
Apply the declared casts to a raw attribute mapping in place. |
| Method | is |
Report whether an attribute accepts mass assignment. |
| Instance Variable | accessors |
Accessor method names keyed by the attribute they expose. |
| Instance Variable | appends |
Accessor-backed attributes added to the serialized output. |
| Instance Variable | cast |
Precompiled cast handlers keyed by attribute name. |
| Instance Variable | casts |
Declared cast names keyed by attribute name. |
| Instance Variable | columns |
Column definitions keyed by attribute name. |
| Instance Variable | connection |
Named connection used by the model, or None for default. |
| Instance Variable | created |
Creation timestamp column, when present. |
| Instance Variable | deleted |
Soft delete timestamp column, when the model soft deletes. |
| Instance Variable | events |
Immutable (registration identity, listener) pairs keyed by event name. |
| Instance Variable | fillable |
Attributes allowed for mass assignment. |
| Instance Variable | global |
Constraints applied to every query, keyed by scope name. |
| Instance Variable | guarded |
Attributes blocked from mass assignment. |
| Instance Variable | hidden |
Attributes omitted from serialization. |
| Instance Variable | incrementing |
Whether the primary key is auto-incrementing. |
| Instance Variable | mutators |
Mutator method names keyed by the attribute they transform. |
| Instance Variable | primary |
Name of the primary key column. |
| Instance Variable | scopes |
Local scope method names keyed by their fluent call name. |
| Instance Variable | table |
Table definition consumed by the SQL compiler. |
| Instance Variable | table |
Logical table name of the model. |
| Instance Variable | timestamps |
Whether the model maintains creation/update timestamps. |
| Instance Variable | updated |
Update timestamp column, when present. |
| Instance Variable | uses |
Whether the primary key is a client-generated unique identifier. |