I want to find the Python source code for tools like Merge Lines, Multiple parts to single parts, Intersection, Difference etc. I am not having any luck finding them online.

Does anyone know any links to Python code?

I am using QGIS 3.18.1.


1 Answer 1


The tools are not written in python, but in C++ and the source code can be found here, e.g.

  • is there any way i can find the tools code in python? written by some fellow user? Commented Jun 14, 2021 at 22:18
  • No. The tools are not available as python code. If you are asking about the algorithms these tools implement, then that is a different question. Pure python implementations won't be easy to find.
    – user2856
    Commented Jun 14, 2021 at 23:09
  • where can i find the algo? Commented Jun 15, 2021 at 7:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.