Skip to content

PyQgis Wrapper

PyQgis Wrapper aims to make it easier to:

  • use pyqgis functionnalities;
  • use processing algorithms outside QGIS.

PyQgis Wrapper was developed by the DYNAFOR laboratory, a research unit affiliated with INRAE, INP-AgroToulouse, and EI Purpan, which studies agri-forestry landscapes at the interface of ecology and society to promote sustainable agroecological and silvo-ecological practices.

PyQgis functionnalities

  • Launch a QgsApplication in an IDE with ease. The custom application aims to set up the bindings and to add the default providers to use in the processing library.

  • A minimalist canvas is also available to see in memory results or to avoid switching between QGIS and your IDE.

  • Custom logger for QgsFeedback or stream

  • Allows easier use of the progress bar

  • Creation and manipulation:

    • vector layer
    • raster layer
    • fields
    • CRS

Processing library

  • Dynamically create processing algorithms with default value parameters.
  • Search and help functions available to avoid switching between QGIS and your IDE.

Setup

To use PyQGIS Wrapper, you need an environment with QGIS bindings. Follow the installation instructions in the setup guide

Usage

A tutorial is available.

License

PyQgis Wrapper is licensed under the GNU License.