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 _has_controls 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_overrides Parse the supported MAIL_URL components with explicit precedence.
Constant _DEFAULT_PORT Undocumented
Constant _ENCRYPTIONS Undocumented
Constant _FIRST_PRINTABLE Undocumented
Constant _MAX_PORT Undocumented
Constant _SMTPS_PORT Undocumented
def _has_controls(value: str) -> bool: (source)

Detect forbidden whitespace and ASCII controls in an endpoint.

Parameters
value:strURL or hostname.
Returns
boolWhether the endpoint contains forbidden characters.
def _port(value: object) -> int: (source)

Validate the effective SMTP TCP port.

Parameters
value:objectPort after applying URL precedence.
Returns
intPort inside the TCP range.
Raises
MailConfigurationExceptionIf the port is not an integer between 1 and 65535.
def _text(config: Mapping[str, object], key: str, default: str) -> str: (source)

Read a string setting without including its value in errors.

Parameters
config:Mapping[str, object]Effective connection options.
key:strOption name.
default:strValue used when the option is absent.
Returns
strUnmodified setting.
Raises
MailConfigurationExceptionIf a setting is not a string.
def _timeout(value: object) -> int | None: (source)

Validate a blocking SMTP timeout without silently replacing None.

Parameters
value:objectConfigured integer seconds, or None.
Returns
int | NoneExplicit timeout; None means an unbounded socket wait.
Raises
MailConfigurationExceptionIf the timeout is not a positive integer or None.
def _url_overrides(url: str) -> dict[str, object]: (source)

Parse the supported MAIL_URL components with explicit precedence.

Parameters
url:strEmpty string, smtp URL, or smtps URL without extra components.
Returns
dict[str, object]Only the options supplied or forced by the URL.
Raises
MailConfigurationExceptionIf the URL is malformed or includes unsupported components.
_DEFAULT_PORT: int = (source)

Undocumented

Value
587
_ENCRYPTIONS: dict[str, MailEncryption] = (source)

Undocumented

Value
{'tls': MailEncryption.TLS,
 'ssl': MailEncryption.SSL,
 'none': MailEncryption.NONE,
 '': MailEncryption.NONE}
_FIRST_PRINTABLE: int = (source)

Undocumented

Value
32
_MAX_PORT: int = (source)

Undocumented

Value
65535
_SMTPS_PORT: int = (source)

Undocumented

Value
465