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
Release history Release notifications | RSS feed
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.0a7.tar.gz
(8.3 kB
view hashes)
Built Distribution
Close
Hashes for DevOpsAPI-0.2.0a7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aaafb4fad545d3ae7a8a9264d1c9220e70921f90512869b8951d3d7a348f3e2 |
|
MD5 | e5f3ad1cf2503c0f31d62370450e0111 |
|
BLAKE2b-256 | 5dfb623cc250aae0e82186c70949b0dfe1b21322ab77bdaaa4969312d3d9209a |