Authentication
Make sure to follow the previous steps described in Authentication to obtain an API key and account ID.Installing the SGP SDK Client
To install the ScaleGP Python client, run the following command:Python
Configuring the Client
The SGP client supports two ways to configure the API endpoint:Using the environment Parameter (Recommended)
For standard Scale GP deployments, use the environment parameter:
Python
"production"- Legacy production athttps://api.egp.scale.com(default)"production-multitenant"- Multitenant production athttps://api.sgp.scale.com"development"- Development environment athttps://api.dev-sgp.scale.com"staging"- Staging environment athttps://api.staging-sgp.scale.com"local"- Local development athttp://127.0.0.1:5003/public
Using the base_url Parameter
For custom endpoints or proxies, use the base_url parameter:
Python
SGP_CLIENT_BASE_URL environment variable.
Example Usage
Examples on how to use the SGP client can be found in Recipes. For the rest of this guide, we’ll use the development environment:Python
⚠️ The Scale GP Beta Python client is under active development, and many of the features in this document rely on the latest versions.
To make sure you have the latest version, run pip install scale-gp-beta --upgrade.

