Skip to main content

QGIS Plugin tools

PyPI version Downloads Code on Github Ruff uv pre-commit

Warning: The API is not stable yet. Function and files may move between commits.

The module is helping you with:

  • setting up some logging (QgsMessageLog, file log, remote logs...)
  • fetching resources in resources or other folders
  • fetching compiled UI file in resources/ui folder
  • fetching compiled translation file in resources/i18n folder
  • removing QRC resources file easily
  • translate using the i18n.tr() function.
  • providing some common widgets/code for plugins

How to install it

It is recommended to use this library as an external dependency with the help of qgis-plugin-dev-tools. Or some other tool that can download the library though pip.

The tool can be installed via pip:

pip install qgis_plugin_tools

Remember to add this as a runtime requirement in your pyproject.toml:

[tool.qgis_plugin_dev_tools]
plugin_package_name = "your_plugin_package_name"
runtime_requires = [
    "qgis_plugin_dev_tools"
]

Development

See development readme.

Translating with QT Linguistic

The translation files are in i18n folder. Translatable content in python files is code such as tr(u"Hello World").

Translation files can be updated with qpdt transup or wait them to be updated automatically with "update-translations" pre-commit hook.

After updating ts files, you can open file you wish to translate with Qt Linguist or code editor, make the changes and compile the translations to .qm files using qpdt transcompile (works only on Linux, on Windows use Qt Linguist's File -> Release menu action).

How to use it

Refer to usage documentation.

Contributing

Contributions are very welcome. Get started by reading OSGeo Suomi CONTRIBUTING guidelines.

License

qgis_plugin_tools is licensed under the GNU General Public License, version 2 or (at your option) any later version (GPL-2.0-or-later). See LICENSE for the full text of GPLv2. Every source file carries a license notice.

By contributing to this project you agree that your contributions are licensed under the same terms.

Release files for qgis-plugin-tools 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qgis-plugin-tools 2.0.0
File Size Uploaded
qgis_plugin_tools-2.0.0.tar.gz 37.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qgis-plugin-tools 2.0.0
File Interpreter ABI Platform
qgis_plugin_tools-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 97.3 kB

Release files / qgis_plugin_tools-2.0.0.tar.gz

Download URL qgis_plugin_tools-2.0.0.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a682788fced8177c8957ab655b08426a9260791da7f53ab25eb03d3a95a820d4
BLAKE2b-256 checksum
How to use checksums
4622f3928d1cb90753e9ebba23bd3092540316f1484ea1a4018538d6356a4dcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / qgis_plugin_tools-2.0.0-py3-none-any.whl

Download URL qgis_plugin_tools-2.0.0-py3-none-any.whl
Size 59.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
208dfcfb7774b614a1c4ebae94cc587cc8354649d4c4ac738b5d95fe0a6e05c2
BLAKE2b-256 checksum
How to use checksums
54c128dd74bfcbce8b92366e1ed3a49b03fe971438172275014de1d26c96d51d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.1.1

2 release files

1.0.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page