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.
Installation
Install using pip install --upgrade hoppr-cyclonedx-models or poetry add hoppr-cyclonedx-models.
A Simple Example
>>> from hoppr_cyclonedx_models.cyclonedx_1_5 import Component
>>> data = {"type": "library", "purl": "pkg:pypi/django@1.11.1", "name": "django", "version": "1.11.1"}
>>> component = Component(**data)
>>> component
>>> print(component)
Component(
type='library',
mime_type=None,
bom_ref=None,
supplier=None,
author=None,
publisher=None,
group=None,
name='django',
version='1.11.1',
description=None,
scope=<Scope.REQUIRED: 'required'>,
hashes=None,
licenses=None,
copyright=None,
cpe=None,
purl='pkg:pypi/django@1.11.1',
swid=None,
modified=None,
pedigree=None,
externalReferences=None,
components=None,
evidence=None,
releaseNotes=None,
modelCard=None,
data=None,
properties=None,
signature=None
)
Contributing
For guidance setting up a development environment and how to contribute 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hoppr_cyclonedx_models-0.7.2.tar.gz.
File metadata
- Download URL: hoppr_cyclonedx_models-0.7.2.tar.gz
- Upload date:
- Size: 110.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.10.20 Linux/5.15.154+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1ef1117e744734aa56ceb8c902b40cd5d0d2cf116952002416998e21c015468
|
|
| MD5 |
8d5268bb385acdab9293cda376f6cfc6
|
|
| BLAKE2b-256 |
8dda66ace787975930550150ddeb15ff98e030d4b7d35936a582fc489cb87018
|
File details
Details for the file hoppr_cyclonedx_models-0.7.2-py3-none-any.whl.
File metadata
- Download URL: hoppr_cyclonedx_models-0.7.2-py3-none-any.whl
- Upload date:
- Size: 116.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.10.20 Linux/5.15.154+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
182d04bde73a7dd10acc3f78af2c13176e00d22e283a34837664418271abfd78
|
|
| MD5 |
eabf0dd635969788b2cdc40c01cbe689
|
|
| BLAKE2b-256 |
213958f1107b0ebf8bd17a27fdd335c50e9efd2dc5fd2752108e755a58e9443e
|