Registry / security / cyclonedx-py

cyclonedx-py

JSON →
library1.0.1pypypiunverified

Alias package for 'cyclonedx-bom' — a library for generating CycloneDX Software Bill of Materials (SBOM) in Python. Version 1.0.1 is a transitional redirect. Use cyclonedx-bom directly.

pip install cyclonedx-bom
INSTALL
IMPORT
SIG · CYCLONEDX-PY
C
cyclonedx-py
securitypythonv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CycloneDX
from cyclonedx_py import CycloneDX
from cyclonedx.model import CycloneDX

Generate a minimal CycloneDX SBOM. Use cyclonedx-bom package directly.

from cyclonedx.model import CycloneDX from cyclonedx.factory.license import LicenseFactory sbom = CycloneDX() print(sbom.to_xml())
Debug
Known issues
deprecatedcyclonedx-py is deprecated in favor of cyclonedx-bom. The package acts as a redirect and may no longer be updated.
fix
Switch dependencies to 'cyclonedx-bom' and import from 'cyclonedx'.
affects: >=1.0.0
gotchaInstalling 'cyclonedx-py' does not actually install the library; it only installs a stub. You must install 'cyclonedx-bom' explicitly.
fix
Run 'pip install cyclonedx-bom' and uninstall 'cyclonedx-py'.
affects: all
breakingThe internal module structure changed between major versions of cyclonedx-bom (e.g., 0.x vs 1.x). Imports like 'from cyclonedx.model import Bom' may fail after upgrade.
fix
Use updated import paths as shown in the official documentation. For 1.x: 'from cyclonedx.model.bom import Bom'.
affects: cyclonedx-bom >=1.0.0
Upgrade
Version history
1.0.1latest on PyPI · released Jan 31, 2024
Audit
Dependencies
cyclonedx-bomrequiredcyclonedx-py is a placeholder alias; cyclonedx-bom is the real package
Agent activity
16 hits · last 30 days
node
16
Resources

No resource links recorded.

cyclonedx-py — pip install cyclonedx-py · libregistry