Skip to main content

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. Each 0.Y.0 carries migration notes; nothing is promised stable before 1.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:
    def __init__(self, ctx):
        self.ctx = ctx

    @action(id="run", title="Run")
    def run(self, request: RunRequest) -> int:
        return request.count


print(describe_plugin(Tools).to_json())

qgis-sdk scaffold <directory> writes a loadable plugin project built on the same API.

Documentation

License

MIT

Metadata

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

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

Download URL qgis_sdk-0.3.0-py3-none-any.whl
Size 169.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d00fb5689ac258d7e4b1ee976228f035f30c5a3f8cc2237ba4bb5b289d564c96
BLAKE2b-256 checksum
How to use checksums
0e0a4f984383e946d0e8f38dd087204583494dd6d9c913abc671fcca6a101597
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 log

Security for qgis-sdk 0.3.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.3.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 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