Python SDK Installation
The Meter Python SDK provides a clean, Pythonic interface for all Meter API operations.Requirements
- Python 3.8 or later
- pip or uv for package management
Install with pip
Install with uv
Install from source
For development or to use the latest unreleased features:Verify installation
Set up authentication
Store your API key as an environment variable:~/.bashrc, ~/.zshrc, or .env file:
.env
Quick test
Verify your setup with a quick test:Dependencies
The SDK has minimal dependencies:requests: HTTP client for API callstyping-extensions: Type hints for older Python versions
Updating
Keep your SDK up to date:Troubleshooting
ModuleNotFoundError: No module named 'meter_sdk'
ModuleNotFoundError: No module named 'meter_sdk'
Solution: Install the package:If using a virtual environment, ensure it’s activated.
Import error after installation
Import error after installation
Problem: Package installed but import failsSolutions:
- Check you’re in the correct Python environment:
which python - Verify installation:
pip show meter-sdk - Try reinstalling:
pip uninstall meter-sdk && pip install meter-sdk
Version conflicts
Version conflicts
Problem: Dependency conflicts with other packagesSolution: Use a virtual environment:
Next steps
Quick Start
Generate your first strategy in 5 minutes
Client Reference
Explore the MeterClient API
Authentication
Learn about API key management
Examples
See real-world SDK usage