DefectDojo API
A Python API wrapper for DefectDojo, an AppSec and Security Vulnerability Management tool.
This package implements API functionality available within Dojo.
Quick Start
Several quick start options are available:
Install with pip (recommended):
pip install defectdojo_apiClone the repository:
git clone https://github.com/aaronweaver/defectdojo_apiIf you are testing the api locally make sure to set the PYTHONPATH. export PYTHONPATH=/path/totheapi/defectdojo_api:$PYTHONPATH
Example
# import the package
from defectdojo_api import defectdojo
# setup DefectDojo connection information
host = 'http://localhost:8000/'
api_key = 'your_api_key_from_DefectDojo'
user = 'admin'
# instantiate the DefectDojo api wrapper
dd = defectdojo.DefectDojoAPI(host, api_key, user, debug=False)
# If you need to disable certificate verification, set verify_ssl to False.
# dd = defectdojo.DefectDojoAPI(host, api_key, user, verify_ssl=False)
# Create a product
prod_type = 1 #1 - Research and Development, product type
product = dd.create_product("API Product Test", "This is a detailed product description.", prod_type)
if product.success:
# Get the product id
product_id = product.id()
print "Product successfully created with an id: " + str(product_id)
#List Products
products = dd.list_products()
if products.success:
print(products.data_json(pretty=True)) # Decoded JSON object
for product in products.data["objects"]:
print(product['name']) # Print the name of each product
else:
print products.message
More examples available on Github.
Supporting information for each method available can be found in the documentation.
Bugs and Feature Requests
Have a bug or a feature request? Please first search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.
Copyright and License
Metadata
Release files for defectdojo_api 1.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| defectdojo_api-1.1.4.tar.gz | 17.4 kB | Without provenance | Details for defectdojo_api-1.1.4.tar.gz |
Release files / defectdojo_api-1.1.4.tar.gz
| Download URL | defectdojo_api-1.1.4.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7659eb514ca7939acace902d05f292351bb989b83ed85f5abcb739ffe3d34f5
|
|
BLAKE2b-256 checksum How to use checksums |
cc05ce252b3957df901ef88ed10fa13e1711ee54c58fc8ab605721f5a19b50e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for defectdojo_api 1.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.