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 | |
Describe the immutable metadata needed to invoke one callable. |
| Function | _callable |
Validate a callable and retain its parameter and coroutine metadata. |
| Function | callable |
Select a plan using the callable's function and receiver mode. |
| Function | constructor |
Validate a concrete class and prepare its constructor metadata. |
| Function | warm |
Prepare ordinary controller descriptors without creating an instance. |
@lru_cache( maxsize=1024)
def _callable_plan(target: Callable, *, bound: bool = False) -> InvocationPlan:
(source)
¶
Validate a callable and retain its parameter and coroutine metadata.
| Parameters | |
target:Callable | Function underlying the callable. |
bound:bool, optional | Whether a receiver is supplied by Python's descriptor binding. |
| Returns | |
InvocationPlan | Metadata reusable across different instances of the same controller. |
Select a plan using the callable's function and receiver mode.
| Parameters | |
target:Callable | Function or bound method invoked by the container. |
| Returns | |
InvocationPlan | Parameter plan that does not retain a bound receiver. |
@lru_cache( maxsize=1024)
def constructor_plan(target: type, constructor: object) -> InvocationPlan:
(source)
¶
Validate a concrete class and prepare its constructor metadata.
| Parameters | |
target:type | Concrete class instantiated by the container. |
constructor:object | Current __init__ descriptor, included in the cache identity. |
| Returns | |
InvocationPlan | Shared constructor parameters with resolvable class-local types restored. |
Prepare ordinary controller descriptors without creating an instance.
Notes
Static lookup does not execute custom descriptor getters. Only ordinary Python functions and built-in constructor descriptors are inspected. Dependencies and controller instances are always resolved at request time. Plans remain subject to the bounded LRU capacity.
| Parameters | |
target:type | Controller whose constructor and action will run during requests. |
methodstr | Instance, static, or class method selected by the route. |
| Returns | |
None | Standard descriptor plans are cached; custom descriptors remain lazy. |