azure-mgmt-commerce
Microsoft Azure Commerce Management Client Library for Python
Decision gist · record as of 2026-08-14
Yes, if you need programmatic access to Azure usage and billing data. The package is actively maintained, has low install friction, and is the official Microsoft library for this purpose. However, verify the license terms before use in proprietary contexts, as the license treatment is currently unclear in the metadata.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9+.
- Azure authentication credentials must be configured via environment variables (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID).
- Low install friction with a pure-wheel distribution.
License · maintenance · safety
(unclear) — License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms in the GitHub repository before use in proprietary or restricted contexts.
last release 2026-05-15 (91 days) · last repo commit 2026-08-14 · 5,588 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,662,217 downloads/mo, #3,673 on PyPI
Alternatives
Verify before relying
pip install azure-mgmt-commerce
from azure.mgmt.commerce import UsageManagementClient
from azure.identity import DefaultAzureCredential
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = UsageManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)- Specific operations and models available in version 6.0.1 versus beta features in later releases.
- Whether additional packages beyond the three runtime dependencies are needed for typical usage patterns.
- Actual license terms and compatibility restrictions for commercial use.
What it is and what it does
azure-mgmt-commerce is the official Python client library for interacting with Azure's Commerce Management API. It allows developers to query and retrieve Azure usage aggregation data, billing information, and related metrics programmatically. The library is part of the broader Azure SDK for Python and follows modern Azure SDK patterns, including unified credential handling and type annotations.
The package is built on top of azure-mgmt-core and integrates with the Azure authentication system. It requires Python 3.9 or later and is tested against Python 3.10+. The library exposes a UsageManagementClient that can be instantiated with credentials and a subscription ID, providing access to usage data and billing operations. No known security vulnerabilities are recorded.
Use it for
- Query Azure usage aggregation data for a subscription to track resource consumption over time.
- Retrieve billing and cost information programmatically for cost analysis and reporting.
- Integrate Azure usage metrics into internal dashboards or monitoring systems.
- Automate billing data collection for multi-subscription Azure environments.
- Build custom cost allocation or chargeback tools on top of Azure usage data.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need programmatic access to Azure usage and billing data.
The package is actively maintained, has low install friction, and is the official Microsoft library for this purpose. However, verify the license terms before use in proprietary contexts, as the license treatment is currently unclear in the metadata.
Install
azure-mgmt-commerce on PyPI
Before you install
Low install friction with a pure-wheel distribution. Actively maintained as of 2026-05-15 with recent commits; requires Python 3.9+ and three lightweight runtime dependencies (isodate, azure-mgmt-core, typing-extensions).
Requires Python 3.9+. Azure authentication credentials must be configured via environment variables (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID).
License in practice
License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms in the GitHub repository before use in proprietary or restricted contexts.
Quickstart
pip install azure-mgmt-commerce
from azure.mgmt.commerce import UsageManagementClient
from azure.identity import DefaultAzureCredential
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = UsageManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Verify before relying
- Specific operations and models available in version 6.0.1 versus beta features in later releases.
- Whether additional packages beyond the three runtime dependencies are needed for typical usage patterns.
- Actual license terms and compatibility restrictions for commercial use.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesisodateazure-mgmt-coretyping-extensions |
| Maintenance | Actively maintained 91 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,662,217 / month, #3,673 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: azure_mgmt_commerce-6.0.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “azure commerce management client”
- azure-mgmt-commerceProvides a Python client library for managing Azure Commerce…
- google-cloud-retailProvides Python bindings to Google Cloud Retail API for implementing…
- azure-mgmt-managementpartnerProvides a Python client library for managing Azure Management…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also azure-mgmt-managementpartner · azure-mgmt-monitor · azure-mgmt-subscription · azure-mgmt-streamanalytics · azure-mgmt-marketplaceordering · azure-mgmt-managedservices · azure-mgmt-resourcegraph · azure-mgmt-msi · azure-mgmt-resource-subscriptions · azure-mgmt-trafficmanager