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

Function http_origins Reuse explicit CORS origins without granting wildcard protocol access.
Function redis_url Build a Redis URL from a service override or shared connection variables.
def http_origins(override_key: str) -> tuple[str, ...]: (source)

Reuse explicit CORS origins without granting wildcard protocol access.

Parameters
override_key:strProtocol-specific allowlist taking precedence over CORS defaults.
Returns
tuple[str, ...]Shared explicit origins suitable for protocol-specific validation.
Raises
TypeErrorIf the shared allowlist is not a list or tuple of strings.
def redis_url(override_key: str) -> str: (source)

Build a Redis URL from a service override or shared connection variables.

Parameters
override_key:strService-specific variable taking precedence over shared Redis settings.
Returns
strRedis URL with escaped credentials and bracketed IPv6 addresses.
Raises
TypeErrorIf shared connection settings have invalid types.
ValueErrorIf a shared host, port or database index is invalid.