The official Python library for the PostGrid API. Provides convenient access to the PostGrid print-and-mail and address verification APIs. Current version 2.1.1, actively maintained with monthly releases.
pip install postgrid-pythonVerified import paths — ran on the pinned version, not inferred.
Verify an address using the PostGrid API with environment variable for API key.
Upgrade to v2.0.0+ and refactor to use the new client pattern. See migration guide at https://github.com/postgrid/postgrid-python/releases/tag/v2.0.0
Use `PostGridClient(api_key='...')` or set `POSTGRID_API_KEY` environment variable.
Pass merge variables directly inside the `to` address dictionary (e.g., `to={'firstLine': '...', 'mergeVariables': {...}}`)Handle `postgrid.errors.PostGridError` with status 422, not 404.
No dependency data recorded yet.