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.
class documentation
Forward HTTP connections and track the embedded worker's lifespan.
| Method | __call__ |
Forward ASGI traffic and observe acknowledgements on lifespan scopes. |
| Method | __init__ |
Retain the application and track when its worker can accept a stop. |
| Method | __rsgi__ |
Delegate an RSGI connection to the application. |
| Method | __rsgi |
Mark the RSGI worker ready to receive Granian's stop notification. |
| Instance Variable | app |
Application that handles HTTP connections and lifespan events. |
| Instance Variable | failure |
Failure acknowledged through the ASGI lifespan protocol. |
| Instance Variable | ready |
Signal that startup has completed and Granian can stop the worker. |
Retain the application and track when its worker can accept a stop.
| Parameters | |
app:IApplication | Created application for this worker. |
| Returns | |
None | Store the application and initialize its readiness and failure state. |
Mark the RSGI worker ready to receive Granian's stop notification.
| Parameters | |
loop:asyncio.AbstractEventLoop | Event loop supplied by the RSGI protocol. |
| Returns | |
None | Signal that Granian can receive a stop request. |