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
Run one development worker until its supervisor requests shutdown.
An inherited pipe ties the worker's lifetime to its launcher on Windows.
| Class | _ |
Forward HTTP connections and track the embedded worker's lifespan. |
| Async Function | _main |
Load the project and stop its worker when the parent closes the pipe. |
| Async Function | _serve |
Run the worker through its protocol's complete application lifecycle. |
| Async Function | serve |
Serve until requested to stop and await the worker's shutdown hooks. |
Run the worker through its protocol's complete application lifecycle.
| Parameters | |
server:Server | Embedded Granian server bound to this worker. |
target:_WorkerTarget | Application adapter observing the protocol lifecycle. |
rsgi:bool | Whether to await Orionis' asynchronous RSGI hooks on the running loop. |
| Returns | |
None | Finish serving after the application completes its shutdown hooks. |
Serve until requested to stop and await the worker's shutdown hooks.
| Parameters | |
app:IApplication | Created application receiving all connections. |
options:ServeOptions | Effective socket, protocol, logging and static settings. |
stop:asyncio.Event | Signal from the launcher or debugger to end this worker. |
| Returns | |
None | Wait for the worker to stop and release its shutdown watcher. |