A simple wrapper for the Dependency Track REST API.
Project description
A simple wrapper for the Dependency Track REST API.
Usage
Installation
This project is available as Python package on PyPi.org.
Install DependencyTrack and required dependencies:
pip install dependencytrack requests
Using the API
Get a REST API key from the DependencyTrack server under “Administration-> Access Management-> Teams”:
from dependencytrack import DependencyTrack url = 'http://10.0.0.1:8080' api_key = 'YRlAeOAb0uXT7dTGrfsvnGxjxZSF0XbO' dt = DependencyTrack(url, api_key) dt.list_projects() dt.get_project_property('ab36ead0-c7b0-47f5-89ac-7f92a0bbe12e') dt.list_components() dt.get_project_dependency('ab36ead0-c7b0-47f5-89ac-7f92a0bbe12e') dt.get_component_dependency('db6157c2-f0a3-447c-902d-aecd360958bd') dt.list_concise_licenses()[0] dt.get_license('MIT') dt.search('dnsmasq-2.0')
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
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 dependency-track-0.0.5.tar.gz.
File metadata
- Download URL: dependency-track-0.0.5.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaa767ec56868e93cd7e998cf4462b1d575be3a6ccfbd9608ff7a789a79fb87c
|
|
| MD5 |
cd1c2cd085f6a322a6ca5829a93ef460
|
|
| BLAKE2b-256 |
9fd52c6ff41b6bf457fed799a3fbe4623d52699292beea8236d08e20a5fffe76
|
File details
Details for the file dependency_track-0.0.5-py3-none-any.whl.
File metadata
- Download URL: dependency_track-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a46712db2e1c181d0975e1ea5c3c5e5ece06aec5a6ce22e22f5d63ccbd366908
|
|
| MD5 |
a8aa9b114e03f0fd762cb492df74f04a
|
|
| BLAKE2b-256 |
47b01f146e29f9ab8ec4a1058803371ee107c68b36a46759bda0169f9aa68fd1
|