The repository is made with the intention of assisting users in streamlining repetitive tasks that might otherwise consume hours or even days when performed manually, primarily focuses on day-to-day workflow. For instance, saving all layers within the same group to a specific format, execute a series of functions across the whole groups, etc.
Of course, no single template that suits for all, as individual needs can vary significantly. However, I plan to continually update and expand the repository with additional snippets over time.
Additionally, all feedbacks are welcomed, so feel free to suggest changes by forking this repository, creating a pull request, or opening an issue. A big thank you to all who have contributed to enhancing these snippets!
Snippets are under the snippets
folder, the code should only be run under QGIS python console.
Clone the repo
git clone https://github.com/Cookie755233/PyQGIS-Snippets.git
- Select the python file under
snippets
that suits your current workflow, replace a few variable that runs on your local machine. - QGIS -> Python Console -> Open snippet to use
- Run and have a productive day!
I am not experienced in script development, hence files in the ‘scripts’ folder is not actively maintained. As a result, users might encounter unexpected behaviors or crashes. Please be aware of the situation and use carefully. If you encounter any issues or have suggestions for improvement, feel free to create a pull request. Your input is valuable, and I'll be happy to review and collaborate on refining the script.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag suggestion
or bug report
. All contributions or feedbacks are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- Email: [email protected]
- Project Link: https://github.com/Cookie755233/PyQGIS-Snippets
For in-depth guide, please refer to the following documentation.