skillfed

sparkpost

SparkPost Python API client

sparkpost v1.3.10 197.3K downloads/30d#9,764 on PyPI91
Permissive license Apache 2.0 Abandoned released

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 sparkpost

uv

uv add sparkpost

poetry

poetry add sparkpost

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Topic :: Communications :: Email

Tags

sparkpost email api clientsend emails via sparkpostsparkpost python libraryemail transmission apisparkpost django backendtransactional email pythonsparkpost api wrapper
email-deliverytransactional-emailabandoned

More Email packages