Registry / http-networking / openmeter

openmeter

JSON →
library1.0.0b227pypypiunverified

A Python client for OpenMeter, a real-time and scalable usage metering service. This beta version (1.0.0b227) requires Python 3.9+ and is under active development. The library provides programmatic access to OpenMeter APIs for tracking and querying usage metrics.

pip install openmeter
INSTALL
IMPORT
SIG · OPENMETER
O
openmeter
http-networkingpythonv1.0.0b227
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OpenMeter
from openmeter import OpenMeter
import openmeter
Common mistake: importing the package directly; the correct approach is to import the OpenMeter class.

Initialize the client with a base URL and API key (optional, retrieved from environment). Then call client.meters.list() to fetch meters.

from openmeter import OpenMeter client = OpenMeter( base_url="http://localhost:8888", api_key=os.environ.get("OPENMETER_API_KEY", "") ) # Example: list all meters try: meters = client.meters.list() print(meters) except Exception as e: print(f"Error: {e}")
Debug
Known issues
gotchaThe client uses httpx under the hood, which may cause SSL issues in some environments. If you encounter SSL errors, set verify=False in the OpenMeter constructor or configure custom SSL context.
fix
client = OpenMeter(..., verify=False)
affects: all
gotchaAPI keys are required for non-local setups. If you don't set an API key, requests might fail with 401 Unauthorized. Always provide an API key via environment variable or direct parameter.
fix
Set OPENMETER_API_KEY environment variable or pass api_key='your_key'.
affects: all
deprecatedThe library is in beta (1.0.0b227) and APIs may change without notice. Methods and parameters might be deprecated or removed in future minor versions.
fix
Pin to a specific beta version and watch the changelog.
affects: 1.0.0b*
Upgrade
Version history
1.0.0b227latest on PyPI · released Feb 12, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
34
OpenAI (training)
1
Resources