Skip to main content
The Python SDK provides synchronous resources and generated Pydantic response models. It supports Python 3.10 through 3.13.
Current preview: 0.1.0rc4. Include --pre while Galileo is in preview.
Check the terminal status before reading the result:

Resources

Client lifetime

Use a context manager to close its HTTP connections:

Configuration

Evaluation creation is sent once because a repeated submission can create a second evaluation. Rate-limit responses use their own time and attempt limits.

Errors

Catch GalileoError for any SDK failure. API failures inherit from APIError and include InvalidRequestError, AuthenticationError, NotFoundError, InsufficientCreditsError, RateLimitError, and ServerError. Transport and polling failures use ConnectionError and PollTimeoutError. View the source on GitHub.