azure-devops-python-api | Azure DevOps Python API | Azure library

 by   microsoft Python Version: 7.1.0b3 License: MIT

kandi X-RAY | azure-devops-python-api Summary

kandi X-RAY | azure-devops-python-api Summary

azure-devops-python-api is a Python library typically used in Cloud, Azure, Prometheus applications. azure-devops-python-api has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. However azure-devops-python-api build file is not available. You can install using 'pip install azure-devops-python-api' or download it from GitHub, PyPI.

This 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 repo.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              azure-devops-python-api has a low active ecosystem.
              It has 463 star(s) with 176 fork(s). There are 39 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 99 open issues and 152 have been closed. On average issues are closed in 116 days. There are 7 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of azure-devops-python-api is 7.1.0b3

            kandi-Quality Quality

              azure-devops-python-api has 0 bugs and 0 code smells.

            kandi-Security Security

              azure-devops-python-api has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              azure-devops-python-api code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              azure-devops-python-api is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              azure-devops-python-api releases are available to install and integrate.
              Deployable package is available in PyPI.
              azure-devops-python-api has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.
              azure-devops-python-api saves you 98414 person hours of effort in developing the same functionality from scratch.
              It has 106455 lines of code, 6492 functions and 412 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed azure-devops-python-api and discovered the below as its top functions. This is intended to give you an instant insight into azure-devops-python-api implemented functionality, and help decide if they suit your requirements.
            • Create a request message
            • Retrieve resource locations for a given URL
            • Return a resource location
            • Get the deployment url from the normalized url
            • Returns a client instance
            • Get the resource area for a given resource
            • Returns the URL for a client instance
            • Import a class by full name
            • Load the cache from disk
            • Read a base64 encoded file
            • Safely parse a JSON object
            • Get a JSON object from a file
            • Get information about a given remote URL
            • Return the cache directory
            • Gets the VST info for a given remote URL
            • Execute a shell command
            • Unwrap a collection from the response
            Get all kandi verified functions for this library.

            azure-devops-python-api Key Features

            No Key Features are available at this moment for azure-devops-python-api.

            azure-devops-python-api Examples and Code Snippets

            Find CUDA configuration .
            pythondot img1Lines of Code : 69dot img1License : Non-SPDX (Apache License 2.0)
            copy iconCopy
            def find_cuda_config():
              """Returns a dictionary of CUDA library and header file paths."""
              libraries = [argv.lower() for argv in sys.argv[1:]]
              cuda_version = os.environ.get("TF_CUDA_VERSION", "")
              base_paths = _list_from_env("TF_CUDA_PATHS",
                
            Return a dictionary of all CUDA configurations .
            pythondot img2Lines of Code : 67dot img2License : Non-SPDX (Apache License 2.0)
            copy iconCopy
            def get_all_configs():
              """Runs all functions for detecting user machine configurations.
            
              Returns:
                Tuple
                  (List of all configurations found,
                   List of all missing configurations,
                   List of all configurations found with warnings,  
            Validate Cuda configuration .
            pythondot img3Lines of Code : 65dot img3License : Non-SPDX (Apache License 2.0)
            copy iconCopy
            def validate_cuda_config(environ_cp):
              """Run find_cuda_config.py and return cuda_toolkit_path, or None."""
            
              def maybe_encode_env(env):
                """Encodes unicode in env to str on Windows python 2.x."""
                if not is_windows() or sys.version_info[0] !  

            Community Discussions

            QUESTION

            Download Azure Devops artifact in Python
            Asked 2022-Jan-24 at 11:43

            I am able to use Azure Rest API in Python (https://github.com/microsoft/azure-devops-python-api) to get a download URL for an Artifact e.g.

            ...

            ANSWER

            Answered 2022-Jan-21 at 04:53

            We have API version 6.0 for python package download for Azure DevOps Artifacts:

            Below is the API, this can be used in any UI

            Source https://stackoverflow.com/questions/70774603

            QUESTION

            How to get a list of dashboards through azure-devops-python-api
            Asked 2022-Jan-10 at 12:09

            I am trying to get a list of dashboards using azure-devops-python-api. I can't figure out how to connect the libraries correctly to get the list of dashboards and work with them. What I've done is this:

            ...

            ANSWER

            Answered 2022-Jan-10 at 12:09

            You can use the below Python script to list the dashboards in a particular project using python.

            Here is the python code:

            Source https://stackoverflow.com/questions/70609659

            QUESTION

            How to Link Azure Pipeline Test Results to Test Cases
            Asked 2021-Nov-03 at 21:02

            I’m trying to link automated test results from a pipeline task PublishTestResults, to test cases in azure. That way I am able view the history of the test results through the test case

            Background

            These tests are automated with pytest and generate a Junit XML report to Azure. Please correct me if I am wrong but from what I found, there isn’t an argument or option or setting where azure is able to link these test cases automatically. Also the XML format Azure expects doesn’t contain a attribute for the id. https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test-results?view=azure-devops&tabs=trx%2Cyaml

            I can’t associate these tests through visual studio since pytest is not supported. https://docs.microsoft.com/en-us/azure/devops/test/associate-automated-test-with-test-case?view=azure-devops

            Problem

            I started using the Azure REST API and the azure devops python api, https://github.com/microsoft/azure-devops-python-api . Got my build id, test run id associated to the pipeline build, test run from the id, test case id, and the test point id. Doing a GET Test Result returns the test result, and focusing on a particular object of the response.

            ...

            ANSWER

            Answered 2021-Nov-03 at 21:02

            I posted to Visual Studio Developer Community Forum.

            We pretty much have to go through the "Update Work Item" route. In order to link the automated test results with a test case, I added a relation link to the test result:

            Source https://stackoverflow.com/questions/69488417

            QUESTION

            Trigger an Azure Devops pipeline from an azure function using python
            Asked 2021-Jun-21 at 09:07

            I have an existing Devops pipeline that trains ML models. To guaranty the robustness for the models, it will be necessary to retrain it periodically. For this I decided to create an Azure function that will be executed each month. will It collect the new data, apply the data pre-processing and finally trigger the Azure Devops training pipeline. All of this must be done with python. By doing a research, I understood that this can be done using REST Azure Devops API request. I founded this python git repo https://github.com/microsoft/azure-devops-python-api which provides an API to communicate with Azure DevOps. I executed the code provided by this package which displays the list of my devops projects. But I can't found how trigger the pipeline. Assuming that my organisation named ORGA1, the project named PROJ1 and the pipeline that I want ti execute named PIPELINE1, How can I launch it using an Azure function or even a simple python script ? PS: I am using a python 3.9 Timer Trigger Azure function. Thank you in advance for your help.

            EDIT

            I tired to use LOGIC APP to do this like @mohammed described in the comment and I think that this is a good solution. Above the workflow that I created:

            So I launch the logic app each X hours, this will trigger the azure Devops, and ASA it end training with Success it will send me an email. I have one error here, is that I am creating a new release and not triggering a specific pipeline each time. But navigating in the different actions under the devops service, I cannot found any thing related to launching a devops pipeline. Can anyone have an idea how to do it.

            ...

            ANSWER

            Answered 2021-Jun-18 at 01:15

            You can use a Logic App with a timer to trigger your DevOps pipeline instead of an Azure function, as it has all the built-in connectors required to interface with your DevOps. See : https://www.serverlessnotes.com/docs/keep-your-team-connected-using-azure-devops-and-azure-logic-apps

            Source https://stackoverflow.com/questions/68022513

            QUESTION

            How to download Azure universal packages using Azure DevOps Python API
            Asked 2021-Mar-31 at 01:29

            I am trying to find documentation on how to use Azure DevOps Python API in order to download universal packages from Azure private feeds.

            Has anyone did it before using a python script?

            ...

            ANSWER

            Answered 2021-Mar-31 at 01:29

            I am afraid downloading Azure universal packages using Azure DevOps Python API is not support yet. For the NPM, Maven, Nuget and Pyton Artifacts package types there is an API which allows directly downloading of a packages, but not for Azure universal packages.

            The user voice regarding this request has been submit to Microsoft Development team. You can vote it up, or create one for yourself.

            Currently, you will have to download it using Azure CLI.

            az artifacts universal download --organization https://dev.azure.com/Fabrikam --feed FabrikamFiber --name my-first-package --version 1.0.0 --path .

            See here for more information.

            Source https://stackoverflow.com/questions/66824910

            QUESTION

            How can I create a PR across forks using the Azure DevOps Service API?
            Asked 2020-Jul-08 at 09:44

            I have two repos on Azure DevOps, let's call them parent_repo and child_repo. The child_repo is a fork of the parent. What I'd like to do is create a PR to merge master of child_repo to master of parent_repo using the Azure DevOps Services API, by way of its Python library.

            According to these docs and this thread, forkSource is the parameter needed to indicate that the source branch is in a fork, and to provide the repo_id of that fork.

            ...

            ANSWER

            Answered 2020-Jul-08 at 09:44

            Okay, I dug a little deeper into the docs, starting here with forkSource. Following that link into here then here it became apparent that forkSource has to be formulated like so:

            "forkSource": {"repository": {"id": child_repo_id}}

            Oddly, the DevOps API was ignoring the nested repository param instead of (preferably) throwing an error. This change resolves the issue and creates a PR resembling the one I'm after.

            Full code:

            Source https://stackoverflow.com/questions/62791466

            QUESTION

            Is there a way to call Azure Devops via python using 'requests'?
            Asked 2020-Feb-21 at 22:50

            So, from what I see from most sources, they say if youre trying to make a python program call azure devops api calls, it uses a python import statement such as :

            ...

            ANSWER

            Answered 2020-Feb-21 at 22:50

            Surely, it is supported to use requests to call Azure DevOps REST API

            Firstly, you need to create a personal access token (PAT)

            Then you can use the PAT to create the basic auth header, and make the request:

            Source https://stackoverflow.com/questions/60341728

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install azure-devops-python-api

            To use the API, establish a connection using a personal access token and the URL to your Azure DevOps organization. Then get a client from the connection and make API calls.

            Support

            This Python library provides a thin wrapper around the Azure DevOps REST APIs. See the Azure DevOps REST API reference for details on calling different APIs.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Azure Libraries

            Try Top Libraries by microsoft

            vscode

            by microsoftTypeScript

            PowerToys

            by microsoftC#

            TypeScript

            by microsoftTypeScript

            terminal

            by microsoftC++

            Web-Dev-For-Beginners

            by microsoftJavaScript