The ReqDB PyClient is the official client for the ReqDB API. The PyClient contains the needed functions to interact with the API
Use pip to install the client:
pip install reqdbFirst 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"))We use SemVer for versioning. For the versions available, see the tags on this repository.
- dcfSec - Initial work
See also the list of contributors who participated in this project.
This project is licensed under the Apache 2.0 License - see the LICENSE file for details