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


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.post1.tar.gz (408.8 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.post1-py3-none-any.whl (964.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for defectdojo_api_generated-2.56.1.post1.tar.gz
Algorithm Hash digest
SHA256 efa5095f1dd2ffc1f2c3272f0ca49de84a7c4b0b276ce2406054031dcc9744fe
MD5 1833e1c297c742a7304eab57a0d897ff
BLAKE2b-256 caf9007cca3f4c5431f73296f0d378eef59fb5d47e62588f600f8da5cf74eea4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for defectdojo_api_generated-2.56.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d744035710504e59ce046c3718c8c12aea8ec55d9ed08163d65c86943af5d8e
MD5 ba14b9271a7c2b78a7523c04c62ba2ba
BLAKE2b-256 3da30c6a65cde117e9cfc652723d9a2792837e7edadfc561e009963cd9b77b30

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