{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/11"}],"enrichment":{"capability":"Provides a Python client library for the Metronome REST API with full type definitions, supporting both synchronous and asynchronous operations via httpx.","skillfed_tags":["billing-api","async-http","typed-client"],"use_cases":["Ingest usage events (CPU seconds, API calls, storage) into Metronome for billing calculations.","Query contracts and products with automatic pagination across result sets.","Build billing integrations in async applications using AsyncMetronome with httpx or aiohttp.","Manage customer billing configurations and retrieve typed responses with IDE autocomplete.","Handle API errors gracefully with specific exception types for connection and status failures."],"what_it_does":"Metronome SDK is the official Python client for the Metronome billing and usage API. It wraps the REST API with full type annotations (TypedDicts for requests, Pydantic models for responses), offering both synchronous and asynchronous clients powered by httpx. The library handles authentication via bearer token, provides auto-paginating iterators for list endpoints, and includes error handling for connection and API status issues.\n\nTypical use is ingesting usage events (with transaction IDs, customer IDs, timestamps, and custom properties), querying contracts and products, and managing billing configurations. The async client can optionally use aiohttp as its HTTP backend for improved concurrency. All responses include helper methods for JSON serialization and dictionary conversion, and the library supports modern Python versions from 3.9 onward.","worth_installing":"Yes. This is the official, actively maintained SDK for a billing platform API, with low install friction, permissive licensing, no known vulnerabilities, and comprehensive type support. Install it if you need to integrate with Metronome's usage ingestion or billing APIs from Python."},"id":"metronome-sdk","links":{"html":"https://skillfed.io/packages/metronome-sdk","md":"https://skillfed.io/packages/metronome-sdk.md","pypi":"https://pypi.org/project/metronome-sdk/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-23","license_spdx":null,"license_treatment":"permissive","name":"metronome-sdk","python_support":"supports_current","summary":"The official Python library for the metronome API"},"popularity":{"monthly_downloads":492267,"position":6361,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.10.0"}
