Skip to main content

qgis-sdk

The next-generation Python SDK for effortless QGIS plugin authoring.

Turn Python actions into QGIS plugins with less boilerplate. Test plugin logic without QGIS, build native and web interfaces over the same actions, and ship an installable ZIP. This developer kit brings together the qgis-sdk-runtime and qgis-sdk-tools at matching versions.

Status: 0.9.0, 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
pixi add --channel https://prefix.dev/archont561/archont561 qgis-sdk

Example

from qgis_sdk import QgisSdkPlugin
from qgis_sdk.core import PluginContext
from qgis_sdk.models import LayerInput, Metres, VectorLayerInfo
from qgis_sdk.ui import Button, Dialog, Form, LayerPicker, Number, on


app = QgisSdkPlugin(id="field.tools", title="Field tools")

@app.surface
class BufferDialog(Dialog):
    title = "Buffer"
    layer_id = LayerPicker(kind="vector", required=True)
    distance = Number(range=(0, 10_000), required=True)
    form = Form([layer_id, distance], action_id="buffer")
    run = Button(text="Run")

    @on(run).clicked
    def run_clicked(self) -> None:
        self.ctx.log.info("buffered", layer=self.form.submit().id)


@app.action(id="buffer", title="Buffer")
def buffer(ctx: PluginContext, layer_id: LayerInput, distance: Metres) -> VectorLayerInfo:
    params = {"INPUT": layer_id, "DISTANCE": distance}
    return ctx.algorithms.run("native:buffer", params).vector("OUTPUT")

qgis-sdk new <directory> writes a project on this API; check, test, dev and build take it from there. What QGIS's loader needs - metadata.txt, the classFactory - is rendered by build and dev, never written into the project.

Documentation

License

MIT

Metadata

Release files for qgis-sdk 0.9.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.9.0
File Interpreter ABI Platform Actions
qgis_sdk-0.9.0-py3-none-any.whl Python 3 none any Details for qgis_sdk-0.9.0-py3-none-any.whl

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

Download URL qgis_sdk-0.9.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ade63c4348a360bc26d412ca170ed089c99507c0fd73a76419383a0bf2be669
BLAKE2b-256 checksum
How to use checksums
c28cdb28b0e348373746d4e8501c63ee5c276fd812bda54b1d6c90a6da8ea8f7
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 31, 2026.

Transparency log

Security for qgis-sdk 0.9.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.9.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 31, 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