Skip to main content

A simple object-oriented python interface to the DevOps REST API

Project description

DevOpsAPI

A simple object-oriented easy-to-use python inteface to the Azure DevOps REST API

Features

  • Create, Delete and Modify WorkItems and Test Cases
  • Query WorkItems using the wsql

Quickstart

  • Create an PAT on DevOps, give permissions for the scopes you want to access

    from DevOpsAPI import Api, Wit, Step
    
    api = Api(organisation="myorg",
              projet="myproject",
              user="your@email.com",
              apikey="PAT")
    
  • Create a WorkItem

    wi = api.WorkItem.create(type=Wit.Task,
                             title="First Task",
                             area="my\\area")
    wi.Description = "Describe your Task"
    wi.Tags = "tag1,tag2"
    
  • Create a Test Case

    wi = api.TestCase.create(title="First TestCase",
                            area="my\\area")
    wi.Description = "Describe your Test Case"
    wi.Tags = "tag1,tag2"
    
  • Add some Steps to the Test Case

    step1 = Step("Given I use DevOpsAPI")
    step2 = Step("Then I am happy")
    wi.Steps = [step1, step2]
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devopsapi-0.2.0a9.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

DevOpsAPI-0.2.0a9-py2.py3-none-any.whl (9.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file devopsapi-0.2.0a9.tar.gz.

File metadata

  • Download URL: devopsapi-0.2.0a9.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for devopsapi-0.2.0a9.tar.gz
Algorithm Hash digest
SHA256 d8169141951ccb02c3a3b80caf3c4645d34e3aa5d2850a76650f81a3d0d1c477
MD5 8cb8f4e63947f9ddfd1a6227f96b7844
BLAKE2b-256 c2e4dda3b4a7078b70c5b4bfb0828e194495d18d539b8725d94e08e848a66e9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for devopsapi-0.2.0a9.tar.gz:

Publisher: release.yml on acre-bdd/DevOpsAPI

Attestations:

File details

Details for the file DevOpsAPI-0.2.0a9-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for DevOpsAPI-0.2.0a9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 51eee2693968e5a324aff53b55aaca7aadf5f0a23e16116d0783dcfee4ddeba4
MD5 14975c16835a6542a1164091cd8b992e
BLAKE2b-256 e47c2ee86f2f88c9255f7e3da5ce517f58db4037a4ccb3b2259e738f8495d607

See more details on using hashes here.

Provenance

The following attestation bundles were made for DevOpsAPI-0.2.0a9-py2.py3-none-any.whl:

Publisher: release.yml on acre-bdd/DevOpsAPI

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page