QGIS Plugins


Python support was introduced in QGIS 0.9 (2007). Today, there are several ways how to use Python in QGIS Desktop. They are covered in the following sections:

  • Enter commands in the QGIS Python interactive console

  • Create and use QGIS plugins

  • Automatically run Python code when QGIS starts

  • Create custom applications based on the QGIS API

(source: PyQGIS Developer Cookbook)


All examples are QGIS 3.28 LTR compatible. Python 3 and Qt 5 required. Functionality in other QGIS versions is not guaranteed.


Licensed under Creative Commons Attribution-ShareAlike 4.0 International License.


Version: 1.0 (built Nov 02, 2023)


On behalf of GISMentors group:

Source code

Source code is available at:

Feel free to report issues at: