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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64199455b4595a25347be5f3f6cbcdfb50adaef7928ac850bcb32d7bcff90db9 |
|
MD5 | 2026db1524e28ee448773a56a4363e4a |
|
BLAKE2b-256 | f2b342f88a5d6572cf99d23b613dcf486aefc32903e2200fc68545940941b7fe |
Close
Hashes for hoppr_cyclonedx_models-0.5.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa6d8b7d45c54dd8bb59b88e21994f38b2e0c15184579b8385d521c1397763f9 |
|
MD5 | 530f7ae9524a87110bc35017654d3eb6 |
|
BLAKE2b-256 | ddc4dcf7d7db5b745bffcec0713df2af49be8e10301b469c60933b65143b500d |