Using our Python SDK
Get started with the PostGrid Python SDK — installation, API key configuration, and links to endpoint examples for print and mail operations.
A convenient way to access all of the PostGrid Print & Mail API features in one Python library.
Getting Started
Section titled “Getting Started”Before using any of the API features, you’ll first want to install the PostGrid Python SDK by running:
pip install --upgrade postgrid-pythonNext, you’ll want to import the PostGrid Python library into your application and define your API key. You can find your API key under settings on the PostGrid dashboard.
import postgrid
postgrid.pm_key = 'YOUR_API_KEY_HERE'Next Steps
Section titled “Next Steps”After setting everything up, you’ll be able to start using the PostGrid Print & Mail API features.
View the API docs for information about each of the PostGrid Print & Mail API endpoints and some Python examples.
Note that all of the parameters used in the Python SDK are insnake_case, whereas the parameters for the Node SDK are in camelCase.