Skip to main content

Python library to interact with DefectDojo - generated from OpenAPI

Project description

defectdojo-api-generated

ci test codecov PyPI pyversions Current version on PyPi Very popular Code style: black

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.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

defectdojo_api_generated-2.56.1.post2.tar.gz (403.3 kB view details)

Uploaded Source

Built Distribution

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

defectdojo_api_generated-2.56.1.post2-py3-none-any.whl (959.8 kB view details)

Uploaded Python 3

File details

Details for the file defectdojo_api_generated-2.56.1.post2.tar.gz.

File metadata

File hashes

Hashes for defectdojo_api_generated-2.56.1.post2.tar.gz
Algorithm Hash digest
SHA256 d4a29e6ee5825937c28362e9da1e91e918ed1a2aaed778e75a2ba9c1675ded7a
MD5 8ec7cea457cbc447c60b2748264fd5ff
BLAKE2b-256 5580e63f7d71b4875805abada1ae8c8e14814eb4e3a19c9b6ab91189991a0ade

See more details on using hashes here.

File details

Details for the file defectdojo_api_generated-2.56.1.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for defectdojo_api_generated-2.56.1.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 9eca44cf2e6691099cb1e46b544c73c1b971fcb3d77eceac4d8e3fc0831997c3
MD5 d2c74f1d450ff2de1a0e51f6bd5230ec
BLAKE2b-256 2ea13b64f5b4a92b71f2c8439edf0375b8dd505acb760f07013ceb1eb5ad6ca9

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