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
class _SyncStreamIterator(AsyncIterator[
Constructor: _SyncStreamIterator(source)
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. |
Read one byte chunk and close the source on exhaustion.
| Returns | |
bytes | Next chunk, copying mutable byte buffers. |
| Raises | |
StopAsyncIteration | If the source is closed or exhausted. |
TypeError | If the source yields a non-byte value. |
Retain the source without starting iteration.
| Parameters | |
source:collections.abc.Iterable[bytes] | Synchronous response body whose closure is transferred to this wrapper. |
| Returns | |
None | No return value. |