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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79777a5076fb058294124258ab7c297e250d15ea8dbc148d72c63b2a2f3d201d |
|
MD5 | 90224ea7e77377081815ed22d82027e7 |
|
BLAKE2b-256 | 3e47e8a6f7e8ee241f3a2d81e7a12e74db7a297ecdc36aee0891dbaa73ea3567 |
Close
Hashes for hoppr_cyclonedx_models-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 801f8cbe715b90c6db6030d8869bad427c5cee8389072825c28a2f27d95a1baf |
|
MD5 | 09609f91b5de354587a88d3b3e7c1872 |
|
BLAKE2b-256 | 3cde734978f3754d40e6bf357ff032094ddfe40caf506150e92d80419c4df45d |