qgis-sdk
Python SDK foundations for QGIS plugins.
Declare a plugin on plain classes and let the SDK derive the rest: the JSON description a web view reads, the native dialogs, the Processing algorithms, the bridge allowlist and the generated TypeScript client. The pure layers import without QGIS or Qt, so a plugin is testable from source.
Experimental
0.2.0. Each0.Y.0carries migration notes; nothing is promised stable before1.0.0.
Installation
pip install qgis-sdk
pip install "qgis-sdk[controlled-deployment]" # optional Pydantic adapter
pixi add --channel https://prefix.dev/archont561/archont561 qgis-sdk
Example
from dataclasses import dataclass
from qgis_sdk import action, describe_plugin, plugin
@dataclass
class RunRequest:
count: int
label: str | None = None
@plugin(id="example.tools", title="Example tools")
class Tools:
@action(id="run", title="Run")
def run(self, request: RunRequest) -> int:
return request.count
print(describe_plugin(Tools).to_json())
qgis-sdk new <directory> writes a loadable plugin project built on the
same API, with an optional Vite web UI (--web vanilla|react); qgis-sdk check reports what would stop one from loading in QGIS or from being tested
without it. qgis-sdk test runs the project's pytest QGIS-free by default
(--target qgis|desktop for the native layers, arguments pass through) and
qgis-sdk dev starts the plugin from source in a real QGIS Desktop with an
isolated profile, reload on save and, for a web UI, Vite with hot module
replacement. qgis-sdk build checks the project and writes an installable
ZIP with the runtime vendored inside, so the plugin needs nothing installed.
Documentation
- Python package guide - declarations, runtime, adapters, forms, algorithms, the bridge host side, the scaffold, release and migration notes.
- TypeScript bridge -
the companion package for a
QWebEngineViewinterface. - Workspace, harnesses and qualification evidence.
License
MIT
Metadata
Release files for qgis-sdk 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qgis_sdk-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for qgis_sdk-0.4.0-py3-none-any.whl |
Release files / qgis_sdk-0.4.0-py3-none-any.whl
| Download URL | qgis_sdk-0.4.0-py3-none-any.whl |
|---|---|
| Size | 236.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66de7e451f0086e805fc0df4d2d78f436597164b672014d732e1b0083c4a7eb7
|
|
BLAKE2b-256 checksum How to use checksums |
b7d7af80499b8ecaa320cd09987091ce7d9b880e0745623032db02ee62964283
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logSecurity for qgis-sdk 0.4.0
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.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for qgis_sdk-0.4.0-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logA 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.