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 | _ |
Retain trusted class metadata independently of live job instances. |
| Class | |
Serialize explicit job state through a registry of application-trusted types. |
| Function | _collect |
Collect one job class's declared slots and persistent annotations. |
| Function | _job |
Collect inherited persistent slots and annotations from a trusted class. |
| Function | _pack |
Validate owned primitive data and tag tuples in MessagePack. |
| Function | _unpack |
Restore the tuple extension without importing or invoking payload types. |
| Function | _validate |
Check whether a field annotation contains only supported state types. |
| Function | _validate |
Validate decoded primitive state without rebuilding its containers. |
| Constant | _MAX |
Undocumented |
| Constant | _MAX |
Undocumented |
| Constant | _OPTIONS |
Undocumented |
| Constant | _SCALAR |
Undocumented |
| Constant | _TUPLE |
Undocumented |
def _collect_job_fields(parent:
type[ BaseJob], names: dict[ str, None], annotations: dict[ str, object]):
(source)
¶
Collect one job class's declared slots and persistent annotations.
| Parameters | |
parent:type[BaseJob] | Registered job class or one of its BaseJob ancestors. |
names:dict[str, None] | Ordered persistent field names collected across the hierarchy. |
annotations:dict[str, object] | Field constraints updated by more specific classes. |
| Returns | |
None | Update the field names and annotations in place. |
Collect inherited persistent slots and annotations from a trusted class.
| Parameters | |
jobtype[BaseJob] | Concrete job class registered by application code. |
| Returns | |
_JobMetadata | Persistent field names and optional primitive type constraints. |
| Raises | |
QueueConfigurationError | If persistent fields are private, shadow job options, or use unsupported annotations. |
Validate owned primitive data and tag tuples in MessagePack.
| Parameters | |
value:object | Field value or nested item. |
depth:int, optional | Current nesting level. |
| Returns | |
object | Data supported by the MessagePack encoder. |
| Raises | |
QueuePayloadError | If state exceeds the depth limit, contains unsupported objects, nonfinite numbers, or dictionary keys that are not plain strings. |
Restore the tuple extension without importing or invoking payload types.
| Parameters | |
code:int | MessagePack extension discriminator. |
data:memoryview | Encoded tuple items. |
| Returns | |
tuple[object, ...] | Restored primitive tuple. |
Validate decoded primitive state without rebuilding its containers.
| Parameters | |
value:object | Decoded field value or nested item. |
depth:int, optional | Current nesting level. |
| Returns | |
None | Accept supported state without copying decoded containers. |
| Raises | |
QueuePayloadError | If state exceeds the depth limit or contains unsupported values. |