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 | assert |
Require a captured request matching the predicate. |
| Method | assert |
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. |
Permanently reject further sends, including inherited child contexts.
| Returns | |
None | Leave the scope closed to all subsequent attempts. |
Require a captured request matching the predicate.
| Parameters | |
predicate:Callable[[PreparedRequest], bool] | Test condition applied to each captured request. |
| Returns | |
None | Complete when a recorded request satisfies the predicate. |
Record the attempt, resolve its fixture and yield an owned response.
| Parameters | |
request:PreparedRequest | Prepared request for this attempt. |
| Yields | |
TransportResponse | Metadata and raw stream owned by this attempt. |