CycloneDX Pydantic models for easy use in your Python project.
Project description
Hoppr CycloneDX Models
Serializable CycloneDX Models. Quickly get up and running with models generated directly off the specification.
Current generated models can be found here.
Installation
Install using pip install --upgrade hoppr-cyclonedx-models
or poetry add hoppr-cyclonedx-models
.
A Simple Example
>>> from hoppr_cyclonedx_models.cyclonedx_1_5 import Component
>>> data = {"type": "library", "purl": "pkg:pypi/django@1.11.1", "name": "django", "version": "1.11.1"}
>>> component = Component(**data)
>>> component
>>> print(component)
Component(
type='library',
mime_type=None,
bom_ref=None,
supplier=None,
author=None,
publisher=None,
group=None,
name='django',
version='1.11.1',
description=None,
scope=<Scope.REQUIRED: 'required'>,
hashes=None,
licenses=None,
copyright=None,
cpe=None,
purl='pkg:pypi/django@1.11.1',
swid=None,
modified=None,
pedigree=None,
externalReferences=None,
components=None,
evidence=None,
releaseNotes=None,
modelCard=None,
data=None,
properties=None,
signature=None
)
Contributing
For guidance setting up a development environment and how to contribute to hoppr-cyclonedx-models
,
see Contributing to Hoppr.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for hoppr_cyclonedx_models-0.5.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52e200a6647a40696150ba31967fb2c62c52510066d300f4eeb0bbc070d2acb7 |
|
MD5 | e60bdc138000b30d847c8f30ca1b4896 |
|
BLAKE2b-256 | 94f465468129b956dc1dfcece86b253d18ae7031773d350bf605126d512fd93d |
Close
Hashes for hoppr_cyclonedx_models-0.5.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa94103d671a6cc62300856bcd129c6cc4479ec5a7c607c157c66e938d2428a6 |
|
MD5 | d9377657d82e12a87dec49866cad6754 |
|
BLAKE2b-256 | 380c08cfbfa298e896937a1f375687dd7459f3d055f6d696d617e7eff680da24 |