azure-devops
Python wrapper around the Azure DevOps 7.x APIs
What it is and what it does
Azure DevOps is a thin Python wrapper around the Azure DevOps REST APIs, allowing developers to programmatically interact with Azure DevOps resources such as projects, teams, work items, repositories, and pipelines. It powers the Azure DevOps Extension for Azure CLI and is built on msrest for HTTP communication.
The package uses a connection-based model where you authenticate with a personal access token, obtain a connection object, and then retrieve typed clients (like core_client) to make API calls. It handles pagination and response objects transparently, making it suitable for automation scripts, CI/CD integrations, and administrative tools that need to interact with Azure DevOps programmatically.
Use it for:
- Automate project and team management tasks across multiple Azure DevOps organizations.
- Build custom dashboards or reporting tools that pull data from Azure DevOps work items and repositories.
- Integrate Azure DevOps with external systems or workflows via Python scripts.
- Manage repositories, branches, and pull requests programmatically.
- Retrieve and process build and release pipeline data for analytics or auditing.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python bindings to the Azure DevOps REST APIs, enabling programmatic access to projects, teams, work items, repositories, and other Azure DevOps resources.
Yes, with conditions. The package is stable and widely used (top 5000 on PyPI), has no known vulnerabilities, and carries a permissive MIT license. However, the aging maintenance status and beta version number (7.1.0b4) suggest you should verify that the current release meets your API coverage needs before committing to production use.
Install
azure-devops on PyPI
pip
pip install azure-devopsuv
uv add azure-devopspoetry
poetry add azure-devopsInstalling azure-devops
Before you install
Low install friction with a single runtime dependency (msrest). Maintenance status is aging—last release was in November 2023, though the repository remains active with recent commits and is not archived.
License in practice
MIT license is permissive, allowing commercial use, modification, and distribution with minimal restrictions.
Quickstart
pip install azure-devops
from azure.devops.connection import Connection
from msrest.authentication import BasicAuthentication
credentials = BasicAuthentication('', 'YOUR_PAT')
connection = Connection(base_url='https://dev.azure.com/YOURORG', creds=credentials)
core_client = connection.clients.get_core_client()
projects = core_client.get_projects()
Requires a personal access token (PAT) from Azure DevOps and the organization URL to authenticate.
Verify before relying
- Whether the beta version (7.1.0b4) is suitable for production use or if a stable release is recommended.
- Current API coverage relative to the latest Azure DevOps REST API specification.
- Whether the aging maintenance status indicates planned deprecation or simply stable maturity.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — msrest |
| Maintenance | aging — 998 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,177,331/month — #2,148 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_devops-7.1.0b4-py3-none-any.whl
Keywords: Microsoft, VSTS, Team Services, SDK, AzureTfs, AzureDevOps, DevOps
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
aioazuredevopsFetch data from Azure DevOps API endpoints…
permissive · top 15,000 on PyPI
vstsProvides Python bindings to the Azure DevOps…
permissive · top 15,000 on PyPI
azure-functionsProvides Python bindings and decorators for…
permissive · top 5,000 on PyPI
PyGithubPyGithub provides Python access to the GitHub…
copyleft · top 1,000 on PyPI
azdevazdev is a command-line tool that helps…
permissive · top 15,000 on PyPI
a2aA2A is a CLI tool that maps service names…
permissive · top 15,000 on PyPI
azure-cli-coreProvides the core Python library and CLI…
permissive · top 5,000 on PyPI
azure-cli-diff-toolCompares and diffs Azure CLI metadata files…
permissive · top 15,000 on PyPI
azure-servicemanagement-legacyProvides a Python client library for legacy…
permissive · top 5,000 on PyPI
azure-mgmt-resource-deploymentscriptsProvides a Python client library for managing…
permissive · top 5,000 on PyPI