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.4.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0f37353f52f87ef27af63df73af61a34644b0f1d7848d49fe2853c7d58b2fdc |
|
MD5 | fe272fb51218c7e3180fd16b8d124a9b |
|
BLAKE2b-256 | 680535b310ce6e9e00a6ce22a481b395fa04352be7033d50c2d8b9c7816c5aa4 |
Close
Hashes for hoppr_cyclonedx_models-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57385ec4cbffe21bad9007e0d8133732972ccf2ecdb5a07edcaaf109f1924e96 |
|
MD5 | f01e5c8d217132b292f5a908db4a25eb |
|
BLAKE2b-256 | 92577ef636d092a6aaec2781d503410d7ba4183acc44dfa74b5c3a0d48567f73 |