Skip to main content

topo-tools

CI PyPI Python versions License: MIT

World ADM0 boundaries extended with Voronoi-filled coastline

topo-tools is a collection of DuckDB-powered geospatial topology utilities for cleaning and reconciling administrative boundary polygons. It ships eight tools, usable from the CLI or as a Python package:

Tool What it does Usage
edge-extend Fills gaps around a polygon layer (missing coastline, disputed areas, water bodies) with a Voronoi extension, producing full coverage. docs/explanation/edge_extend.md
edge-clip Assigns each child to its parent, then clips it to that parent's geometry. docs/explanation/edge_clip.md
edge-stitch Closes seams in an already-tiled polygon layer with one whole-table coverage-clean pass. docs/explanation/edge_stitch.md
topo-detect Scans a single polygon layer for gap/overlap coverage defects and reports them, without fixing anything. docs/explanation/topo_detect.md
edge-match Fits a finer child polygon layer into a coarser parent layer, grouping and extending each child to fill gaps within its own parent. docs/explanation/edge_match.md
edge-mosaic Re-clips an already-extended child layer into a new/different parent layer, skipping Voronoi extension entirely. docs/explanation/edge_mosaic.md
topo-clean Detects and fixes gap/overlap defects in a single polygon layer, reporting issues for manual review. docs/explanation/topo_clean.md
change Compares two versions of a polygon layer and classifies every unit as unchanged, renamed, modified, split, merged, created, or removed. docs/explanation/change.md

Installation

uv tool install topo-tools   # CLI (recommended)
uv add topo-tools            # Python library

Or with pip:

pip install topo-tools

Each linked doc above covers that tool's CLI/Python usage, options, and examples.

Supported Formats

Polygon inputs/outputs: GeoParquet (.parquet), GeoPackage (.gpkg), Shapefile (.shp), GeoJSON (.geojson). Output format matches input format. change's tabular changelog is CSV or GeoParquet only; its spatial overlay layer supports the same four formats as the other tools.

See CONTRIBUTING.md for development setup.

Release files for topo-tools 0.5.1

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

Source distribution (sdist)

Source distribution for topo-tools 0.5.1
File Size Uploaded
topo_tools-0.5.1.tar.gz 68.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for topo-tools 0.5.1
File Interpreter ABI Platform
topo_tools-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 188.6 kB

Release files / topo_tools-0.5.1.tar.gz

Download URL topo_tools-0.5.1.tar.gz
Size 68.5 kB
Tags Source
SHA-256 checksum
How to use checksums
31b618e97b806771efc4d5aa1f2e381b7c3e6e0681fe115fc8165c8a53923921
BLAKE2b-256 checksum
How to use checksums
55f3a1165143b5854643ad79db602adf7847326cbf8d1e2619c8d1d4d8a3f5c8
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 Aug 26, 2026.

Transparency log

Release files / topo_tools-0.5.1-py3-none-any.whl

Download URL topo_tools-0.5.1-py3-none-any.whl
Size 120.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8ef74aefc30eff6684ccf30998843aa609e450db91d0e7bc786c7389b5802ea
BLAKE2b-256 checksum
How to use checksums
67512e8a6de02b9145a5beda7b926111eb5ba3eb4e2b78d4aa2866b7468f26a2
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 Aug 26, 2026.

Transparency log

Release history Release notifications | RSS feed

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

This release

0.5.1 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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