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.
class documentation
class Mail(BaseEntity): (source)
Represent the mail configuration entity.
| Method | __post |
Validate the default mailer and isolate nested configuration mappings. |
| Method | __validate |
Validate and copy named mailer settings without converting their shape. |
| Instance Variable | default |
The default configured mailer name or its transport driver. |
| Instance Variable | from |
Global sender applied to every message that declares no From header. |
| Instance Variable | mailers |
Conventional entities or arbitrary mailer names mapped to their settings. |
Inherited from BaseEntity:
| Class Method | _cached |
Retrieve field definitions and normalized types cached by class. |
| Method | get |
Describe field names, normalized types, defaults, and metadata. |
| Method | to |
Convert the dataclass instance to a recursively copied dictionary. |
| Class Variable | __slots__ |
Undocumented |
Validate the default mailer and isolate nested configuration mappings.
| Returns | |
None | Retain validated entities and copy caller-owned mappings. |
| Raises | |
TypeError | If any of the attributes are not of the expected type. |
ValueError | If the default mailer is not declared in the mailers. |
Validate and copy named mailer settings without converting their shape.
| Returns | |
None | Store an isolated mapping after validating each known transport. |
| Raises | |
TypeError | If any of the mailer settings are not of the expected type. |
ValueError | If the mailer settings are invalid or missing required keys. |