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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dependency_track_client-4.0.0.tar.gz
Algorithm Hash digest
SHA256 8f24e531976927f7439b2b10d5f48e5578d2942a3501c55e9b5cfef2f676739f
MD5 be1af106c92643160d0bfef93fe7e4e4
BLAKE2b-256 af9fc35f7cf213b28c05faabf2cc2180c9afb9499a46443538b9327ac2d5b177

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dependency_track_client-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44caa76ea60dab2227d5458672c7f1f8bf09e583b15dfe6c093e28aa518217c6
MD5 ae8a45b85401f83b6acd3c46fc424428
BLAKE2b-256 527e1d9bcb6901130e2a43a89d043564fc495eac75db2d32ee4064a94f65ab8e

See more details on using hashes here.

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