The Pezzo client is a PyPi that allows you to easily integrate your application with Pezzo.
Install the pezzo package from PyPi:
To initialize the Pezzo client, simply import it into your script. It will automatically read the configuration from your environment variables:
PEZZO_API_KEY
: Your Pezzo API keyPEZZO_PROJECT_ID
: Your Pezzo project IDPEZZO_ENVIRONMENT
: The environment you want to use (e.g. Production
, which is the default environment created by Pezzo)In the above example, we created a libs/pezzo.ts
file in which we instantiate the Pezzo client and export it. We can then import it in other areas of our application.
The name of the prompt to retrieve. The prompt must be deployed to the current environment specified when initializing the Pezzo client.
The Pezzo client is a PyPi that allows you to easily integrate your application with Pezzo.
Install the pezzo package from PyPi:
To initialize the Pezzo client, simply import it into your script. It will automatically read the configuration from your environment variables:
PEZZO_API_KEY
: Your Pezzo API keyPEZZO_PROJECT_ID
: Your Pezzo project IDPEZZO_ENVIRONMENT
: The environment you want to use (e.g. Production
, which is the default environment created by Pezzo)In the above example, we created a libs/pezzo.ts
file in which we instantiate the Pezzo client and export it. We can then import it in other areas of our application.
The name of the prompt to retrieve. The prompt must be deployed to the current environment specified when initializing the Pezzo client.