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.2.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.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dependency_track_client-4.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 2482fcbf4633d0ceadcea6adab1ce8a5e526e8d8189d68ac83978cb5b8b5c079
MD5 ce716a952185d9f541f39e021683c438
BLAKE2b-256 4f160e8512e6df44bf224b7ce792a945b033b8ecc4212e08a00844794eb3f9e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dependency_track_client-4.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 949906f6165a22bf8988173955bdb5bb4a7d9bf1570adc9de786ffaef5edeb35
MD5 07afdc109f23e2c9c23a8c8ec89ba395
BLAKE2b-256 b820687cd6a7f4d27f9946d305a155f7400d1bff997a1eb21f54549f2039419c

See more details on using hashes here.

Provenance

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