cyclonedx.model.graphics ======================== .. py:module:: cyclonedx.model.graphics .. autoapi-nested-parse:: Graphics types of the CycloneDX standard, shared by model cards and component data. .. note:: See the CycloneDX Schema for graphics: - XML: https://cyclonedx.org/docs/1.7/xml/#type_graphicsCollection - JSON: https://cyclonedx.org/docs/1.7/json/#components_items_modelCard_quantitativeAnalysis_graphics Classes ------- .. autoapisummary:: cyclonedx.model.graphics.Graphic cyclonedx.model.graphics.GraphicsCollection Module Contents --------------- .. py:class:: Graphic(*, name: Optional[str] = None, image: Optional[cyclonedx.model.AttachedText] = None) Graphic entry with optional name and image (AttachedText). .. py:property:: name :type: Optional[str] The name of the graphic. Returns: `str` if set else `None` .. py:property:: image :type: Optional[cyclonedx.model.AttachedText] The graphic (vector or raster). Base64 encoding must be specified for binary images. Returns: `AttachedText` if set else `None` .. py:class:: GraphicsCollection(*, description: Optional[str] = None, collection: Optional[collections.abc.Iterable[Graphic]] = None) A collection of graphics with optional description. .. py:property:: description :type: Optional[str] A description of this collection of graphics. Returns: `str` if set else `None` .. py:property:: collection :type: SortedSet[Graphic] A collection of graphics. Returns: Set of `Graphic`