Galileo Core

raw JSON →
4.3.0 verified Fri May 01 auth: no python

Python SDK for Galileo's prompt engineering and model evaluation platform. Current version 4.3.0, requires Python >=3.10. Release cadence: frequent minor updates.

pip install galileo-core
error ImportError: cannot import name 'GalileoClient' from 'galileo'
cause Old import path 'import galileo' no longer works in v4.
fix
Use 'from galileo_core import GalileoClient' instead.
error galileo_core.exceptions.AuthenticationError: Invalid API key
cause API key is missing or wrongly set.
fix
Ensure GALILEO_API_KEY environment variable is set correctly.
breaking In v4.x, the client constructor no longer accepts positional arguments for api_key; use keyword argument only.
fix Use GalileoClient(api_key='...') instead of GalileoClient('...').
deprecated The 'galileo' top-level package name is deprecated; import from 'galileo_core' instead.
fix Change 'import galileo' to 'from galileo_core import ...'.
gotcha Environment variable GALILEO_API_KEY must be set exactly, not GALILEO_APIKEY or GALILEO_KEY.
fix Set environment variable named GALILEO_API_KEY.

Initialize the client and list projects.

from galileo_core import GalileoClient

api_key = os.environ.get('GALILEO_API_KEY', '')
client = GalileoClient(api_key=api_key)
projects = client.projects.list()
print(projects)