Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

supergood-2.1.2.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

supergood-2.1.2-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file supergood-2.1.2.tar.gz.

File metadata

  • Download URL: supergood-2.1.2.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for supergood-2.1.2.tar.gz
Algorithm Hash digest
SHA256 68a6c64202d23fc268812b1c118a95a8a324227c59b77d72bafd54cc70fe54cb
MD5 c9e2b250b587ed40fb1e03b6036f4f81
BLAKE2b-256 4a46b1b4b4042cb8a1ddba21e69c24cc28f32d4de306102c788f4c77cdec96d5

See more details on using hashes here.

File details

Details for the file supergood-2.1.2-py3-none-any.whl.

File metadata

  • Download URL: supergood-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for supergood-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3cf9d62ed7e3724e15785d436914eedcb2e881e73c77aeb40e1fdc8116c5bb1c
MD5 f311e4056d86fa60e20af0cee186b03f
BLAKE2b-256 028699db6ea7f6189e210f2c0f48c978064deb790b2dd170b3900cadd6a29226

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page