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 | attachment |
Validate the visible basename of an attachment. |
| Function | freeze |
Snapshot containers without copying arbitrary user objects. |
| Function | header |
Validate a single unstructured header value. |
| Function | media |
Validate a bare MIME type without header parameters. |
| Function | sanitize |
Remove controls and configured secrets from a transport diagnostic. |
| Constant | _HEADER |
Undocumented |
| Constant | _MAX |
Undocumented |
| Constant | _MEDIA |
Undocumented |
| Constant | _TOKEN |
Undocumented |
Validate the visible basename of an attachment.
| Parameters | |
value:str | Name exposed in the Content-Disposition header. |
| Returns | |
str | The validated name. |
| Raises | |
MailAttachmentException | If the name is empty, unsafe, or contains a path. |
Snapshot containers without copying arbitrary user objects.
| Parameters | |
value:object | A container tree or an opaque context value. |
active:frozenset[int] | Ancestors used to reject cyclic container structures. |
| Returns | |
object | Read-only copied containers; opaque values retain identity. |
| Raises | |
MailCompositionException | If a container cycle prevents an immutable snapshot. |
Validate a single unstructured header value.
| Parameters | |
value:str | Header text, including an intentionally empty subject. |
label:str | Public field name used in diagnostics. |
| Returns | |
str | The unchanged safe value. |
| Raises | |
MailCompositionException | If the value is not text or contains control characters. |
Validate a bare MIME type without header parameters.
| Parameters | |
value:str | Explicit or storage-provided MIME type. |
| Returns | |
str | A lowercase type/subtype pair. |
| Raises | |
MailAttachmentException | If either token is invalid or parameters are present. |