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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fa0f1433a33e42d84608b318e536543d2d0215bc4ea58c86be3106d20e40a83 |
|
MD5 | 709a27f22270e6396c65a6dcc4f1596e |
|
BLAKE2b-256 | cfa9bd220d98eb1c6f5e737f865bb13533c7ff02f27082425decd4f91d602cf9 |
Close
Hashes for hoppr_cyclonedx_models-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27281baaeb22405323a19fe3b9ea92523f6a7b59b1821b3b662a40a9c8126973 |
|
MD5 | 6b08ce5ed8d6083edae774b81a2b5b78 |
|
BLAKE2b-256 | b95ec5d4658f4233b70d20fa256569ab5541ec47c296f7e8e0e482f18b02dc28 |