azure-containerregistry
Microsoft Azure Azure Container Registry Client Library for Python
Decision gist · record as of 2026-08-14
Yes. Low install friction, no runtime dependencies, actively maintained, permissive MIT license, and production-stable status make it a straightforward choice for any Python project that needs to manage Azure Container Registry resources. Verify that your authentication environment (Azure credentials) is properly configured before use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Azure subscription and an existing Container Registry account; AZURE_CLIENT_ID, AZURE_TENANT_ID, and AZURE_CLIENT_SECRET environment variables must be set for DefaultAzureCredential authentication.
- Low install friction; pure Python wheel with no runtime dependencies.
- Actively maintained as of 2026-08-14 with production-stable status.
License · maintenance · safety
MIT License (permissive) — MIT License (permissive); no restrictions on commercial or private use, modification, or redistribution.
last release 2023-07-11 (1130 days) · last repo commit 2026-08-14 · 5,588 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,633,607 downloads/mo, #3,704 on PyPI
Alternatives
Verify before relying
pip install --pre azure-containerregistry
from azure.containerregistry import ContainerRegistryClient
from azure.identity import DefaultAzureCredential
endpoint = "https://mycontainerregistry.azurecr.io"
audience = "https://management.azure.com"
client = ContainerRegistryClient(endpoint, DefaultAzureCredential(), audience=audience)
for repo in client.list_repository_names():
print(repo)- Whether azure-identity is an optional or required dependency for all authentication flows.
- Support status for Python 3.7 given the package's latest release date (2023-07-11).
What it is and what it does
Azure Container Registry is a Microsoft-managed service for storing and managing container images and OCI artifacts in a private registry. This client library provides Python bindings to interact with that registry—listing repositories, tags, and manifests; querying image metadata; setting read/write/delete permissions on artifacts; and deleting images, tags, or entire repositories. It wraps the Azure Container Registry REST API and integrates with Azure Identity for authentication via Azure Active Directory.
The library is designed for developers who need programmatic control over container images stored in Azure. It supports operations ranging from simple metadata queries to complex image lifecycle management, such as deleting old images while preserving the most recent versions. It has no runtime dependencies beyond the Azure SDK ecosystem (which is installed separately) and requires Python 3.7 or later.
Use it for
- Automate cleanup of old container images in a registry, retaining only the most recent versions by digest or timestamp.
- Query image metadata and tags to verify which versions are deployed or to audit registry contents.
- Set or revoke read/write/delete permissions on specific images or artifacts for access control.
- List all repositories and their tags to build a registry inventory or integration with CI/CD pipelines.
- Upload custom OCI images and artifacts by managing blobs, manifests, and layer uploads programmatically.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low install friction, no runtime dependencies, actively maintained, permissive MIT license, and production-stable status make it a straightforward choice for any Python project that needs to manage Azure Container Registry resources. Verify that your authentication environment (Azure credentials) is properly configured before use.
Install
azure-containerregistry on PyPI
Before you install
Low install friction; pure Python wheel with no runtime dependencies. Actively maintained as of 2026-08-14 with production-stable status. Requires Python 3.7 or later.
Requires Azure subscription and an existing Container Registry account; AZURE_CLIENT_ID, AZURE_TENANT_ID, and AZURE_CLIENT_SECRET environment variables must be set for DefaultAzureCredential authentication.
License in practice
MIT License (permissive); no restrictions on commercial or private use, modification, or redistribution.
Quickstart
pip install --pre azure-containerregistry
from azure.containerregistry import ContainerRegistryClient
from azure.identity import DefaultAzureCredential
endpoint = "https://mycontainerregistry.azurecr.io"
audience = "https://management.azure.com"
client = ContainerRegistryClient(endpoint, DefaultAzureCredential(), audience=audience)
for repo in client.list_repository_names():
print(repo)
Verify before relying
- Whether azure-identity is an optional or required dependency for all authentication flows.
- Support status for Python 3.7 given the package's latest release date (2023-07-11).
Package facts
| License | MIT License permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 1,130 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,633,607 / month, #3,704 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/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: azure_containerregistry-1.2.0-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 › “container registry metadata api”
- azure-containerregistryClient library for managing container images, artifacts, and metadata…
- google-cloud-containeranalysisPython client library for Google Cloud Container Analysis API,…
- azure-mgmt-containerregistryManages Azure Container Registry resources—create, update, delete,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also azure-cli-acr · container-inspector · docker-image-py · python-dxf · oras · azure-mgmt-containerregistry · google-cloud-artifact-registry · azure-mgmt-containerregistrytasks · azure-storage-blob · gto