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.
Configure one direct send without exposing a mutable MIME message.
The instance belongs to a single operation: a callback receives it once, and the options it holds are snapshotted before preparation starts.
| Method | __init__ |
Initialize an operation-local mutable configurator. |
| Method | _append |
Append normalized recipients to one internal address field. |
| Method | _snapshot |
Return the immutable current declaration for preparation. |
| Method | attach |
Append a deferred storage attachment. |
| Method | bcc |
Append hidden transport recipients. |
| Method | cc |
Append carbon-copy recipients. |
| Method | from |
Replace the From header and the transport sender. |
| Method | reply |
Append Reply-To mailboxes without adding transport recipients. |
| Method | subject |
Replace the literal subject, including with an empty string. |
| Method | to |
Append primary visible recipients. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _options |
Undocumented |
Initialize an operation-local mutable configurator.
| Parameters | |
options:MailOptions | None | Initial immutable snapshot supplied by PendingMail. |
| Returns | |
None | Retain an immutable snapshot, replaced by each mutator. |
Append normalized recipients to one internal address field.
| Parameters | |
field:str | Internal recipient collection name. |
value:Recipients | Supplied recipient declaration. |
name:str | None | Optional single-mailbox display name. |
| Returns | |
Self | This configurator with its snapshot replaced. |
Return the immutable current declaration for preparation.
| Returns | |
MailOptions | A snapshot unaffected by later mutations of this Message. |
Append a deferred storage attachment.
| Parameters | |
attachment:Attachment | Safe immutable attachment declaration. |
| Returns | |
Self | This configurator. |
| Raises | |
MailCompositionException | If the supplied object is not an Attachment. |
Append hidden transport recipients.
| Parameters | |
addresses:Recipients | One mailbox or a list/tuple of mailboxes. |
name:str | None | Display name for one string mailbox only. |
| Returns | |
Self | This configurator. |
Append carbon-copy recipients.
| Parameters | |
addresses:Recipients | One mailbox or a list/tuple of mailboxes. |
name:str | None | Display name for one string mailbox only. |
| Returns | |
Self | This configurator. |
Replace the From header and the transport sender.
| Parameters | |
address:str | Address | Exactly one sender mailbox. |
name:str | None | Display name for a string mailbox only. |
| Returns | |
Self | This configurator. |
Append Reply-To mailboxes without adding transport recipients.
| Parameters | |
addresses:Recipients | One mailbox or a list/tuple of mailboxes. |
name:str | None | Display name for one string mailbox only. |
| Returns | |
Self | This configurator. |
Replace the literal subject, including with an empty string.
| Parameters | |
value:str | Subject without control characters. |
| Returns | |
Self | This configurator. |