ORIONIS API REFERENCE

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 _WorkerTarget 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_embedded Serve until requested to stop and await the worker's shutdown hooks.
async def _main(entry_point: str): (source)

Load the project and stop its worker when the parent closes the pipe.

Parameters
entry_point:strDotted module and application attribute resolved by the launcher.
Returns
NoneReturn control to the worker process after the embedded server stops.
async def _serve(server: embed.Server, target: _WorkerTarget, *, rsgi: bool): (source)

Run the worker through its protocol's complete application lifecycle.

Parameters
server:ServerEmbedded Granian server bound to this worker.
target:_WorkerTargetApplication adapter observing the protocol lifecycle.
rsgi:boolWhether to await Orionis' asynchronous RSGI hooks on the running loop.
Returns
NoneFinish serving after the application completes its shutdown hooks.
async def serve_embedded(app: IApplication, options: ServeOptions, stop: asyncio.Event): (source)

Serve until requested to stop and await the worker's shutdown hooks.

Parameters
app:IApplicationCreated application receiving all connections.
options:ServeOptionsEffective socket, protocol, logging and static settings.
stop:asyncio.EventSignal from the launcher or debugger to end this worker.
Returns
NoneWait for the worker to stop and release its shutdown watcher.