# qgis-minimal-plugin **Repository Path**: richie12/qgis-minimal-plugin ## Basic Information - **Project Name**: qgis-minimal-plugin - **Description**: QGIS Python极简插件框架,来自大神[wonder-sk](https://github.com/wonder-sk/qgis-minimal-plugin),非常感谢。 - **Primary Language**: Python - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-04-21 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # QGIS Minimalist Plugin Skeleton In various QGIS plugin tutorials you are told to use _Plugin Builder_ tool to create a skeleton for your plugin. It is surely helpful as it helps you kickstart your plugin with stuff like UI designer file, auto tests, docs, i18n, scripts and so on. This QGIS plugin is the complete opposite of a plugin built with _Plugin Builder_: it is a plugin skeleton cut down to the bare minimum that still results in a valid QGIS plugin. It consists of two files only: a text file with metadata and a Python file with a bit of code. ## Why? For educational purposes, it is useful to understand how a very basic plugin could look like. For practical reasons, it is sometimes useful to create a single purpose plugin with the least amount of extra bells and whistles, so the code that actually does something is not hidden among generated boilerplate code. ## How to use it? 1. Create a new python plugin directory * e.g. Linux ```~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/minimal``` * e.g. Windows ```C:\Users\USER\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\minimal``` * e.g. macOS ```~/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/minimal``` 2. Copy ```metadata.txt``` and ```__init__.py``` to that directory 3. Start QGIS and enable the plugin (menu Plugins > Manager and Install Plugins...) Now you should see a "Go!" button in your "Plugins" toolbar (make sure it is enabled in menu Settings > Toolbars > Plugins). The next step is to change the metadata (e.g. plugin title and description) in ```metadata.txt``` and start adding your own code to ```__init__.py```. Have fun!