skillfed

agentmail

agentmail v0.5.9 4.3M downloads/30d#2,349 on PyPI63
License unclear Active released

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 agentmail

uv

uv add agentmail

poetry

poetry add agentmail

Installing 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

Intended Audience :: DevelopersOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Tags

agentmail api clientpython email api sdkasync http client librarywebsocket real-time communicationapi wrapper pythonrest client sdkasync email service
api-clientasync-supportwebsockets

More Python Modules packages