Python library to interact with DefectDojo - generated from OpenAPI
Project description
defectdojo-api-generated
Python library to interact with DefectDojo - generated from OpenAPI definition using https://openapi-generator.tech/
Install
pip install defectojo-api-generated
Usage
from defectdojo_api_generated import DefectDojo
# password publicly available in https://github.com/DefectDojo/django-DefectDojo/?tab=readme-ov-file#demo
# then get API token from https://demo.defectdojo.org/api/key-v2
dojo = DefectDojo('https://demo.defectdojo.org/', token=...)
r = dojo.findings_api.findings_list()
print(r.json())
Build
Check out CONTRIBUTING.md
API notes
Required properties
DefectDojo's OpenAPI schema and actual database/API validations are inconsistent in some places, so this library assumes all properties as not required skipping client-side validation and delegating those validations to server.
Refer to https://github.com/fopina/defectdojo-api-generated/issues/31 and https://github.com/fopina/defectdojo-api-generated/issues/39 for more details / reasoning.
Server versions
This library is versioned after the OpenAPI schema version (DefectDojo version) it was generated against, eg: when re-generated against DefectDojo 2.57.0 schema, it will be released as 2.57.0
Any changes done to the package (such as packaging metadata or extra schema tweaks), while on the same schema version, will be released as post fixes, eg: 2.57.0.post1
Given the very few validations kept (previous note), there might be no issue using "latest" version of this package against an older DefectDojo. However, if there is any, just install the closest matching version.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file defectdojo_api_generated-2.56.1.post1.tar.gz.
File metadata
- Download URL: defectdojo_api_generated-2.56.1.post1.tar.gz
- Upload date:
- Size: 408.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efa5095f1dd2ffc1f2c3272f0ca49de84a7c4b0b276ce2406054031dcc9744fe
|
|
| MD5 |
1833e1c297c742a7304eab57a0d897ff
|
|
| BLAKE2b-256 |
caf9007cca3f4c5431f73296f0d378eef59fb5d47e62588f600f8da5cf74eea4
|
File details
Details for the file defectdojo_api_generated-2.56.1.post1-py3-none-any.whl.
File metadata
- Download URL: defectdojo_api_generated-2.56.1.post1-py3-none-any.whl
- Upload date:
- Size: 964.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d744035710504e59ce046c3718c8c12aea8ec55d9ed08163d65c86943af5d8e
|
|
| MD5 |
ba14b9271a7c2b78a7523c04c62ba2ba
|
|
| BLAKE2b-256 |
3da30c6a65cde117e9cfc652723d9a2792837e7edadfc561e009963cd9b77b30
|