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

Undocumented

Function after_shutdown_orionis_generator Render the server uptime summary panel after a successful shutdown.
Function before_shutdown_orionis_generator Render a brief shutdown panel before the server stops accepting requests.
Function shutdown_orionis_generator Yield control between the pre- and post-shutdown display steps.
Constant _BEFORE_SHUTDOWN_PANEL Undocumented
Variable _console Undocumented
def after_shutdown_orionis_generator(start_at: int): (source)

Render the server uptime summary panel after a successful shutdown.

Parameters
start_at:intTimestamp in nanoseconds (from time.time_ns()) recorded when the application started, used to calculate total uptime.
Returns
NonePrints the uptime summary table to stdout and returns nothing.
def before_shutdown_orionis_generator(): (source)

Render a brief shutdown panel before the server stops accepting requests.

Returns
NoneLeave the shutdown panel visible while lifecycle hooks execute.
def shutdown_orionis_generator(app: IApplication) -> Generator[None]: (source)

Yield control between the pre- and post-shutdown display steps.

Parameters
app:IApplicationApplication instance used to read mode flags and the startup timestamp.
Returns
Generator[None]Yields once; pre-shutdown runs before the yield, post-shutdown after.
_BEFORE_SHUTDOWN_PANEL: Panel = (source)

Undocumented

Value
Panel(Text('🛑 Stopping Orionis server...', style='bold red'),
      title='Orionis Shutdown', border_style='red', padding=(1, 1))
_console = (source)

Undocumented