cyclonedx.model.graphics

Graphics types of the CycloneDX standard, shared by model cards and component data.

Classes

Graphic

Graphic entry with optional name and image (AttachedText).

GraphicsCollection

A collection of graphics with optional description.

Module Contents

class cyclonedx.model.graphics.Graphic(*, name: str | None = None, image: cyclonedx.model.AttachedText | None = None)

Graphic entry with optional name and image (AttachedText).

property name: str | None

The name of the graphic.

Returns:

str if set else None

property image: cyclonedx.model.AttachedText | None

The graphic (vector or raster). Base64 encoding must be specified for binary images.

Returns:

AttachedText if set else None

class cyclonedx.model.graphics.GraphicsCollection(*, description: str | None = None, collection: collections.abc.Iterable[Graphic] | None = None)

A collection of graphics with optional description.

property description: str | None

A description of this collection of graphics.

Returns:

str if set else None

property collection: SortedSet[Graphic]

A collection of graphics.

Returns:

Set of Graphic