sbol3.attachment ================ .. py:module:: sbol3.attachment Classes ------- .. autoapisummary:: sbol3.attachment.Attachment Functions --------- .. autoapisummary:: sbol3.attachment.build_attachment Module Contents --------------- .. py:class:: Attachment(identity: str, source: str, *, format: Optional[str] = None, size: int = None, hash: str = None, hash_algorithm: str = None, namespace: str = None, attachments: List[str] = None, name: str = None, description: str = None, derived_from: List[str] = None, generated_by: List[str] = None, measures: List[SBOLObject] = None, type_uri: str = SBOL_ATTACHMENT) Bases: :py:obj:`TopLevel` The purpose of the Attachment class is to serve as a general container for data files, especially experimental data files. It provides a means for linking files and metadata to SBOL designs. .. py:method:: accept(visitor: Any) -> Any Invokes `visit_attachment` on `visitor` with `self` as the only argument. :param visitor: The visitor instance :type visitor: Any :raises AttributeError: If visitor lacks a visit_attachment method :return: Whatever `visitor.visit_attachment` returns :rtype: Any .. py:attribute:: format .. py:attribute:: hash .. py:attribute:: hash_algorithm .. py:attribute:: size .. py:attribute:: source .. py:method:: validate(report: ValidationReport = None) -> ValidationReport .. py:function:: build_attachment(identity: str, *, type_uri: str = SBOL_COMPONENT) -> SBOLObject