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 Distribution

hoppr_cyclonedx_models-0.8.0.tar.gz (161.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hoppr_cyclonedx_models-0.8.0-py3-none-any.whl (169.7 kB view details)

Uploaded Python 3

File details

Details for the file hoppr_cyclonedx_models-0.8.0.tar.gz.

File metadata

  • Download URL: hoppr_cyclonedx_models-0.8.0.tar.gz
  • Upload date:
  • Size: 161.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.10.20 Linux/5.15.154+

File hashes

Hashes for hoppr_cyclonedx_models-0.8.0.tar.gz
Algorithm Hash digest
SHA256 4afa6523f47a5d9216537dcbbe0e06cf2f2dafda33187c028f33cf240e9dd57a
MD5 70dd1eb129fab0a3edc2735ffcf89b28
BLAKE2b-256 a5597e840a59ddac048b710e73b646c941ccee2e6270cd1b12933b44f708565c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoppr_cyclonedx_models-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2beae0983dd6e9e0abc43d202ad650a7d137e7b69f8bcc7a45546cadbfac026
MD5 9cdd7a63ee26da5e97d11cbafada9f27
BLAKE2b-256 a18b67b881be4ef5bc984c4de31016e8e9aad170280ea028ce891ee828c1ef5c

See more details on using hashes here.

Supported by

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