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
Simulate outbound HTTP attempts within a fixture scope.
Each scope records its own request history for assertions.
| Class | |
Record attempts in this context and reject every unconfigured request. |
| Class | |
Store immutable metadata and raw body for one simulated response. |
| Async Function | _body |
Yield raw bytes through the same read path as network responses. |
| Function | fake |
Build an immutable fixture from raw bytes, text or a JSON value. |
| Type Alias | |
Associate a method and absolute URL with a reusable outcome or ordered outcomes. |
| Type Alias | |
Accept headers as a mapping or an ordered sequence of name and value pairs. |
| Type Alias | |
Represent a response or a client exception for one simulated attempt. |
def fake_response(body:
object = b'', *, status: int = 200, headers: HeaderInput = ()) -> FakeResponse:
(source)
¶
Build an immutable fixture from raw bytes, text or a JSON value.
| Parameters | |
body:object | Raw bytes, text or JSON-compatible fixture payload. |
status:int | HTTP response status code. |
headers:HeaderInput | Header fields in request or wire order. |
| Returns | |
FakeResponse | Immutable fixture consumed by the test transport. |
Represent a response or a client exception for one simulated attempt.
| Value |
|