{"id":15012636,"url":"https://github.com/microsoft/azure-devops-python-api","last_synced_at":"2025-12-11T22:47:53.942Z","repository":{"id":26877948,"uuid":"107710074","full_name":"microsoft/azure-devops-python-api","owner":"microsoft","description":"Azure DevOps Python API","archived":false,"fork":false,"pushed_at":"2025-06-09T06:08:40.000Z","size":4587,"stargazers_count":670,"open_issues_count":154,"forks_count":217,"subscribers_count":40,"default_branch":"dev","last_synced_at":"2025-12-07T12:20:41.457Z","etag":null,"topics":["api","azure","azuredevops","devops","microsoft","python","rest","rest-client","vsts"],"latest_commit_sha":null,"homepage":"https://docs.microsoft.com/azure/devops/integrate/index?view=azure-devops","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-10-20T18:00:22.000Z","updated_at":"2025-11-25T19:23:05.000Z","dependencies_parsed_at":"2023-11-20T10:27:29.319Z","dependency_job_id":"a2d83dad-1265-4a23-a5d9-c81a2d98906e","html_url":"https://github.com/microsoft/azure-devops-python-api","commit_stats":{"total_commits":265,"total_committers":17,"mean_commits":"15.588235294117647","dds":"0.23018867924528297","last_synced_commit":"5866dda33adddbd85d7eb02b39c7669c341d7674"},"previous_names":["microsoft/vsts-python-api"],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/microsoft/azure-devops-python-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fazure-devops-python-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fazure-devops-python-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fazure-devops-python-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fazure-devops-python-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/azure-devops-python-api/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fazure-devops-python-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27672054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-11T02:00:11.302Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","azure","azuredevops","devops","microsoft","python","rest","rest-client","vsts"],"created_at":"2024-09-24T19:42:57.501Z","updated_at":"2025-12-11T22:47:53.925Z","avatar_url":"https://github.com/microsoft.png","language":"Python","readme":"[![Python package](https://github.com/microsoft/azure-devops-python-api/workflows/Python%20package/badge.svg)](https://github.com/microsoft/azure-devops-python-api/actions)\n[![Python](https://img.shields.io/pypi/pyversions/azure-devops.svg)](https://pypi.python.org/pypi/azure-devops)\n\n# Azure DevOps Python API\n\nThis repository contains Python APIs for interacting with and managing Azure DevOps. These APIs power the Azure DevOps Extension for Azure CLI. To learn more about the Azure DevOps Extension for Azure CLI, visit the [Microsoft/azure-devops-cli-extension](https://github.com/Microsoft/azure-devops-cli-extension) repo.\n\n## Install \n\n```\npip install azure-devops\n```\n\n## Get started\n\n\nTo use the API, establish a connection using a [personal access token](https://docs.microsoft.com/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=vsts) and the URL to your Azure DevOps organization. Then get a client from the connection and make API calls.\n\n```python\nfrom azure.devops.connection import Connection\nfrom msrest.authentication import BasicAuthentication\nimport pprint\n\n# Fill in with your personal access token and org URL\npersonal_access_token = 'YOURPAT'\norganization_url = 'https://dev.azure.com/YOURORG'\n\n# Create a connection to the org\ncredentials = BasicAuthentication('', personal_access_token)\nconnection = Connection(base_url=organization_url, creds=credentials)\n\n# Get a client (the \"core\" client provides access to projects, teams, etc)\ncore_client = connection.clients.get_core_client()\n\n# Get the first page of projects\nget_projects_response = core_client.get_projects()\nindex = 0\nwhile get_projects_response is not None:\n    for project in get_projects_response.value:\n        pprint.pprint(\"[\" + str(index) + \"] \" + project.name)\n        index += 1\n    if get_projects_response.continuation_token is not None and get_projects_response.continuation_token != \"\":\n        # Get the next page of projects\n        get_projects_response = core_client.get_projects(continuation_token=get_projects_response.continuation_token)\n    else:\n        # All projects have been retrieved\n        get_projects_response = None\n```\n\n## API documentation\n\nThis Python library provides a thin wrapper around the Azure DevOps REST APIs. See the [Azure DevOps REST API reference](https://docs.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-5.1) for details on calling different APIs.\n\n## Samples\n\nLearn how to call different APIs by viewing the samples in the [Microsoft/azure-devops-python-samples](https://github.com/Microsoft/azure-devops-python-samples) repo.\n\n## Contributing\n\nThis project welcomes contributions and suggestions.  Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fazure-devops-python-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fazure-devops-python-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fazure-devops-python-api/lists"}