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.3.tar.gz (5.4 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.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dependency_track_client-4.0.3.tar.gz
  • Upload date:
  • Size: 5.4 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.3.tar.gz
Algorithm Hash digest
SHA256 43864aebdbdac6d0e81c24c9acfa2a019dea40ffac7f6fd5a66f9a531cf07b94
MD5 1ee5989ec122af6ebe336fead7c7be2d
BLAKE2b-256 eda458c811e0184ecb1cc31b00100bca8105dd3ffd5649d782b16412e70c21e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for dependency_track_client-4.0.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for dependency_track_client-4.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 86b4a4e2932bb24f29bb92655b6910117858e0ef4b8cc7fa1e91a0fa5070e11d
MD5 34bf0ea011e9ef70dab4a9f20fdfb45f
BLAKE2b-256 ed83bd52933a90f71328b434985542143086cc918b655068de685b81848ceb83

See more details on using hashes here.

Provenance

The following attestation bundles were made for dependency_track_client-4.0.3-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