niva
QGIS from the command line. A concise, readable grammar for QGIS geoprocessing — for people who don't want to write PyQGIS. Easy wins every time.
Ever get tired of clicking? Write a whole pipeline on one line — friendly verbs running on QGIS's own Processing algorithms underneath:
load roads.gpkg | buffer 100m dissolve | clip city.gpkg | save roads_local.gpkg
or even
# ── TEST 24 | add then remove vertices | densify → smooth → simplify
load "{data}/collected.gpkg|layername=park_lines" | densify 5m | smooth iterations=2 | simplify 10 | save /tmp/niva_validation/out/s3_24.gpkg
What it does
Niva turns QGIS automation from PyQGIS code into a readable single lines of text.
- Runs in QGIS's own Python
- Reaches any of its ~878 algorithms
- Near-zero dependencies on other packages. We're trying to stay within the python standard library.
- ~45 friendly verbs → real QGIS algorithms, across vector geometry, overlay, attributes, raster or use
runto any of the ~878 with no dedicated verb alias;describeshows their parameters. Every alias is validated against the installed QGIS. - Discoverable —
describe <verb>ends with a runnable example;search <keyword>fuzzy-finds functions across the verbs and QGIS ; anddocs <keyword>emits the full reference for every match — save it out withto=<file>. And more! - Databases via named QGIS connections — read (
load @conn.table,sql @conn "SELECT …"), write (save @conn.table, fail-closed withmode=create|replace|append), and analyze server-side (non-SELECTsql @conn "CREATE TABLE … AS SELECT …"). Credentials never leave QGIS. - Provenance for free — every
saverecords processing steps into metadata;assesswrites data-quality reports; the run journal echoes the exactprocessing.run(…)for each step. - Composable — chain stages with
|, compose .niva files withcall mypipeline.niva, and export a flow to a standalone PyQGIS script (niva export) or import one back. - It's just PyQGIS under the hood. - Utility verbs beyond QGIS —
notify(ntfy push when a long job finishes),email(SMTP, Gmail-aware),catalog(recurse a directory and inventory every geospatial dataset — CRS, extent, fields, bands — to a Markdown report),show(list the loadable layers/tables at a file, directory,@conn, or remote WFS/WMS/ArcGIS REST/XYZ URL — name, type, format, ready-to-load source), andinfo(inspect the local QGIS environment — the registered@connconnection names across every profile, providers, versions). Credentials fornotify/emailcome only from the environment, never the flow text.
Screenshots
niva in the QGIS plugin dock and on the command line — see docs/screenshots.md.
Docs
New here? Start with the Quick start.
- Quick start — install & run niva, in QGIS or as a CLI on QGIS's own Python
- User Guide — install & run niva inside QGIS and standalone, configuration, scratch space, troubleshooting
- Reference — every verb, alias, option, type, env var, CLI command, and Python entry point · Algorithm appendix — all 878 QGIS algorithms with parameters & descriptions
- Cookbook — 50 worked recipes, including spatial SQL for SpatiaLite and PostGIS
- FAQ — what libraries you need, how to run niva, scratch space, databases
- Template projects — author a QGIS project once (layout + styles), reuse it against fresh data with
project from-template= - Testing — platform support (QGIS 4.0.3 & 3.44 LTR), running the suite, and the test
.niva-companion rule (per-run detail:tests/TESTING_LOG.md) - About & goals · Plugin · Publishing a QGIS plugin — a reusable playbook · Verb ↔ algorithm map
- Design & risk docs — PRD, architecture, grammar, security, the
Oscarfailure register - CHANGELOG
📘 The whole guide (User Guide + Reference + Cookbook + FAQ + the 878-algorithm appendix) is also one PDF: niva-guide.pdf (also attached to the latest release; rebuild with python3 scripts/build_guide_pdf.py, which needs pandoc + a LaTeX engine).
License
GPLv3 — consistent with the QGIS ecosystem (niva builds on PyQGIS, a GPL library). Not yet on PyPI; install from source or the plugin zip.
Metadata
Release files for qgis_niva 0.57.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qgis_niva-0.57.0.tar.gz | 16.1 MB | Without provenance | Details for qgis_niva-0.57.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qgis_niva-0.57.0-py3-none-any.whl | Python 3 | none | any | Details for qgis_niva-0.57.0-py3-none-any.whl |
Total release size: 16.5 MB
Release files / qgis_niva-0.57.0.tar.gz
| Download URL | qgis_niva-0.57.0.tar.gz |
|---|---|
| Size | 16.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
913d62b41be38ec5a1f497b81c1fc17e88a37282ee5a4a8c831d25382ab48cc4
|
|
BLAKE2b-256 checksum How to use checksums |
b3d0bf82ba260177dea95f47fa8e12e5d71ac69ffbfb17f670aec086860041ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / qgis_niva-0.57.0-py3-none-any.whl
| Download URL | qgis_niva-0.57.0-py3-none-any.whl |
|---|---|
| Size | 398.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a32697b92ce7955a058f1cffb50c13ebb943382ffbfe0d2629251dbe30398d3
|
|
BLAKE2b-256 checksum How to use checksums |
98901c04a7828471081c9c96d4d8f00e29ec3ae9654d0848602ed8797edd7047
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for qgis_niva 0.57.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.