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
Own HTTP work on the event loop that admitted it.
Overlapping application lifetimes can share the same pool until its final owner exits.
| Class | _ |
Share a pool among overlapping application lifetimes. |
| Class | _ |
Limit admission across owned generations and temporary transports. |
| Class | _ |
Bind tasks to an HTTP, CLI or headless lifetime. |
| Class | _ |
Account for open pools including idle keep-alive and in-progress closes. |
| Class | _ |
Publish one successfully initialized transport, including on cancellation. |
| Class | |
Index independent transport lifetimes for one application. |
| Class | |
Hold active or pending capacity while preparing and sending a request. |
| Function | _after |
Discard a registry lock possibly held by a vanished parent thread. |
| Async Function | _finally |
Preserve the operation's exception when its finalizer also fails. |
| Function | _task |
Release rejected work and still schedule mandatory resource finalizers. |
| Async Function | complete |
Finish releasing a resource despite caller cancellation or factory rejection. |
| Function | runtime |
Find the registry shared by the application's manager and entry points. |
| Constant | _CLOSED |
Report an exchange rejected after the end of its lifecycle. |
| Constant | _FULL |
Report an exchange rejected when all pending slots are occupied. |
| Constant | _GRACE |
Limit the time in seconds to wait for outstanding sends before cancellation. |
| Constant | _UNBOUND |
Distinguish an unbound context from an explicit dispatch without a worker. |
| Type Alias | |
Obtain the transport allocated to an admitted exchange. |
| Type Alias | |
Create a transport asynchronously on its owning loop. |
| Type Alias | |
Identify the application lifecycle that owns outbound HTTP work. |
| Variable | _index |
Serialize application registry creation and event-loop index access. |
Discard a registry lock possibly held by a vanished parent thread.
| Returns | |
None | Leave the child process with its own unlocked registry guard. |
def _task(work:
Coroutine[ object, object, T], *, cleanup: bool = False) -> asyncio.Task[ T]:
(source)
¶
Release rejected work and still schedule mandatory resource finalizers.
| Parameters | |
work:Coroutine | Coroutine whose result and exceptions are forwarded by the task. |
cleanup:bool | Whether a rejected task factory must still schedule cleanup. |
| Returns | |
asyncio.Task | Scheduled task on the running loop. |
Find the registry shared by the application's manager and entry points.
| Parameters | |
app:object | Application that owns configuration and runtime state. |
| Returns | |
HttpRuntime | Application registry for outbound connections. |
Report an exchange rejected when all pending slots are occupied.
| Value |
|
Identify the application lifecycle that owns outbound HTTP work.
| Value |
|