Python SDK
Stdlib-only client (Python 3.10+) mirroring @evre/sdk.
# from the monorepo
cd packages/sdk-python
pip install -e ".[dev]"
from evre import Evre
client = Evre(
api_token="evre_…",
base_url="https://api.evre.email",
)
client.emails.send({
"from": "Acme <hello@mail.example.com>",
"to": "user@example.com",
"subject": "Hello",
"html": "<p>via Python</p>",
})
stats = client.analytics.get(days=7)
domains = client.domains.list()
Session auth
console = Evre(session_token="…", project_id="proj_…")
staging = console.projects.create(name="Staging")
scoped = console.with_project(staging["id"])
scoped.projects.update(staging["id"], trackOpens=True)
Resources
| Namespace | Methods |
|---|---|
emails | send, batch, get, list, cancel, receiving.list/get |
domains | list, get, create, verify, enable_inbound, remove |
projects | list, create, update, verify_tracking_domain |
analytics | get |
routes | list, create, get, update, remove |
api_keys | list, create, revoke |
webhooks | list, get, create, attempts, replay, revoke |
suppressions | list, create, remove |
Errors raise EvreApiError with code, status_code, and message.
See also the TypeScript SDK and Go SDK.