Summary
In this chapter, you learned how to develop your own Python scripts for the QGIS Processing framework and automate analysis with their help. Python scripts are an alternative to Processing's models and give us more flexibility than models. You learned how to get information about available Processing algorithms and how to call them from the Python console. Then, you got to know the main parts of a Processing script: the header with meta-information and the script body. Finally, we developed a simple script to calculate the shortest path between two points for a given road network.
In the next chapter, you will get to know another way to extent the QGIS functionality—by developing your own Python plugin.