gws.plugin.qgis.project

Qgis Project API.

Source code: gws.plugin.qgis.project

Module Contents

exception gws.plugin.qgis.project.Error

Bases: gws.Error

GWS error.

gws.plugin.qgis.project.from_path(path: str) Object
gws.plugin.qgis.project.from_store(root: gws.Root, store: Store) Object
gws.plugin.qgis.project.from_string(text: str) Object
class gws.plugin.qgis.project.Object(text: str)
sourceHash: str
version: str
caps() gws.plugin.qgis.caps.Caps
to_path(path: str)
to_store(root: gws.Root, store: Store)
to_xml()
xml_root() gws.XmlElement
class gws.plugin.qgis.project.Store(*args, **kwargs)

Bases: 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.

dbUid: str
path: gws.FilePath
projectName: str
schema: str
type: StoreType
class gws.plugin.qgis.project.StoreType

Bases: gws.Enum

Enumeration type.

Despite being declared as extending Enum (for IDE support), this class is actually just a simple object and intended to be used as a collection of attributes. It doesn’t provide any Enum-specific utilities.

The rationale behind this is that we need Enum members (e.g. Color.RED) to be scalars, and not complex objects as in the standard Enum.

file = 'file'
postgres = 'postgres'