A simple Python interface to interact with Azure DevOps API.
Contents:
With uv:
uv add ez_adosWith pip:
pip install ez_adosfrom ez_ados import AzureDevOps
# Init a client for an organization
my_org = AzureDevOps("https://dev.azure.com/myorg")
# Authenticate using EntraID
# See https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication/credential-chains?tabs=dac#defaultazurecredential-overview
my_org.authenticate()
# Get a project
projects = my_org.projects_client()
print(projects.get(name="my_project"))Install Task:
asdf plugin add task
asdf plugin add git-cliff
asdf installInit your python environment with:
task venvYou're all set !
Run all tests with:
task tests