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.

class documentation

Represent SMTP configuration settings.

Parameters
driverThe driver type for the mail transport. Default is "smtp".
urlFull URL for the SMTP service. Default is from 'MAIL_URL'.
hostHostname of the SMTP server. Default is from 'MAIL_HOST'.
portPort number for SMTP communication. Default is from 'MAIL_PORT' or 587.
encryptionEncryption type for secure communication. Default is from 'MAIL_ENCRYPTION' or 'TLS'.
usernameUsername for SMTP authentication. Default is from 'MAIL_USERNAME'.
passwordPassword for SMTP authentication. Default is from 'MAIL_PASSWORD'.
timeoutConnection timeout in seconds. Default is None.
Raises
TypeErrorIf any attribute does not meet its structural type requirements.
Method __post_init__ Validate the structural types of the SMTP settings.
Class Variable driver Undocumented
Class Variable encryption Undocumented
Class Variable host Undocumented
Class Variable password Undocumented
Class Variable port Undocumented
Class Variable timeout Undocumented
Class Variable url Undocumented
Class Variable username Undocumented

Inherited from BaseEntity:

Class Method _cachedFieldMetadata Retrieve field definitions and normalized types cached by class.
Method getFields Describe field names, normalized types, defaults, and metadata.
Method toDict Convert the dataclass instance to a recursively copied dictionary.
Class Variable __slots__ Undocumented
def __post_init__(self): (source)

Validate the structural types of the SMTP settings.

This method ensures that the 'driver' is set to 'smtp' and that all other attributes conform to their expected types. It allows 'timeout' to be None.

Returns
NoneKeep structurally valid settings for transport-level validation.
Raises
TypeErrorIf any attribute does not meet its structural type requirements.
driver: str, default "smtp" = (source)

Undocumented

encryption: str = (source)

Undocumented

Undocumented

password: str = (source)

Undocumented

Undocumented

timeout: int | None, default None = (source)

Undocumented

Undocumented

username: str = (source)

Undocumented