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.
Share application policy while isolating request and test state.
Configuration is shared, while fixtures follow the active execution context.
| Static Method | response |
Build an in-memory response fixture. |
| Method | __init__ |
Resolve one validated configuration snapshot without opening connections. |
| Method | _profile |
Merge integration overrides with application limits. |
| Method | client |
Start a fresh chain with the named integration's policy. |
| Async Method | execute |
Collect one bounded response within the operation deadline. |
| Async Method | fake |
Select a strict test transport for the current execution context. |
| Method | require |
Verify an origin before binding a chain to it. |
| Instance Variable | _allowed |
Canonical origins to which this application may send requests. |
| Instance Variable | _clients |
Immutable starting settings for each named integration. |
| Instance Variable | _config |
Validated application settings used to initialize profiles and transports. |
| Instance Variable | _fake |
Select the active fixture scope for the current task. |
| Instance Variable | _runtime |
Track admission and connection ownership across this application's lifetimes. |
Inherited from IHttpManager:
| Class Variable | __slots__ |
Keep the request builder's inherited slot layout. |
Inherited from PendingRequest (via IHttpManager):
| Method | _authorize |
Bind an authorization field to the selected origin. |
| Method | _headers |
Return a new chain with the merged header fields. |
| Method | accept |
Request a JSON representation. |
| Method | as |
Require a form-encoded request body. |
| Method | base |
Bind to an authorized origin for subsequent relative paths. |
| Method | connect |
Set the connect timeout within its configured ceiling. |
| Method | deadline |
Set the total request budget in seconds. |
| Async Method | delete |
Send one DELETE request. |
| Async Method | get |
Send one GET request. |
| Async Method | head |
Send one HEAD request. |
| Async Method | options |
Send one OPTIONS request. |
| Async Method | patch |
Send one PATCH request. |
| Async Method | post |
Send one POST request. |
| Async Method | put |
Send one PUT request. |
| Async Method | query |
Send one safe, idempotent QUERY with its explicitly typed content. |
| Async Method | send |
Prepare and send a single HTTP attempt. |
| Method | timeout |
Apply the duration to all I/O phases within each administrative ceiling. |
| Method | with |
Attach UTF-8 Basic credentials to the bound origin. |
| Method | with |
Overlay a copied, case-insensitive set of caller-controlled headers. |
| Method | with |
Attach one bearer credential to the bound origin. |
| Instance Variable | _manager |
Application manager that authorizes and executes requests. |
| Instance Variable | _settings |
Immutable settings inherited by requests from this chain. |
object = b'', *, status: int = 200, headers: HeaderInput = ()) -> FakeResponse:
(source)
¶
Build an in-memory response fixture.
| 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. |
Resolve one validated configuration snapshot without opening connections.
| Parameters | |
app:IApplication | Application that owns configuration and runtime state. |
| Returns | |
None | Initialize the profiles and the default request chain. |
Start a fresh chain with the named integration's policy.
| Parameters | |
name:str | Name of a configured integration. |
| Returns | |
PendingRequest | Independent chain carrying the resulting settings. |
| Raises | |
HttpConfigurationException | If the integration name is not registered. |
Settings, method: str, url: str, options: RequestOptions) -> ClientResponse:
(source)
¶
Collect one bounded response within the operation deadline.
| Parameters | |
settings:Settings | Immutable policy of the selected request chain. |
method:str | HTTP method for this attempt. |
url:str | Absolute URL or path relative to the bound origin. |
options:RequestOptions | Query, headers and body arguments supplied to the terminal. |
| Returns | |
ClientResponse | Detached status, headers and bounded response body. |
Fixtures) -> AsyncGenerator[ FakeContext]:
(source)
¶
Select a strict test transport for the current execution context.
| Parameters | |
fixtures:Fixtures | Outcomes keyed by method and absolute URL. |
| Yields | |
FakeContext | Fixture scope receiving attempts until context exit. |
Verify an origin before binding a chain to it.
| Parameters | |
new:str | Normalized origin requested by the builder. |
current:str | None | Previously bound origin, if any. |
| Returns | |
None | Allow the builder to bind the validated origin. |
| Raises | |
HttpDestinationException | If the requested origin is unauthorized or differs from the bound origin. |