Python API client for ReqDB
Project description
ReqDB PyClient
The ReqDB PyClient is the official client for the ReqDB API. The PyClient contains the needed functions to interact with the API
Installation
Use pip to install the client:
pip install reqdb
Usage
First you need to get a valid OAuth access token for the ReqDB server (e.g. with msal). After you acquired your token you can connect to the API:
client = ReqDB("<ReqDB FQDN>", "<Access Token>")
With the initialized client you can now perform actions (according to your roles) for each model ( Tags
, Topics
, Requirements
, ExtraTypes
, ExtraEntries
, Catalogues
, Comment
): get
, all
, update
, delete
, add
Example for a tags:
# Get tag with id: 1
tag1 = client.Tags.add(id=1)
# Get all tags
allTags = client.Tags.all()
# Update a tag:
tag = client.Tags.update(id=1, models.Tag(name="Tag 1"))
# Delete a tag:
ok = client.Tags.delete(id=1)
# Add a tag
tag = client.Tags.add(models.Tag(name="Tag 2"))
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- dcfSec - Initial work
See also the list of contributors who participated in this project.
License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details
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
Built Distribution
File details
Details for the file reqdb-0.3.0.tar.gz
.
File metadata
- Download URL: reqdb-0.3.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.6 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0de1356e075183b77b155d8a8785435ba90299fe775edfe1ac1ec2737fab9fe1 |
|
MD5 | 37a4b8b00b0c00e6d5bfc7cf5f005330 |
|
BLAKE2b-256 | 1dee793cc7c7f49da99fc992d833c8698f505c75dd4abe748fad43a9c6d2c53a |
File details
Details for the file reqdb-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: reqdb-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.6 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b90566fd295199a73489e772cc79ebde86212e98833e6ea866bc2489e02c3ef |
|
MD5 | 3852a2261d5f0216cc93a57e95c981bd |
|
BLAKE2b-256 | e3a7fd94dae655d430f1dbbcb33aa330f19b7e033cee8d4a05560c82c27aa26e |