Using our Python SDK

A convenient way to access all of the PostGrid Print & Mail API features in one Python library.

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-python

Next, 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

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 in snake_case, whereas the parameters for the Node SDK are in camelCase.