:tocdepth: 3 :py:mod:`gws.plugin.qgis.caps` ============================== .. py:module:: gws.plugin.qgis.caps .. autoapi-nested-parse:: QGIS project xml parser. **Source code:** :source:`gws.plugin.qgis.caps` Module Contents --------------- .. py:class:: Caps(*args, **kwargs) Bases: :py:obj:`gws.Data` Basic data object. This object can be instantiated by passing one or or ``dict`` arguments and/or keyword args. All dicts keys and keywords become attributes of the object. Accessing an undefined attribute returns ``None`` and no error is raised, unless the attribute name starts with an underscore. .. py:attribute:: metadata :type: gws.Metadata .. py:attribute:: printTemplates :type: list[PrintTemplate] .. py:attribute:: projectBounds :type: Optional[gws.Bounds] .. py:attribute:: projectCanvasBounds :type: Optional[gws.Bounds] .. py:attribute:: projectCrs :type: gws.Crs .. py:attribute:: properties :type: dict .. py:attribute:: sourceLayers :type: list[gws.SourceLayer] .. py:attribute:: version :type: str .. py:attribute:: visibilityPresets :type: dict[str, list[str]] .. py:function:: parse(xml: str) -> Caps .. py:function:: parse_datasource(prov, text) .. py:function:: parse_element(root_el: gws.XmlElement) -> Caps .. py:class:: PrintTemplate(*args, **kwargs) Bases: :py:obj:`gws.Data` Basic data object. This object can be instantiated by passing one or or ``dict`` arguments and/or keyword args. All dicts keys and keywords become attributes of the object. Accessing an undefined attribute returns ``None`` and no error is raised, unless the attribute name starts with an underscore. .. py:attribute:: attributes :type: dict .. py:attribute:: elements :type: list[PrintTemplateElement] .. py:attribute:: index :type: int .. py:attribute:: title :type: str .. py:class:: PrintTemplateElement(*args, **kwargs) Bases: :py:obj:`gws.Data` Basic data object. This object can be instantiated by passing one or or ``dict`` arguments and/or keyword args. All dicts keys and keywords become attributes of the object. Accessing an undefined attribute returns ``None`` and no error is raised, unless the attribute name starts with an underscore. .. py:attribute:: attributes :type: dict .. py:attribute:: position :type: gws.UomPoint .. py:attribute:: size :type: gws.UomSize .. py:attribute:: type :type: str .. py:attribute:: uuid :type: str