Skip to main content

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

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

reqdb-0.5.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reqdb-0.5.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file reqdb-0.5.1.tar.gz.

File metadata

  • Download URL: reqdb-0.5.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for reqdb-0.5.1.tar.gz
Algorithm Hash digest
SHA256 68f38b10947ffead86d1bb40871fd882768e213722883f9ccc188103ea9e010d
MD5 6eb5a880dddad5acdde0b658a4887af1
BLAKE2b-256 17ce69eeafbb29f3a07851e5d52d3748bfb9a0b27993c70a9a32b62b37bacac0

See more details on using hashes here.

File details

Details for the file reqdb-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: reqdb-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for reqdb-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a363a769fd029b8a3df0b0500f1b87ff20feee4f8d5b2b19f14f830ede29cef7
MD5 c0947ab81174c68b6b51580f9724e139
BLAKE2b-256 f94df6de9cb3be75c269452f9ff59e869dbaf40709b8bd2bb3cea54e16f180a0

See more details on using hashes here.

Supported by

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