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

Own a synchronous byte source before its first asynchronous read.

Async Method __anext__ Read one byte chunk and close the source on exhaustion.
Method __init__ Retain the source without starting iteration.
Async Method aclose Close the active iterator or the unstarted source exactly once.
Class Variable __slots__ Retain the source and its lazily initialized iterator.
Instance Variable _iterator Iterator created only when the first body chunk is requested.
Instance Variable _source Owned source, cleared when cleanup begins.
async def __anext__(self) -> bytes: (source)

Read one byte chunk and close the source on exhaustion.

Returns
bytesNext chunk, copying mutable byte buffers.
Raises
StopAsyncIterationIf the source is closed or exhausted.
TypeErrorIf the source yields a non-byte value.
def __init__(self, source: Iterable[bytes]): (source)

Retain the source without starting iteration.

Parameters
source:collections.abc.Iterable[bytes]Synchronous response body whose closure is transferred to this wrapper.
Returns
NoneNo return value.
async def aclose(self): (source)

Close the active iterator or the unstarted source exactly once.

Returns
NoneNo return value.
__slots__: tuple[str, ...] = (source)

Retain the source and its lazily initialized iterator.

Iterator created only when the first body chunk is requested.

Owned source, cleared when cleanup begins.