sparkpost
SparkPost Python API client
What it is and what it does
SparkPost is the official Python wrapper around SparkPost's email transmission API. It abstracts the HTTP calls needed to send transactional emails, manage templates, and track delivery through SparkPost's infrastructure. The library is lightweight, depending only on requests, and provides both a direct API client and a Django email backend for framework integration.
The package was last updated in November 2021 and has received no commits since May 2023, placing it in abandoned status. It targets Python 2.7 and Python 3.4+, though modern Python support is unspecified. If you are already using SparkPost and have an existing integration, this client will work; for new projects, you should verify whether SparkPost now maintains a newer client or recommends a different approach.
Use it for:
- Send transactional emails (order confirmations, password resets) from a Python application via SparkPost.
- Integrate SparkPost email sending into a Django project using the built-in email backend.
- Manage email transmissions and track delivery metrics through SparkPost's API from Python code.
- Deploy email functionality on Google Cloud by wrapping requests with the appengine adapter.
- Programmatically send bulk or templated emails using SparkPost's transmission API.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Official Python client for the SparkPost email transmission API, enabling programmatic sending of emails through SparkPost's infrastructure.
Yes, but only if you are already committed to SparkPost and have an existing integration. The package is abandoned (last release November 2021, no commits since May 2023), so it carries maintenance risk. For new projects, contact SparkPost to confirm this is still the recommended client or whether they provide an actively maintained alternative. If you are locked into this library, the low install friction and lack of known vulnerabilities make it safe to use as-is.
Install
sparkpost on PyPI
pip
pip install sparkpostuv
uv add sparkpostpoetry
poetry add sparkpostInstalling sparkpost
Before you install
Low install friction with a single dependency (requests). However, the package is abandoned—last release was 2021-11-09 and no commits since 2023-05-22. Use only if you are locked into an existing SparkPost integration; for new projects, verify whether SparkPost maintains an actively supported client.
License in practice
Licensed under Apache 2.0 (permissive), which allows commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
Quickstart
pip install sparkpost
from sparkpost import SparkPost
sp = SparkPost('YOUR_API_KEY')
response = sp.transmissions.send(
recipients=['user@example.com'],
html='Hello world',
from_email='sender@example.com',
subject='Test'
)
Requires a valid SparkPost API key (obtainable from the SparkPost app); Python 2.7 or later.
Verify before relying
- Whether SparkPost has released a newer, actively maintained Python client since this package was abandoned.
- Current compatibility with modern Python versions beyond those listed in classifiers (3.4, 3.5).
- Whether the package works with current SparkPost API versions without undocumented breaking changes.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | abandoned — 1,739 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 197,266/month — #9,764 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sparkpost-1.3.10-py2.py3-none-any.whl
Tags
More Email packages
aiosmtplib is an asynchronous SMTP client that…
permissive · top 5,000 on PyPI
Wikipedia-APIWikipedia-API is a Python wrapper for…
permissive · top 5,000 on PyPI
python-oxmsgParses Outlook MSG files to extract email…
permissive · top 5,000 on PyPI
django-anymailSends and receives email in Django through…
permissive · top 5,000 on PyPI
IMAPClientIMAPClient provides a Pythonic interface to…
permissive · top 5,000 on PyPI
mailjet-restA Python wrapper for the Mailjet Email API that…
permissive · top 5,000 on PyPI
mailslurp-clientMailSlurp provides a Python client for an email…
unclear · top 15,000 on PyPI
mailchimp-transactionalA Python client library for the Mailchimp…
unclear · top 15,000 on PyPI
emailsBuild and send HTML and plain-text emails with…
permissive · top 15,000 on PyPI
yagmailSimplifies sending emails via Gmail or any SMTP…
permissive · top 15,000 on PyPI
azure-communication-emailSends emails via Azure Communication Services,…
permissive · top 5,000 on PyPI
smtpapiBuilds SendGrid SMTP API headers for use in…
permissive · top 15,000 on PyPI
mailtrapOfficial Python client for Mailtrap's email…
permissive · top 15,000 on PyPI
postmarkerPostmarker is a Python client library for the…
permissive · top 5,000 on PyPI
sailthru-clientA Python client library for the Sailthru REST…
permissive · top 15,000 on PyPI