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
Resolve a Granian development launch into shell-independent arguments.
Process execution consumes an argument list. Shell quoting applies only to exports.
| Class | |
Share resolved socket, logging and static settings across server strategies. |
| Function | _child |
Publish effective launcher settings to the supervisor and its workers. |
| Function | _reload |
Build watcher options using absolute application paths. |
| Function | build |
Prepare native Granian arguments and an isolated child environment. |
| Function | shell |
Quote a displayed command for PowerShell or a POSIX shell. |
| Function | watch |
Collect unique existing watch targets relative to the application root. |
def _child_environment(app:
IApplication, options: ServeOptions, targets: tuple[ Path, ...]) -> dict[ str, str]:
(source)
¶
Publish effective launcher settings to the supervisor and its workers.
| Parameters | |
app:IApplication | Application supplying its name and bootstrap timestamp. |
options:ServeOptions | Resolved configuration for this invocation. |
targets:tuple | Paths passed individually on the command line and as a native path list in the environment. |
| Returns | |
dict[str, str] | Copy of the parent environment with matching Orionis and Granian settings. |
Build watcher options using absolute application paths.
| Parameters | |
app:IApplication | Application declaring source and generated storage locations. |
targets:tuple | Effective filesystem targets, empty when reload is disabled. |
| Returns | |
list[str] | Flags and individual path arguments ready for Granian. |
def build_launch(app:
IApplication, options: ServeOptions, *, reload: bool) -> tuple[ list[ str], dict[ str, str]]:
(source)
¶
Prepare native Granian arguments and an isolated child environment.
| Parameters | |
app:IApplication | Application supplying worker metadata, entry point and invalidation paths. |
options:ServeOptions | Settings shared with the embedded server. |
reload:bool | Whether to watch the development sources for changes. |
| Returns | |
tuple[list[str], dict[str, str]] | Ordered process arguments and the environment for the supervisor. |
Collect unique existing watch targets relative to the application root.
| Parameters | |
app:IApplication | Application supplying its compiled invalidation files and directories. |
root:Path | Resolved application root used for relative paths and fallback. |
| Returns | |
tuple | Stable targets with descendants of watched directories omitted. |