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.2

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.2
File Size Uploaded
qgis_plugin_tools-2.1.2.tar.gz 38.9 kB Details

Built distribution (wheel)

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

Total release size: 102.5 kB

Release files / qgis_plugin_tools-2.1.2.tar.gz

Download URL qgis_plugin_tools-2.1.2.tar.gz
Size 38.9 kB
Tags Source
SHA-256 checksum
How to use checksums
af4ca8ff79347afd5a042ea55dfde23fd4775e5135f46f248a500002d01c55ed
BLAKE2b-256 checksum
How to use checksums
b8f99ceca2563b11910cf2f22229528f552cf812fb39db6b754772c614fa5314
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.2-py3-none-any.whl

Download URL qgis_plugin_tools-2.1.2-py3-none-any.whl
Size 63.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9083674d3bffac68f267fbcd388c2c3e791c45a685be706da3e911cc71cfe4f8
BLAKE2b-256 checksum
How to use checksums
f1641a414d18a55bce1dd8e5a350163af6429bd8f166fc69b675476e75117d42
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

This release

2.1.2 This release

2 release files

2.1.1

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