The Predibase Python SDK is available on PyPI and can be installed using pip.

Requirements

  • Python 3.8 or higher
  • pip package manager

Standard Installation

Install the Predibase SDK using pip:

pip install predibase

Verification

Verify your installation by importing the Predibase client in Python:

from predibase import Predibase

Setting Up Your API Key

After installation, set up your API key using one of these methods:

Environment Variable

Set the PREDIBASE_API_TOKEN environment variable:

# For Linux/Mac
export PREDIBASE_API_TOKEN=<PREDIBASE API TOKEN>

# For Windows
set PREDIBASE_API_TOKEN=<PREDIBASE API TOKEN>

Direct Initialization

Provide your API key when initializing the client:

from predibase import Predibase

pb = Predibase(api_token="<PREDIBASE API TOKEN>")

Next Steps

Once you’ve installed the SDK, you can: