Skip to main content

Python SDK Installation

The Claro Python SDK is available on PyPI and supports Python 3.8 and higher.

Requirements

  • Python 3.8 or higher
  • pip (Python package installer)
  • A Claro API key (get one here)

Install via pip

Install the latest stable version:

Verify Installation

We recommend using a virtual environment to isolate your project dependencies:

Install from Source

To install the latest development version:
Development versions may contain unstable features. Use stable releases for production.

Upgrading

To upgrade to the latest version:
Check your current version:

Dependencies

The SDK has minimal dependencies:
  • requests - HTTP client for API calls
  • pydantic - Data validation and settings management
  • typing-extensions - Type hints for older Python versions
All dependencies are automatically installed with the SDK.

Platform Support

The Claro SDK is tested on:
  • Operating Systems: Linux, macOS, Windows
  • Python Versions: 3.8, 3.9, 3.10, 3.11, 3.12
  • Architectures: x86_64, ARM64

Configuration

After installation, configure your API key:
Or use a .env file:
.env
See Authentication for detailed setup instructions and best practices.

Troubleshooting

Install pip using your system’s package manager:
Use --user flag to install without sudo:
Or use a virtual environment (recommended).
Ensure you’re using the correct Python interpreter:
Update your SSL certificates:
Or install with trusted host flag:

Next Steps

Quickstart

Make your first API call with the SDK

Client Configuration

Configure timeouts, retries, and connection pooling

Authentication

Set up API keys and secure authentication

Examples

Browse production-ready code examples