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.

class documentation

Share resolved socket, logging and static settings across server strategies.

An optional public disk is mounted when its directory exists.

Class Method resolve Read application settings and apply explicit command arguments.
Instance Variable host Address on which the server listens.
Instance Variable interface Application protocol requested by the launcher.
Instance Variable log_level Minimum Granian log level, or None to disable server logging.
Instance Variable mount Existing directory from which Granian serves the public disk.
Instance Variable port TCP port on which the server listens.
Instance Variable production Whether to apply the production worker and reload settings.
Instance Variable root Absolute application directory used to launch Granian.
Instance Variable route Decoded URL path under which the public disk is mounted.
def resolve(cls, app: IApplication, arguments: dict) -> ServeOptions: (source)

Read application settings and apply explicit command arguments.

Parameters
app:IApplicationConfigured application to serve.
arguments:dictParsed CLI overrides including host, port and interface.
Returns
ServeOptionsEffective options for both native and embedded Granian servers.

Address on which the server listens.

interface: str = (source)

Application protocol requested by the launcher.

log_level: str or None = (source)

Minimum Granian log level, or None to disable server logging.

Existing directory from which Granian serves the public disk.

TCP port on which the server listens.

production: bool = (source)

Whether to apply the production worker and reload settings.

Absolute application directory used to launch Granian.

Decoded URL path under which the public disk is mounted.