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

class HttpClientConfig(BaseEntity): (source)

Constructor: HttpClientConfig(**kwargs)

View In Hierarchy

Validate the application policy before any outbound connection can open.

Named integrations inherit limits from this application policy.

Method __post_init__ Normalize independent, serializable origins and connection profiles.
Method _normalizeProfile Copy one profile and validate its policy against the global ceilings.
Class Variable allowed_origins List the exact HTTPS origins authorized for outbound requests.
Class Variable clients Define named integrations and their operation limits.
Class Variable connect_timeout Set the maximum connection timeout in seconds.
Class Variable deadline Limit the entire operation to this number of seconds.
Class Variable keepalive_expiry Limit how long an idle connection may be reused, in seconds.
Class Variable max_connections Limit the number of connections per event loop.
Class Variable max_in_flight Limit the number of active operations per event loop.
Class Variable max_keepalive_connections Limit the number of idle connections retained in the pool.
Class Variable max_pending Limit the number of operations waiting for admission.
Class Variable max_request_bytes Limit the encoded request body size in bytes.
Class Variable max_response_bytes Limit the buffered response body size in bytes.
Class Variable pool_timeout Limit how long an operation can wait for a connection, in seconds.
Class Variable read_timeout Set the maximum read inactivity in seconds.
Class Variable write_timeout Set the maximum write inactivity in seconds.

Inherited from BaseEntity:

Class Method _cachedFieldMetadata Retrieve field definitions and normalized types cached by class.
Method __init__ Initialize declared fields and public extra attributes.
Method _dynamicAttributes Return public instance attributes that are not declared fields.
Method _validateExtraNames Validate names and storage for public extra attributes.
Method getFields Describe declared fields and, optionally, dynamic attributes.
Method toDict Return a recursively copied dictionary of declared and extra values.
Class Variable __slots__ Declare that this class introduces no additional instance slots.
Class Variable _orionis_field_metadata Cache declared fields and normalized type names for each concrete class.
def __post_init__(self): (source)

Normalize independent, serializable origins and connection profiles.

Returns
NoneRetain policy values owned by this configuration instance.
Raises
HttpConfigurationExceptionIf any field or profile violates the outbound policy.
def _normalizeProfile(self, raw: object) -> dict[str, object]: (source)

Copy one profile and validate its policy against the global ceilings.

Parameters
raw:objectIntegration definition from application configuration.
Returns
dict[str, object]Independent settings with a canonical, authorized HTTPS origin.
allowed_origins: tuple[str, ...] | list[str] = (source)

List the exact HTTPS origins authorized for outbound requests.

Define named integrations and their operation limits.

connect_timeout: float = (source)

Set the maximum connection timeout in seconds.

Limit the entire operation to this number of seconds.

keepalive_expiry: float = (source)

Limit how long an idle connection may be reused, in seconds.

max_connections: int = (source)

Limit the number of connections per event loop.

max_in_flight: int = (source)

Limit the number of active operations per event loop.

max_keepalive_connections: int = (source)

Limit the number of idle connections retained in the pool.

max_pending: int = (source)

Limit the number of operations waiting for admission.

max_request_bytes: int = (source)

Limit the encoded request body size in bytes.

max_response_bytes: int = (source)

Limit the buffered response body size in bytes.

pool_timeout: float = (source)

Limit how long an operation can wait for a connection, in seconds.

read_timeout: float = (source)

Set the maximum read inactivity in seconds.

write_timeout: float = (source)

Set the maximum write inactivity in seconds.