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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d3ed21b99abb66467a8e30918f45b8d74aa49a2f5f6b7b3437afe240e5d9fd0 |
|
MD5 | e9421c9adfd72cb60e9c5eba621d65a3 |
|
BLAKE2b-256 | 2e85f66397bab112047e61f37538013ea40a35d585594e924b6017c8d742a0ec |
Close
Hashes for hoppr_cyclonedx_models-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfb39a779a53b821b6f491395853e3cf5c3138f49b87cce04c152bd20d9f3b89 |
|
MD5 | 5ae6b2d0318e4f66a7284eba0bb0f468 |
|
BLAKE2b-256 | 10b55216c74cd7ef2966763a8be92b13629465d6162b442e450c348841d593ce |