The Python client for Supergood
Project description
Python
The Supergood Python client connects Supergood to your Python application. Follow these steps to integrate with the Python client.
1. Install the Supergood library
pip install supergood
2. Initialize the Supergood Library
Environment variables
Set the environment variables SUPERGOOD_CLIENT_ID
and SUPERGOOD_CLIENT_SECRET
using the API keys generated in the getting started instructions.
Initialize the Supergood client at the root of your application, or anywhere you're making API calls.
from supergood import Client
Client.initialize()
Passing keys
You can also pass the API keys in manually without setting environment variables.
Replace <CLIENT_ID>
and <CLIENT_SECRET>
with the API keys you generated in the getting started instructions.
from supergood import Client
Client.initialize(client_id="<CLIENT_ID>", client_secret_id="<CLIENT_SECRET>")
Note: If your application makes use of the multiprocessing
library to make API calls, you'll need to initialize a client for each Process
.
3. Monitor your API calls
You're all set to use Supergood!
Head back to your dashboard to start monitoring your API calls and receiving reports.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for supergood-2.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72542441813cf34604c81b527e42c939b0b57c6d99021bf957b51a32b14cbb5a |
|
MD5 | 33100d50512c6fd8e8528d19fab46a45 |
|
BLAKE2b-256 | 1b542f25212ed2e875f6ada75b0394c6099481364d1a87879f7406c9de7540fd |