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

Async Function _drain_future Wait through repeated cancellation until the worker operation finishes.
Async Function complete_file_read Complete a pending worker read before propagating cancellation.
Async Function open_file Open a file in a worker thread.
async def _drain_future(pending: Future[T]) -> T: (source)

Wait through repeated cancellation until the worker operation finishes.

Parameters
pending:Future[T]Worker operation whose resources must remain owned until completion.
Returns
TCompleted worker result, including an opened handle awaiting cleanup.
async def complete_file_read(pending: Future[bytes]) -> bytes: (source)

Complete a pending worker read before propagating cancellation.

Parameters
pending:Future[bytes]Future representing the pending file read.
Returns
bytesBytes returned by the worker read.
Raises
asyncio.CancelledErrorIf the waiting task is cancelled after the read completes.
async def open_file(path: Path, start: int = 0) -> BinaryIO: (source)

Open a file in a worker thread.

Parameters
path:PathPath of the file to open.
start:int, optionalByte offset at which to position the file.
Returns
BinaryIOThe opened file positioned at start.
Raises
asyncio.CancelledErrorIf the waiting task is cancelled after the file opens.