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.

module documentation

Undocumented

Class _EventFrames Own an MCP byte iterator even if the HTTP stream is never started.
Class McpHttpTransport Serve a registered endpoint without owning routes, sessions or identities.
Function _accept_quality Read the final quality parameter of one Accept representation.
Function _accepts_both Require explicitly acceptable JSON and event-stream representations.
Constant _ACCEPT_MEDIA_TYPES Undocumented
Constant _JSON_MEDIA_TYPE Undocumented
def _accept_quality(parameters: str) -> float | None: (source)

Read the final quality parameter of one Accept representation.

Parameters
parameters:strSemicolon-delimited parameters following the media type.
Returns
float | NoneQuality value, or None if a quality parameter is malformed.
def _accepts_both(headers: Headers) -> bool: (source)

Require explicitly acceptable JSON and event-stream representations.

Parameters
headers:HeadersRequest headers containing the Accept representations.
Returns
boolWhether both representations are acceptable and qualities are valid.
_ACCEPT_MEDIA_TYPES = (source)

Undocumented

Value
frozenset(set([_JSON_MEDIA_TYPE, 'text/event-stream']))
_JSON_MEDIA_TYPE: str = (source)

Undocumented

Value
'application/json'