sendgrid
Twilio SendGrid library for Python
Install
sendgrid on PyPI
pip
pip install sendgriduv
uv add sendgridpoetry
poetry add sendgridPackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — python-http-client, cryptography, werkzeug |
| Maintenance | actively maintained — 328 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: sendgrid-6.12.5-py3-none-any.whl
About sendgrid
from the package's own PyPI description — quoted content, verbatim
.. image:: https://github.com/sendgrid/sendgrid-python/raw/HEAD/twilio_sendgrid_logo.png :target: https://www.sendgrid.com
|Tests Badge| |Python Versions| |PyPI Version| |Docker Badge| |MIT licensed| |Twitter Follow| |GitHub contributors| |Open Source Helpers|
This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via Python.
NEW:
- Version 6.X release is a BREAKING CHANGE from version 5.X, please see the
release notes_ for details. - Send SMS messages with
Twilio_.
This library provides full support for all Twilio SendGrid Web API v3 endpoints, including v3 /mail/send.
We want this library to be community driven and Twilio SendGrid led.
We need your help to realize this goal.
To help make sure we are building the right things in the right order,
we ask that you create issues and pull requests or simply upvote or comment on existing issues or pull requests.
Please browse the rest of this README for further detail.
We appreciate your continued support, thank you!
Table of Contents
Installation <#installation>__Quick Start <#quick-start>__Common Use Cases <#use-cases>__ -...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Sends emails and SMS messages via the Twilio SendGrid Web API v3, with support for templates, attachments, and inbound email processing through a Python client library.
Low friction: pure-Python wheel with three lightweight runtime dependencies (python-http-client, cryptography, werkzeug). Active maintenance with last commit on 2026-06-25 and latest release on 2025-09-19.
MIT license (permissive) allows commercial and private use with minimal restrictions; you may use, modify, and distribute sendgrid freely provided you retain the license notice.
Usage
pip install sendgrid
import os
from sendgrid import SendGridAPIClient
from sendgrid.helpers.mail import Mail
message = Mail(
from_email='from@example.com',
to_emails='to@example.com',
subject='Test',
html_content='<strong>Hello</strong>')
sg = SendGridAPIClient(os.environ.get('SENDGRID_API_KEY'))
response = sg.send(message)
Requires SENDGRID_API_KEY environment variable set with a valid Twilio SendGrid API key.
Verdict: Mature, actively maintained library for Twilio SendGrid integration with low install friction and no known vulnerabilities. MIT licensing and broad Python version support (2.7, 3.5–3.13) make it suitable for production email delivery.
Needs verification
- Whether the library's SMS functionality requires additional Twilio account setup beyond SendGrid credentials.
- Performance characteristics and rate-limiting behavior when sending bulk emails.
- Compatibility of Python 2.7 support with modern security practices, given its age.
Similar packages
permissive · top 1,000 on PyPI
email-validatorpermissive · top 1,000 on PyPI
PyGithubcopyleft · top 1,000 on PyPI
supabasepermissive · top 1,000 on PyPI
cryptographypermissive · top 100 on PyPI
factory-boypermissive · top 1,000 on PyPI
PyOTPpermissive · top 1,000 on PyPI
aiofilepermissive · top 1,000 on PyPI
groqpermissive · top 1,000 on PyPI
agent-client-protocolunclear · top 1,000 on PyPI