Skip to main content

QGIS Plugin tools

PyPI version Downloads Code on Github Ruff uv pre-commit

The library 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
  • typing helpers to help with type checking

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 through 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:

[project]
dependencies = [
  "qgis_plugin_tools"
]

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

Development

See development readme.

Translating with QT Linguist

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.

Metadata

Release files for qgis-plugin-tools 2.1.1

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.1.1
File Size Uploaded
qgis_plugin_tools-2.1.1.tar.gz 38.7 kB Details

Built distribution (wheel)

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

Total release size: 102.3 kB

Release files / qgis_plugin_tools-2.1.1.tar.gz

Download URL qgis_plugin_tools-2.1.1.tar.gz
Size 38.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b74e761c7a90c8b98d8dc7a8ea2cf92b5bf3a748216e33efcd1dd590f748d8f4
BLAKE2b-256 checksum
How to use checksums
eb0f9646c4f848b1c71c3a4e821c217083d7ad4a8dc61815b55495e0d5e82a7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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.1.1-py3-none-any.whl

Download URL qgis_plugin_tools-2.1.1-py3-none-any.whl
Size 63.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6ce40d1564d411f1c5305d0724e9cac567c75ff2c06d85d162d809e9544cecf
BLAKE2b-256 checksum
How to use checksums
f41a5451da535d0623adb5fee863b3a403b263855f83ba6b8534120fd0da4aa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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

2.1.2

2 release files

This release

2.1.1 This release

2 release files

2.1.0

2 release files

2.0.0

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