Skip to main content

A simple wrapper for the Dependency Track REST API. This is fork based on original work of Alvin Chen and his dependency-track library.

Project description

License Python Version Downloads

A simple wrapper for the Dependency Track REST API. This is fork based on original work of Alvin Chen and his dependency-track library.

Usage

Installation

This project is available as Python package on PyPi.org.

  • Install DependencyTrack and required dependencies:

    pip install dependency-track-client

Using the API

  • Get a REST API key from the DependencyTrack server under “Administration-> Access Management-> Teams”:

    from dependencytrack_client 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')

Versioning

Major Version is following [DependencyTrack Major Version](https://github.com/DependencyTrack/dependency-track/releases).

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

dependency_track_client-4.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

dependency_track_client-4.0.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file dependency_track_client-4.0.1.tar.gz.

File metadata

  • Download URL: dependency_track_client-4.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for dependency_track_client-4.0.1.tar.gz
Algorithm Hash digest
SHA256 460f2848106f0e607c117682ae6035b960fd5c502ba78bb2cc4e0b0c827e8124
MD5 8cd59c49c390c95d31943b6f8d406e36
BLAKE2b-256 7627f4004933abee43fc6d52440902f112457d22e2f02cbfca596aa9cc9c7b2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dependency_track_client-4.0.1.tar.gz:

Publisher: publish.yml on Orange-OpenSource/dependency-track-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dependency_track_client-4.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dependency_track_client-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 674d88aa99dfe7c3edb13ace053e42982340a2aa4aa19add905583e73d92ea94
MD5 6672e49ca5b3a09c0b939dad402554a9
BLAKE2b-256 ab8e8ec6d7cfe36ced36ec10be0b658f3c1468cd81edd8e920611f43e290e65a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dependency_track_client-4.0.1-py3-none-any.whl:

Publisher: publish.yml on Orange-OpenSource/dependency-track-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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