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 | _has |
Detect forbidden whitespace and ASCII controls in an endpoint. |
| Function | _port |
Validate the effective SMTP TCP port. |
| Function | _text |
Read a string setting without including its value in errors. |
| Function | _timeout |
Validate a blocking SMTP timeout without silently replacing None. |
| Function | _url |
Parse the supported MAIL_URL components with explicit precedence. |
| Constant | _DEFAULT |
Undocumented |
| Constant | _ENCRYPTIONS |
Undocumented |
| Constant | _FIRST |
Undocumented |
| Constant | _MAX |
Undocumented |
| Constant | _SMTPS |
Undocumented |
Validate the effective SMTP TCP port.
| Parameters | |
value:object | Port after applying URL precedence. |
| Returns | |
int | Port inside the TCP range. |
| Raises | |
MailConfigurationException | If the port is not an integer between 1 and 65535. |
Validate a blocking SMTP timeout without silently replacing None.
| Parameters | |
value:object | Configured integer seconds, or None. |
| Returns | |
int | None | Explicit timeout; None means an unbounded socket wait. |
| Raises | |
MailConfigurationException | If the timeout is not a positive integer or None. |
Parse the supported MAIL_URL components with explicit precedence.
| Parameters | |
url:str | Empty string, smtp URL, or smtps URL without extra components. |
| Returns | |
dict[str, object] | Only the options supplied or forced by the URL. |
| Raises | |
MailConfigurationException | If the URL is malformed or includes unsupported components. |