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

Record attempts in this context and reject every unconfigured request.

Fixture selection occurs at send time, including for previously built chains.

Method __init__ Copy fixture sequences so consumption is local to this context.
Async Method aclose Permanently reject further sends, including inherited child contexts.
Method assertSent Require a captured request matching the predicate.
Method assertSentCount Require the recorded number of attempts.
Async Method open Record the attempt, resolve its fixture and yield an owned response.
Instance Variable _closed Track whether this fixture scope still accepts requests.
Instance Variable _fixtures Store reusable outcomes and consumable sequences for this scope.
Instance Variable _history Record prepared requests in the order in which attempts arrive.

Inherited from IHttpTransport:

Class Variable __slots__ Leave storage for transport state to concrete implementations.
def __init__(self, fixtures: Fixtures): (source)

Copy fixture sequences so consumption is local to this context.

Parameters
fixtures:FixturesOutcomes keyed by method and absolute URL.
Returns
NoneInitialize an open scope with an empty request history.
async def aclose(self): (source)

Permanently reject further sends, including inherited child contexts.

Returns
NoneLeave the scope closed to all subsequent attempts.
def assertSent(self, predicate: Callable[[PreparedRequest], bool]): (source)

Require a captured request matching the predicate.

Parameters
predicate:Callable[[PreparedRequest], bool]Test condition applied to each captured request.
Returns
NoneComplete when a recorded request satisfies the predicate.
def assertSentCount(self, expected: int): (source)

Require the recorded number of attempts.

Parameters
expected:intNumber of attempts expected in this fixture scope.
Returns
NoneComplete when the expected number of attempts was recorded.

Record the attempt, resolve its fixture and yield an owned response.

Parameters
request:PreparedRequestPrepared request for this attempt.
Yields
TransportResponseMetadata and raw stream owned by this attempt.

Track whether this fixture scope still accepts requests.

Store reusable outcomes and consumable sequences for this scope.

Record prepared requests in the order in which attempts arrive.