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

class Attachment: (source)

View In Hierarchy

Describe a storage attachment without opening it or resolving a disk.

Parameters
pathLogical disk-relative path, normalized on declaration.
diskConfigured disk name, or None for the default disk.
nameVisible basename overriding the logical path's basename.
mime_typeExplicit MIME type overriding storage metadata and inference.
Class Method fromStorage Declare a file to resolve through Orionis storage when sending.
Method __post_init__ Validate logical paths and safe optional metadata without I/O.
Class Variable disk Undocumented
Class Variable mime_type Undocumented
Class Variable name Undocumented
Class Variable path Undocumented
def fromStorage(cls, path: str, *, disk: str | None = None, name: str | None = None, mime_type: str | None = None) -> Self: (source)

Declare a file to resolve through Orionis storage when sending.

Parameters
path:strLogical disk-relative path.
disk:str | NoneConfigured disk name, or None for the default disk.
name:str | NoneVisible basename overriding the logical path's basename.
mime_type:str | NoneExplicit MIME type overriding storage metadata and inference.
Returns
SelfAn immutable attachment declaration, with no I/O performed.
Raises
MailAttachmentExceptionIf the declaration contains unsafe paths or metadata.
def __post_init__(self): (source)

Validate logical paths and safe optional metadata without I/O.

Returns
NoneStore canonical paths and MIME types.
Raises
MailAttachmentExceptionIf a path, disk name, visible name, or MIME type is unsafe.
disk: str | None = (source)

Undocumented

mime_type: str | None = (source)

Undocumented

name: str | None = (source)

Undocumented

Undocumented