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.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

reqdb-0.1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reqdb-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 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

Hashes for reqdb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 269c54cb1ebb05282fca5a45d84995f15065d8842c33f5eb9db7051f5d7534c5
MD5 fb10aa8f753ed1bcb0836b39a84ec211
BLAKE2b-256 10fd198d2b8490d18f3e23c4fb564f67a9e1945d970d6e5b2607ec879e48145b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reqdb-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 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

Hashes for reqdb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68d31bd1026047009e4139cc60a8999342102a8603b3cea97af6266858c8bbec
MD5 ee09ef38c0b21906512ed05312d61035
BLAKE2b-256 4fe48e0c3da854b3601556ac7220e994adbd8a47675e6ce1e1f3b85a2592d19b

See more details on using hashes here.

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