{"id":27207,"library":"openmeter","title":"OpenMeter Python Client","description":"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.","status":"active","version":"1.0.0b227","language":"python","source_language":"en","source_url":"https://github.com/openmeter/openmeter","tags":["openmeter","metering","usage","client","api"],"install":[{"cmd":"pip install openmeter","lang":"bash","label":"Latest release"}],"dependencies":[],"imports":[{"note":"Common mistake: importing the package directly; the correct approach is to import the OpenMeter class.","wrong":"import openmeter","symbol":"OpenMeter","correct":"from openmeter import OpenMeter"}],"quickstart":{"code":"from openmeter import OpenMeter\n\nclient = OpenMeter(\n    base_url=\"http://localhost:8888\",\n    api_key=os.environ.get(\"OPENMETER_API_KEY\", \"\")\n)\n# Example: list all meters\ntry:\n    meters = client.meters.list()\n    print(meters)\nexcept Exception as e:\n    print(f\"Error: {e}\")","lang":"python","description":"Initialize the client with a base URL and API key (optional, retrieved from environment). Then call client.meters.list() to fetch meters."},"warnings":[{"fix":"client = OpenMeter(..., verify=False)","message":"The 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Set OPENMETER_API_KEY environment variable or pass api_key='your_key'.","message":"API 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin to a specific beta version and watch the changelog.","message":"The 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.","severity":"deprecated","affected_versions":"1.0.0b*"}],"env_vars":null,"search_vec":"'1.0.0':21 '3.9':25 'access':35 'activ':29 'api':38,49 'b227':22 'beta':19 'client':3,6,48 'develop':30 'librari':32 'meter':16,46 'metric':44 'openmet':1,8,37,45 'programmat':34 'provid':33 'python':2,5,24 'queri':42 'real':11 'real-tim':10 'requir':23 'scalabl':14 'servic':17 'time':12 'track':40 'usag':15,43,47 'version':20","created_at":"2026-05-01T17:45:04.535597+00:00","updated_at":"2026-05-01T17:45:04.535597+00:00","problems":{"verify_error":"× No solution found when resolving dependencies:\n  ╰─▶ Because only openmeter==2.0.0 is available and openmeter==2.0.0 was\n      yanked (reason: Accidentally published), we can conclude that all\n      versions of openmeter cannot be used.\n      And because you require openmeter, we can conclude that"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://openmeter.io","github":"https://github.com/openmeter/openmeter","docs":null,"changelog":null,"pypi":"https://pypi.org/project/openmeter/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-networking","data","aws","gcp","azure"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"install_fail","verified_at":"2026-06-28","last_verified":"2026-06-28","next_check":"2026-07-05","install_tag":null}}