cyclonedx.serialization

Set of helper classes for use with serializable when conducting (de-)serialization.

Package Contents

Classes

BomRef

An identifier that can be used to reference objects elsewhere in the BOM.

BomRefHelper

Helper class that provides a standard way to create an ABC using

PackageUrl

Helper class that provides a standard way to create an ABC using

UrnUuidHelper

Helper class that provides a standard way to create an ABC using

class cyclonedx.serialization.BomRef(value: str | None = None)[source]

An identifier that can be used to reference objects elsewhere in the BOM.

This copies a similar pattern used in the CycloneDX Python Library.

property value: str
__eq__(other: object) bool[source]

Return self==value.

__lt__(other: Any) bool[source]

Return self<value.

__hash__() int[source]

Return hash(self).

__repr__() str[source]

Return repr(self).

__str__() str[source]

Return str(self).

class cyclonedx.serialization.BomRefHelper(*args: Any, **kwargs: Any)[source]

Bases: serializable.helpers.BaseHelper

Helper class that provides a standard way to create an ABC using inheritance.

classmethod serialize(o: object) str[source]
classmethod deserialize(o: object) cyclonedx.model.bom_ref.BomRef[source]
class cyclonedx.serialization.PackageUrl(*args: Any, **kwargs: Any)[source]

Bases: serializable.helpers.BaseHelper

Helper class that provides a standard way to create an ABC using inheritance.

classmethod serialize(o: object) str[source]
classmethod deserialize(o: object) packageurl.PackageURL[source]
class cyclonedx.serialization.UrnUuidHelper(*args: Any, **kwargs: Any)[source]

Bases: serializable.helpers.BaseHelper

Helper class that provides a standard way to create an ABC using inheritance.

classmethod serialize(o: object) str[source]
classmethod deserialize(o: object) uuid.UUID[source]