Skip to content

Installation

Using pip

Note

We recommend installing the pegasi python packages on a virtual environment like venv or conda.

$ pip install pegasi

Get API Key

Note

Contact the Pegasi team to get onboarded and partner together

Customization

IBM watsonx.governance Integration

To integrate with IBM watsonx.governance:

  1. Obtain an IBM Cloud API Key from your IBM Cloud account
  2. When instantiating the Pegasi Client, provide the API key using the ibm_watsonx_governance_api_key parameter:
from pegasi import PegasiClient

client = PegasiClient(
    api_key="your-pegasi-api-key",
    ibm_watsonx_governance_api_key="your-ibm-cloud-api-key"
)

Note

The IBM watsonx.governance integration enables additional AI governance and compliance capabilities through IBM's enterprise-grade platform.