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.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.1.0
File Size Uploaded
qgis_plugin_tools-2.1.0.tar.gz 38.8 kB Details

Built distribution (wheel)

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

Total release size: 102.1 kB

Release files / qgis_plugin_tools-2.1.0.tar.gz

Download URL qgis_plugin_tools-2.1.0.tar.gz
Size 38.8 kB
Tags Source
SHA-256 checksum
How to use checksums
75112f226f98301aaaa8d444ddf995269be61f2927ba65acea89f302272baf00
BLAKE2b-256 checksum
How to use checksums
13c96152f9bc1d728a6f396f66f2b1a7510c1c023327511ae65e6a9852a9982f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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.0-py3-none-any.whl

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

2.1.1

2 release files

This release

2.1.0 This release

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