Skip to main content

Push spatial data from Python directly into a live QGIS session

Project description

qgis-bridge

Push spatial data from Python directly into a live QGIS session — no file exports, no manual imports, no QGIS-specific knowledge required.

Overview

qgis-bridge eliminates the friction of moving data between Python analysis environments and QGIS for visualization. Run your spatial analysis in a Jupyter notebook or Python script, then send results to QGIS with a single function call.

Usage

Standalone function:

from qgis_bridge import to_qgis

to_qgis(gdf, layer_name="Risk Zones", color_by="risk_score")

GeoDataFrame accessor:

import qgis_bridge  # registers the .qgis accessor on GeoDataFrame

gdf.qgis.send(layer_name="Risk Zones", color_by="risk_score")

Cloud raster URIs (streamed directly, no local download):

to_qgis("gs://my-bucket/elevation.tif", layer_name="Elevation")
to_qgis("s3://my-bucket/imagery.tif", layer_name="Imagery")
to_qgis("az://my-container/dem.tif", layer_name="DEM")

Supported Data Types

  • Vector: GeoDataFrame with a CRS set
  • Raster: Cloud GeoTIFFs via GCS (gs://), S3 (s3://), or Azure Blob (az://)

Design

  • Zero QGIS installation required in the Python environment
  • Communicates with an already-running QGIS instance
  • No authentication surface — credential resolution handled by QGIS/GDAL
  • Works in Jupyter, JupyterLab, VS Code, and plain Python scripts

Installation

pip install qgis-bridge

The QGIS plugin must also be installed separately inside QGIS (Plugins > Install from Zip), using the qgis_plugin/ directory from this repository.

Contributing

This project uses uv for development.

# Install uv (if not already installed)
brew install uv          # macOS
pip install uv           # any platform

# Clone and set up
git clone https://github.com/R-Repo/qgis-bridge
cd qgis-bridge
uv sync --group dev      # creates .venv and installs all dependencies

# Run tests (no QGIS required)
uv run pytest tests/

Status

Early development. API subject to change.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qgis_bridge-0.1.1.tar.gz (93.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qgis_bridge-0.1.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file qgis_bridge-0.1.1.tar.gz.

File metadata

  • Download URL: qgis_bridge-0.1.1.tar.gz
  • Upload date:
  • Size: 93.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qgis_bridge-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8082c64355c3a3e08688449954302b697e0c9b99a4c37531409263922a99395e
MD5 cf70d9c502dc5aaf00d90b3b7317fe05
BLAKE2b-256 9b0638d2ac2a4f95fb32f7e44ca54164468d9bac151b2097db8ba5c4b18f3930

See more details on using hashes here.

Provenance

The following attestation bundles were made for qgis_bridge-0.1.1.tar.gz:

Publisher: publish.yml on R-Repo/qgis-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qgis_bridge-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: qgis_bridge-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qgis_bridge-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c717e8b73fb35f0bf2e41bd2c6ae3a78d885cfe07dc6cf4383114a53cfdc1544
MD5 b854e3f164b3fe365a061ba1f9ba0634
BLAKE2b-256 67f1fcecfa95014b6e36e2ff90cf2483f1cb619efc4ce53f1d6854eb3a4491f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for qgis_bridge-0.1.1-py3-none-any.whl:

Publisher: publish.yml on R-Repo/qgis-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page