Skip to main content

CycloneDX software bill-of-material (SBoM) generation utility

Project description

The CycloneDX module for Python creates a valid CycloneDX bill-of-material document containing an aggregate of all project dependencies. CycloneDX is a lightweight BoM specification that is easily created, human readable, and simple to parse. The resulting bom.xml can be used with tools such as OWASP Dependency-Track for the continuous analysis of components.

Usage

Freezing

A bill-of-material such as CycloneDX expects exact version numbers. Therefore requirements.txt must be frozen. This can be accomplished via:

$ pip freeze > requirements.txt

Installing

$ pip install cyclonedx-bom

Options

By default, requirements.txt will be read from the current working directory and the resulting bom.xml will also be created in the current working directory. These options can be overwritten as follows:

$ cyclonedx-py
  Usage:  cyclonedx-py [OPTIONS]
  Options:
    -i <path> - the alternate filename to a frozen requirements.txt
    -o <path> - the bom file to create

License

Permission to modify and redistribute is granted under the terms of the Apache 2.0 license.

Project details


Release history Release notifications | RSS feed

This version

0.3.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cyclonedx-bom-0.3.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

cyclonedx_bom-0.3.1-py2.py3-none-any.whl (20.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cyclonedx-bom-0.3.1.tar.gz.

File metadata

  • Download URL: cyclonedx-bom-0.3.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/18.5 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.10

File hashes

Hashes for cyclonedx-bom-0.3.1.tar.gz
Algorithm Hash digest
SHA256 38855e70fe943855863afbb26b6a68add08b9ebb2d67fdc4c93f5aabc8b420a1
MD5 2b2d265fb78e98cc858c2e6f9194d46e
BLAKE2b-256 4a8481fabdd1933adbf49d679f4215229abee443896bb50bce745ccb5869df5f

See more details on using hashes here.

Provenance

File details

Details for the file cyclonedx_bom-0.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: cyclonedx_bom-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/18.5 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.10

File hashes

Hashes for cyclonedx_bom-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 25779f5bd1969848a78ccacbd5d2983445f1358c285f37c6955d93a12f352169
MD5 df697fb31895f07b6f7c7acd0148eb9c
BLAKE2b-256 1641901e5a74cc814b1ebdd18c970db37286b1ec13d053ffda6f52952fa60244

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page