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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97708fdb1e28476dda6f0abadf650aa1428f2ec433caf621b5622761398cb0ed |
|
MD5 | 33c1f082f7c065db0c0a7159602fb91d |
|
BLAKE2b-256 | 5aea7a73ee74284a867c480ecf69b3da150bee68526ea0dd6421264ec08ee266 |
Close
Hashes for hoppr_cyclonedx_models-0.4.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5469ce8d8a17b533a2176fb50b3e6e872f27ccdb718502c2727e2a81cb8ea5d |
|
MD5 | 4ec1638628b3e228e0c5038a86db5d5b |
|
BLAKE2b-256 | dc3c00d97118787b02530a49f36760053de2c3748c585b39bda5bbc18f381774 |