Skip to main content

qgis-sdk

The Python developer kit for QGIS plugins: runtime plus tools.

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. qgis-sdk is a code-free kit that installs qgis-sdk-runtime (what a plugin imports) and qgis-sdk-tools (the command) at matching versions.

Experimental 0.x. Each 0.Y.0 carries migration notes; nothing is promised stable before 1.0.0.

Installation

pip install qgis-sdk                            # runtime + tools
pip install "qgis-sdk[controlled-deployment]"   # optional Pydantic adapter
pip install qgis-sdk-runtime                    # the runtime alone (QGIS console)
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 plugin project built on the same API: pyproject.toml naming the class under [tool.qgis-sdk], the package with plugin.py, a starter test and an optional Vite web UI (--web vanilla|react|svelte|vue). What QGIS's loader needs - metadata.txt, the classFactory - is rendered by build and dev, never written into the project. qgis-sdk check reports what would stop it 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

License

MIT

Metadata

Release files for qgis-sdk 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for qgis-sdk 0.6.0
File Interpreter ABI Platform Actions
qgis_sdk-0.6.0-py3-none-any.whl Python 3 none any Details for qgis_sdk-0.6.0-py3-none-any.whl

Release files / qgis_sdk-0.6.0-py3-none-any.whl

Download URL qgis_sdk-0.6.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6861c994f1492e76402b776bf7bd0d1d4a8feb9c6155eaa8f1f33c767f404f4
BLAKE2b-256 checksum
How to use checksums
0ee3f85744d5b8ac9bb6de865c041a176131853714362c53dbaa567e891e22bf
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 26, 2026.

Transparency log

Security for qgis-sdk 0.6.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.6.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 26, 2026.

Transparency log

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.

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