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
Canonicalize and authorize outbound HTTPS destinations.
Configuration and request builders compare the same normalized origins.
| Function | _check |
Reject empty, oversized or ambiguous destination strings. |
| Function | _normalize |
Resolve literal dot segments without modifying encoded segments or slashes. |
| Function | _parts |
Split an HTTPS URL into normalized authority, path and query. |
| Function | destination |
Resolve one destination before attaching credentials. |
| Function | origin |
Return a normalized, path-free HTTPS origin. |
| Function | origin |
Return the origin of an absolute outgoing URL. |
| Constant | _AUTHORITY |
Match an authority and capture its ASCII-only IP literal and optional port. |
| Constant | _HTTPS |
Define the canonical HTTPS prefix for every authorized authority. |
| Constant | _HTTPS |
Match an absolute HTTPS URL and capture its authority, path and optional query. |
| Constant | _INVALID |
Match percent signs that do not introduce two ASCII hexadecimal digits. |
| Constant | MAX |
Limit the length of an outgoing URL and its encoded request target. |
Resolve one destination before attaching credentials.
| Parameters | |
value:str | Absolute URL or integration-relative path. |
base:str | None | Selected integration origin, if present. |
allowed:frozenset[str] | Canonical HTTPS origins permitted by the application. |
| Returns | |
str | Canonical URL under an authorized origin. |
| Raises | |
HttpDestinationException | If the URL is malformed or outside the configured origins. |
HttpSizeLimitException | If the source URL or its encoded form exceeds the byte budget. |
Match an authority and capture its ASCII-only IP literal and optional port.
| Value |
|
Match an absolute HTTPS URL and capture its authority, path and optional query.
| Value |
|
Match percent signs that do not introduce two ASCII hexadecimal digits.
| Value |
|