SPB Git

Repository Public

__init__.py 1.3 KB 22 lines python

1"""spmail - Python SDK for the SP Mail REST API (standard library only).23    from spmail import SPMail4    client = SPMail()                      # reads SPMAIL_API_KEY (and SPMAIL_BASE_URL)5    client.messages.send(from_="alerts@example.org", to=["ops@example.org"], subject="Disk 91 %", text="...")6"""7from ._client import FINAL_STATUSES, DownloadedAttachment, SPMail8from ._errors import (AuthenticationError, BadRequestError, ConflictError, ConnectionError, NotFoundError, PermissionDeniedError,9                      RateLimitError, ServerError, SignatureVerificationError, SPMailError, TimeoutError, UnprocessableEntityError)10from ._generated import OPENAPI_SHA256, OPENAPI_VERSION, OPERATION_SCOPES11from ._webhooks import construct_event, sign_webhook_payload, verify_webhook_signature12from . import _generated as types1314__version__ = "1.0.0"15__all__ = [16    "SPMail", "DownloadedAttachment", "FINAL_STATUSES", "types",17    "SPMailError", "BadRequestError", "AuthenticationError", "PermissionDeniedError", "NotFoundError", "ConflictError",18    "UnprocessableEntityError", "RateLimitError", "ServerError", "ConnectionError", "TimeoutError", "SignatureVerificationError",19    "verify_webhook_signature", "construct_event", "sign_webhook_payload",20    "OPENAPI_SHA256", "OPENAPI_VERSION", "OPERATION_SCOPES",21]22
Files main
Menu

Theme