I was trying to access processing algorithm using PyQGIS 3 on a standalone script. I found this solution and tried it but when I list the processing algorithm using
print(QgsApplication.processingRegistry().algorithms()) it only lists the built-in plugins. The contour plugin that I wanted to import is not listed although it works just fine QGIS.
I have tried this code in QGIS Console:
import processing QgsApplication.processingRegistry().algorithms()
and the contour plugin is listed there as
<contour.ContourGeneratorAlgorithm.ContourGeneratorAlgorithm object at 0x7fe052e6aca8>, but when I tried in standalone script using this script:
sys.path.append('/usr/share/qgis/python/plugins/processing') import processing from processing.core.Processing import Processing Processing.initialize() print(QgsApplication.processingRegistry().algorithms())
it only lists the built-in plugins. Where is my mistake?
Btw, Contour plugin is an external QGIS plugin that make a contour from data points as an input. This plugin still in experimental state.