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

Expose request builders, HTTP terminals and context-local fixtures.

Consumers can inject this contract into a controller or command.

Method client Select a registered integration and return its independent request chain.
Method fake Intercept sends in this context until its asynchronous exit.
Method response Create a raw or JSON response fixture for a simulated attempt.
Class Variable __slots__ Keep the request builder's inherited slot layout.

Inherited from PendingRequest:

Method __init__ Bind the operation to its immutable policy and application manager.
Method _authorize Bind an authorization field to the selected origin.
Method _headers Return a new chain with the merged header fields.
Method acceptJson Request a JSON representation.
Method asForm Require a form-encoded request body.
Method baseUrl Bind to an authorized origin for subsequent relative paths.
Method connectTimeout 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 withBasicAuth Attach UTF-8 Basic credentials to the bound origin.
Method withHeaders Overlay a copied, case-insensitive set of caller-controlled headers.
Method withToken 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.
@abstractmethod
def client(self, name: str) -> PendingRequest: (source)

Select a registered integration and return its independent request chain.

Parameters
name:strName of a configured integration.
Returns
PendingRequestIndependent chain carrying the resulting settings.
@abstractmethod
def fake(self, fixtures: Fixtures) -> AbstractAsyncContextManager[FakeContext]: (source)

Intercept sends in this context until its asynchronous exit.

Parameters
fixtures:FixturesOutcomes keyed by method and absolute URL.
Returns
contextlib.AbstractAsyncContextManager[FakeContext]Context selecting the fixture transport until exit.
@abstractmethod
def response(self, body: object = b'', *, status: int = 200, headers: HeaderInput = ()) -> FakeResponse: (source)

Create a raw or JSON response fixture for a simulated attempt.

Parameters
body:objectRaw bytes, text or JSON-compatible fixture payload.
status:intHTTP response status code.
headers:HeaderInputHeader fields in request or wire order.
Returns
FakeResponseImmutable fixture consumed by the test transport.
__slots__: tuple = (source)

Keep the request builder's inherited slot layout.