mailjet-rest
Mailjet V3 API wrapper
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and requires only two lightweight runtime dependencies. Install it if you need to send email through Mailjet from Python—it's the official client and handles authentication and request building for you. The main prerequisite is having valid Mailjet API credentials and Python 3.10 or later.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Mailjet API credentials (MJ_APIKEY_PUBLIC and MJ_APIKEY_PRIVATE environment variables) and Python >= 3.10.
- Low friction installation with only two runtime dependencies (requests and typing-extensions).
- The package is actively maintained with a recent release and no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute the package freely as long as you include the license notice.
last release 2026-06-12 (63 days) · last repo commit 2026-08-12 · 121 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,227,363 downloads/mo, #4,191 on PyPI
Alternatives
Verify before relying
pip install mailjet-rest
import os
from mailjet_rest import Client
api_key = os.environ.get("MJ_APIKEY_PUBLIC")
api_secret = os.environ.get("MJ_APIKEY_PRIVATE")
with Client(auth=(api_key, api_secret), version="v3.1") as mailjet:
data = {
"Messages": [{
"From": {"Email": "sender@example.com"},
"To": [{"Email": "recipient@example.com"}],
"Subject": "Test",
"TextPart": "Hello"
}]
}
result = mailjet.send.create(data=data)
print(result.status_code)- Whether the package supports async/await patterns for non-blocking email sends.
- Rate-limiting behavior and retry logic for failed API requests.
- Whether webhook handling or parse API integration is built-in or requires additional setup.
What it is and what it does
mailjet-rest is the official Python client for Mailjet's email delivery APIs. It wraps Mailjet's v3, v3.1 (Send API), and v1 (Content API) endpoints, handling authentication, request serialization, and error handling so you can send transactional emails, manage contacts, and interact with templates and segmentation features without building HTTP calls manually.
The package is designed for Python 3.10+ and emphasizes resource safety through context manager support, local-first payload validation, and type hints for IDE autocompletion. It supports both simple email sends and complex payloads via a MessageBuilder, and returns raw response objects for standard HTTP errors rather than raising exceptions, giving you fine-grained control over error handling.
Use it for
- Send transactional emails (password resets, order confirmations) from your application.
- Manage Mailjet contacts, templates, and campaigns programmatically.
- Build and send complex multi-recipient emails with attachments and custom headers.
- Integrate email delivery into a web application using the Send API v3.1.
- Monitor email statistics and webhook events through the Email API ecosystem.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and requires only two lightweight runtime dependencies. Install it if you need to send email through Mailjet from Python—it's the official client and handles authentication and request building for you. The main prerequisite is having valid Mailjet API credentials and Python 3.10 or later.
Install
mailjet-rest on PyPI
Before you install
Low friction installation with only two runtime dependencies (requests and typing-extensions). The package is actively maintained with a recent release and no known vulnerabilities.
Requires Mailjet API credentials (MJ_APIKEY_PUBLIC and MJ_APIKEY_PRIVATE environment variables) and Python >= 3.10.
License in practice
MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute the package freely as long as you include the license notice.
Quickstart
pip install mailjet-rest
import os
from mailjet_rest import Client
api_key = os.environ.get("MJ_APIKEY_PUBLIC")
api_secret = os.environ.get("MJ_APIKEY_PRIVATE")
with Client(auth=(api_key, api_secret), version="v3.1") as mailjet:
data = {
"Messages": [{
"From": {"Email": "sender@example.com"},
"To": [{"Email": "recipient@example.com"}],
"Subject": "Test",
"TextPart": "Hello"
}]
}
result = mailjet.send.create(data=data)
print(result.status_code)
Verify before relying
- Whether the package supports async/await patterns for non-blocking email sends.
- Rate-limiting behavior and retry logic for failed API requests.
- Whether webhook handling or parse API integration is built-in or requires additional setup.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesrequeststyping-extensions |
| Maintenance | Actively maintained 63 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,227,363 / month, #4,191 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonTopic :: Communications :: EmailTopic :: Utilities |
Evidence: mailjet_rest-1.7.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “mailjet email api python”
- mailjet-restA Python wrapper for the Mailjet Email API that handles…
- django-mjmlProvides a Django template tag that compiles MJML (Mailjet Markup…
- mjmlConverts MJML (a markup language for responsive emails) to HTML…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also sailthru-client · mailchimp-transactional · sib-api-v3-sdk · mailgun · django-anymail · mailtrap · notifications-python-client · django-rest-passwordreset · mandrill · mjml