postgrid-python
The official Python library for the PostGrid API
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and provides a well-typed interface to a specific service. Install it if you need to integrate PostGrid's print mail or address verification APIs into a Python application; skip it if you don't use PostGrid or prefer direct HTTP calls.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later and a valid PostGrid API key set via environment variable or constructor argument.
- Low install friction with a pure-Python wheel and six common dependencies.
- Active maintenance with a recent release 60 days ago and current commit activity.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
last release 2026-06-15 (60 days) · last repo commit 2026-07-17 · 11 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 249,796 downloads/mo, #8,645 on PyPI
Alternatives
Verify before relying
pip install postgrid-python
import os
from postgrid import PostGrid
client = PostGrid(print_mail_api_key=os.environ.get("POSTGRID_PRINT_MAIL_API_KEY"))
contact = client.print_mail.contacts.create(
address_line1="addressLine1",
country_code="countryCode",
first_name="firstName",
)
print(contact.id)- Whether the library handles all PostGrid API endpoints or only a subset of the service.
- Performance characteristics of auto-pagination and whether it suits high-volume list operations.
- Specifics of retry behavior mentioned as '2 times' in the description excerpt.
What it is and what it does
PostGrid Python is the official client library for accessing PostGrid's REST API from Python applications. It wraps the PostGrid print mail, address verification, and bulk verification services behind a typed, developer-friendly interface. The library provides both synchronous and asynchronous clients powered by httpx, with full type hints for request parameters and response objects using Pydantic models and TypedDicts.
The package is designed to handle common API patterns automatically: paginated list responses are wrapped in auto-iterating objects so you can loop through results without manually fetching pages, file uploads accept bytes or path-like objects, and errors are categorized into specific exception types (authentication, rate limit, connection, etc.) for granular error handling. It supports modern Python versions from 3.9 onward and includes optional aiohttp support for improved async concurrency.
Use it for
- Integrate print mail services into a Python application to create and manage postal contacts and letters programmatically.
- Verify postal addresses in bulk or individually before sending physical mail to reduce delivery failures.
- Build async-first applications that need to batch address verification requests without blocking.
- Automate postal mail workflows with typed, IDE-assisted API calls and built-in pagination handling.
- Handle API errors gracefully with specific exception types for rate limits, authentication, and connection issues.
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, low install friction, and provides a well-typed interface to a specific service. Install it if you need to integrate PostGrid's print mail or address verification APIs into a Python application; skip it if you don't use PostGrid or prefer direct HTTP calls.
Install
postgrid-python on PyPI
Before you install
Low install friction with a pure-Python wheel and six common dependencies. Active maintenance with a recent release 60 days ago and current commit activity.
Requires Python 3.9 or later and a valid PostGrid API key set via environment variable or constructor argument.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install postgrid-python
import os
from postgrid import PostGrid
client = PostGrid(print_mail_api_key=os.environ.get("POSTGRID_PRINT_MAIL_API_KEY"))
contact = client.print_mail.contacts.create(
address_line1="addressLine1",
country_code="countryCode",
first_name="firstName",
)
print(contact.id)
Verify before relying
- Whether the library handles all PostGrid API endpoints or only a subset of the service.
- Performance characteristics of auto-pagination and whether it suits high-volume list operations.
- Specifics of retry behavior mentioned as '2 times' in the description excerpt.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesanyiodistrohttpxpydanticsniffiotyping-extensions |
| Maintenance | Actively maintained 60 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 249,796 / month, #8,645 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: postgrid_python-2.3.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 › “postgrid api client python”
- postgrid-pythonProvides a typed Python client for the PostGrid REST API, supporting…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
- codewords-clientA Python client library for the Codewords API with built-in FastAPI…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules 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.
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.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also composio-client · agentex-client · cloudflare · prelude-python-sdk · groq · arcadepy · orb-billing · supermemory · opencode-ai · parallel-web