QGIS Plugin tools
The library is helping you with:
- setting up some logging (QgsMessageLog, file log, remote logs...)
- fetching resources in
resourcesor other folders - fetching compiled UI file in
resources/uifolder - fetching compiled translation file in
resources/i18nfolder - 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qgis_plugin_tools-2.1.2.tar.gz | 38.9 kB | Without provenance | Details for qgis_plugin_tools-2.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qgis_plugin_tools-2.1.2-py3-none-any.whl | Python 3 | none | any | Details for qgis_plugin_tools-2.1.2-py3-none-any.whl |
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}
|
Security for qgis-plugin-tools 2.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.