PYPI PACKAGE AUDIT
v0.3.0
Needs Improvement
serversmtp
Official Python SDK for the ServerSMTP transactional email API
405
/ 1000
Quick Install
pip install serversmtp
1. Governance
50/200
2. PEP Metadata
150/200
3. Security
100/200
4. Docs & SEO
105/200
5. CI Engineering
0/200
📣 Share Audit:
Share this report and visual preview in the current language
PYPI TELEMETRY
Downloads & Community Adoption
Last 30 days (without mirrors)
Last 7 days
111
Last 30 days
111
Total (180 days)
111
Health & Engineering Analysis (5 Pillars)
1. Governance & Community50 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP Metadata & Packaging150 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✕ 0 pts
3. Security & Supply Chain100 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✕ 0 pts
Snyk / Audit Link✓ 40 pts
HTTPS Repository✕ 0 pts
4. Documentation, SEO & Ecosystem105 / 200 ▾
Structured README✓ 60 pts
Read the Docs✕ 0 pts
Django Packages✕ 0 pts
Website / Technical Articles✓ 45 pts
5. Engineering, CI & Quality0 / 200 ▾
Automated Tests✕ 0 pts
GitHub Actions CI✕ 0 pts
CHANGELOG.md✕ 0 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
README & DOCS
PyPI Metadata v0.3.0
Official Documentation & Usage Guide — serversmtp
Show full original documentation (English README) ▾
serversmtp (Python)
Official Python SDK for the ServerSMTP transactional email API. Python 3.9+, standard library only.
pip install serversmtp
import os
from serversmtp import ServerSMTP, ServerSMTPError
serversmtp = ServerSMTP(os.environ["SERVERSMTP_API_KEY"])
response = serversmtp.emails.send(
{
"from": "Shop <[email protected]>",
"to": "[email protected]",
"subject": "Order #1001 confirmed",
"html": "<p>Thank you!</p>",
},
idempotency_key="order-1001-confirmation",
)
print(response.data["status"], response.idempotency_key)
Attachments, CC and BCC (up to 10 files, 10 MB in total; each address counts toward the quota):
from serversmtp import attachment_from_path
serversmtp.emails.send({
"from": "Shop <[email protected]>",
"to": "[email protected]",
"cc": "[email protected]",
"bcc": ["[email protected]"],
"subject": "Invoice #1001",
"text": "Your invoice is attached.",
"attachments": [attachment_from_path("invoice-1001.pdf")],
})
emails.send(),emails.send_batch(),emails.schedule()(timezone-awaredatetimeforsendAt)scheduled.list(),scheduled.get(),scheduled.cancel(),verify_api_key()events.trigger(event, email, data=None, phone=None, audience_id=None)starts the automations for an event (email and SMS steps):
serversmtp.events.trigger("comanda.expediata", "[email protected]",
{"order_reference": "1001", "tracking_number": "AWB123"}, phone="0722 123 456")
- Errors raise
ServerSMTPErrorwithstatus_code,fields,request_idandtype.