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: Generated Models
Installation
Install using pip install -U hoppr-cyclonedx-models
or poetry add hoppr-cyclonedx-models
.
A Simple Example:
from hoppr_cyclonedx_models.cyclonedx_1_4 import Component
data = {'type': 'library', 'purl': 'pkg:pypi/django@1.11.1', 'name': 'django', 'version': '1.11.1'}
component = Component(**data)
print(component.purl)
Contributing
For guidance setting up a development environment and how to make a contribution 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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58fa4f627537be8034e8377076db2d003574e0986c121a1f181bb1f2291b72fa |
|
MD5 | dc4c13e7b0af5d0e9997996043edce02 |
|
BLAKE2b-256 | 45893b3aa3af57409af08e82594325bf3e947e7c3154a514385dd98eb24dd421 |
Close
Hashes for hoppr_cyclonedx_models-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 747ad1f1974ea53682cad806bf5d712250f7753bd504620695a633598d563b13 |
|
MD5 | 1539f5ae579dd9f3943b6511dc04bb33 |
|
BLAKE2b-256 | 2b206f41ad7bad107ccb6d3dee4d679369227bdd82909ec70b0541e1745dd721 |