Feature request #8955

Updated by Luigi Pirelli over 3 years ago

Currently it is not possible to use the processing module in a standalone QGIS application/script.

This is due in part to a dependence on the iface object, which is only available when running as a plugin within QGIS. In addition to this there will be issues with calling external programs/scripts using subprocess.Popen related to paths.

I've attached an example script (processing_standalone.py) which uses a mock iface object to allow the plugin to load. This can be used to run the 'qgis:*' algorithms, as they don't have any external dependencies. More work is needed to get things working with GRASS and SAGA, etc.