Skip to main content

Python SDK Breaking Changes

Version 0.0.30 introduces breaking changes for the Python SDK. Older versions continue to work but don’t support OAuth.

API Key Authentication Syntax

The API key authentication syntax has changed to support the new security model.

Old Syntax

New Syntax

OAuth Support

Version 0.0.30 adds OAuth support, which requires the new client structure:

Migration Guide

To migrate from an older version to 0.0.30:
  1. Update imports:
  2. Update client initialization:
  3. Update method calls (if any method signatures changed):

Context Manager Usage

The new version encourages the use of context managers for proper resource management:

Old Usage

Asynchronous Support

Version 0.0.30 includes improved asynchronous support:

Backward Compatibility

Older versions of the SDK continue to work with API key authentication, but they don’t support OAuth features.
If you need to maintain compatibility with older code while adding OAuth support, you can:
  1. Pin to the old version for existing applications
  2. Create a new integration using version 0.0.30 for OAuth features
  3. Gradually migrate existing code to the new syntax

Version Pinning

We recommend pinning to a specific version to avoid unexpected breaking changes:

pip

requirements.txt

pyproject.toml (Poetry)

What’s New in 0.0.30

  • ✅ OAuth 2.0 support
  • ✅ Improved security model
  • ✅ Better Pydantic integration
  • ✅ Enhanced error handling
  • ✅ Context manager support
  • ✅ Asynchronous operations
  • ✅ Resource management improvements
  • ✅ Better type hints

Environment Variables

The new version supports environment variables for configuration:

Error Handling Improvements

The new version includes better error handling with specific error types: