parseur.mailbox¶
Classes¶
Enumeration of supported mailbox sorting keys. |
|
Module Contents¶
- class parseur.mailbox.MailboxOrderKey[source]¶
Bases:
str,enum.EnumEnumeration of supported mailbox sorting keys.
Used with the order_by parameter to specify sorting in Mailbox.list() and Mailbox.iter().
- class parseur.mailbox.Mailbox[source]¶
- classmethod from_response(data: Dict) Dict[source]¶
Deserialize a single mailbox API response.
- Parameters:
data – Raw API response dictionary.
- Returns:
Validated and transformed mailbox dictionary.
- classmethod iter(*, search: str | None = None, order_by: MailboxOrderKey | None = None, ascending: bool = True) Iterable[Dict][source]¶
Yield all mailboxes with pagination and optional filtering or sorting.
- classmethod list(*, search: str | None = None, order_by: MailboxOrderKey | None = None, ascending: bool = True) List[Dict[str, Any]][source]¶
Retrieve all mailboxes as a list.