Skip to main content

CycloneDX Pydantic models for easy use in your Python project.

Project description

Hoppr CycloneDX Models

PyPI - Python Version PyPI - Version PyPI - Downloads PyPI - License Poetry

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

hoppr_cyclonedx_models-0.6.0-py3-none-any.whl (115.2 kB view details)

Uploaded Python 3

File details

Details for the file hoppr_cyclonedx_models-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hoppr_cyclonedx_models-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6c8ea5b8f079166fd503bd5213040f7b4c8d1171b6f71fef44627fb1170b1fe
MD5 e5090913bcbc7341cf44f3843a94780c
BLAKE2b-256 91617551808253e33513e7fb2320ccb1e7a0f9eb370e7e1e9ce9cfbc42781dcf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page