Skip to main content

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:
For persistent configuration, add to your ~/.bashrc, ~/.zshrc, or .env file:
.env
Load environment variables in Python:

Quick test

Verify your setup with a quick test:

Dependencies

The SDK has minimal dependencies:
  • requests: HTTP client for API calls
  • typing-extensions: Type hints for older Python versions
All dependencies are installed automatically.

Updating

Keep your SDK up to date:

Troubleshooting

Solution: Install the package:
If using a virtual environment, ensure it’s activated.
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
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

Need help?

Email me at mckinnon@meter.sh