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.post3.tar.gz (410.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.post3-py3-none-any.whl (969.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for defectdojo_api_generated-2.56.1.post3.tar.gz
Algorithm Hash digest
SHA256 61b784545e15f9e912a1a074cb7966b42c0a89b7162a9413a8b3f926509c9615
MD5 0938aa81af711aa741dc183712c590f2
BLAKE2b-256 925334df9afcb50626f6b19a3e3bd8b8d6f72a6e8b84455aa0d17d62ec3173eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for defectdojo_api_generated-2.56.1.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 842e0dbc9d121a3c38baf5d0eecc311e52f85e164d1f4017f5f28be5919670e6
MD5 b46cbd2c406ee096be8cc6cc6c42dbca
BLAKE2b-256 5542f08af87a9bd0b00ccf7415a37ef94466c049a9936df32c14a88a1436e4d0

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