agentmail
What it is and what it does
Agentmail is a Python SDK that wraps the Agentmail API, offering both synchronous and asynchronous clients for making API calls. It handles HTTP communication through httpx, data validation via pydantic, and includes built-in retry logic with exponential backoff for transient failures (408, 429, 5xx responses). The library also supports real-time websocket connections for low-latency, bidirectional communication, allowing you to either iterate over incoming messages or attach event handlers.
The package is designed for developers integrating Agentmail services into Python applications. It abstracts away HTTP details, provides typed request/response handling, and offers both blocking and non-blocking execution paths. Configuration options include custom timeouts, retry limits, proxy support via custom httpx clients, and raw response access for advanced use cases.
Use it for:
- Build a Python application that creates and manages email inboxes via the Agentmail API.
- Implement real-time message handling using websocket connections for low-latency event processing.
- Integrate Agentmail into an async web service or background task runner without blocking I/O.
- Access raw HTTP response headers and status codes for debugging or custom error handling.
- Deploy behind a proxy or with custom network transport by passing a configured httpx client.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Agentmail provides a Python client library for accessing the Agentmail API, supporting both synchronous and asynchronous operations, including real-time websocket connections.
Yes, if you are building a Python application that needs to integrate with Agentmail services. The package has low install friction, active maintenance, no known vulnerabilities, and supports modern Python versions (3.8–3.15). The main caveat is that the license is unclear in the metadata—verify the actual license before use in proprietary contexts. The SDK is generated programmatically, so direct contributions are not accepted.
Install
agentmail on PyPI
pip
pip install agentmailuv
uv add agentmailpoetry
poetry add agentmailInstalling agentmail
Before you install
Low install friction with a pure-wheel distribution and only five runtime dependencies (httpx, pydantic, pydantic-core, typing_extensions, websockets). Actively maintained with a release 11 days old and recent commit activity.
License in practice
License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before using in proprietary or restricted contexts.
Quickstart
pip install agentmail
from agentmail import AgentMail
client = AgentMail(api_key="your-api-key")
client.inboxes.create()
Requires a valid Agentmail API key to authenticate requests.
Verify before relying
- What is the actual license under which agentmail is distributed?
- What specific Agentmail API endpoints and operations are supported beyond inboxes?
- Are there rate limits or quotas enforced by the Agentmail service itself?
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (<4.0,>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — httpx, pydantic, pydantic-core, typing_extensions, websockets |
| Maintenance | actively maintained — 11 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,252,830/month — #2,349 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: agentmail-0.5.9-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
phonicPhonic is a Python client library for accessing…
permissive · top 15,000 on PyPI
python-intercomA Python client library for the Intercom API,…
unclear · top 15,000 on PyPI
pipedreamProvides a Python client library for accessing…
unclear · top 15,000 on PyPI
athenaintelProvides a Python client library for calling…
unclear · top 15,000 on PyPI
moonraker-apiFully async Python client for connecting to and…
copyleft · top 15,000 on PyPI
brevo-pythonOfficial Python SDK for the Brevo API,…
unclear · top 15,000 on PyPI
reka-apiProvides a Python client library for accessing…
permissive · top 15,000 on PyPI
auth0-pythonProvides Python bindings to Auth0's…
permissive · top 5,000 on PyPI
powerbot-clientPowerBot client library for synchronous…
unclear · top 15,000 on PyPI
todoist_api_pythonOfficial Python SDK for the Todoist API,…
permissive · top 15,000 on PyPI