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.
Undocumented
| Class | |
No class docstring; 4/4 static methods documented |
| Function | _dec |
Decode a mapping payload into a complex number. |
| Function | _dec |
Reconstruct an enum member from its serialized class path and value. |
| Function | _dec |
Decode an iterable payload into a frozenset. |
| Function | _dec |
Return the singleton marker for missing values. |
| Function | _dec |
Decode an iterable payload into a set. |
| Function | _dec |
Decode a mapping into a datetime.timedelta. |
| Function | _dec |
Decode an iterable payload into a tuple. |
| Function | _dec |
Resolve a dotted class path to the corresponding type object. |
| Function | _decode |
Decode recursively serialized cache payloads into Python objects. |
| Function | _encode |
Encode a Python object into a JSON-compatible structure. |
| Function | _encode |
Encode subclass instances not covered by the exact-type dispatch table. |
| Function | _identity |
Return o unchanged. |
| Constant | _DECODE |
Undocumented |
| Constant | _ENCODE |
Undocumented |
| Constant | _TK |
Undocumented |
| Constant | _VK |
Undocumented |
Decode a mapping into a datetime.timedelta.
| Parameters | |
v:Any | Mapping of timedelta constructor fields. |
| Returns | |
datetime.timedelta | Decoded time delta value. |
Decode recursively serialized cache payloads into Python objects.
| Parameters | |
obj:Any | Value produced by the serializer, including nested lists and mappings. |
| Returns | |
Any | Decoded Python object, with typed payload wrappers resolved via _DECODE_DISPATCH. |
| Raises | |
ValueError | If a serialized type key is present but has no registered decoder. |
Encode a Python object into a JSON-compatible structure.
Dispatch to _ENCODE_EXACT for known types via O(1) hash lookup; fall back to fast-path dict/list handling, then _encode_subclass for all remaining cases.
| Parameters | |
obj:Any | The Python object to encode. |
| Returns | |
Any | A JSON-serialisable representation of obj. |
| Raises | |
TypeError | If obj is of an unsupported type. |
Encode subclass instances not covered by the exact-type dispatch table.
Walk a priority-ordered chain of isinstance checks to handle Path subclasses, datetime hierarchy, collection subclasses, and sentinel values. Raises TypeError for unsupported types.
| Parameters | |
obj:Any | Object whose type is not present in _ENCODE_EXACT. |
t:type | type(obj), passed by the caller to avoid recomputing it. |
| Returns | |
Any | JSON-compatible representation of obj. |
| Raises | |
TypeError | If obj does not match any supported subclass or singleton. |
Undocumented
| Value |
|