topo-tools
topo-tools is a collection of DuckDB-powered geospatial topology utilities
for cleaning and reconciling administrative boundary polygons, usable from
the CLI or as a Python package.
Full documentation: https://topo-tools.org/docs/
| Tool | Description |
|---|---|
| schema-map | map and apply a source to target schema crosswalk |
| schema-fill | fill down admin-hierarchy columns |
| schema-join | copy a join layer's admin-hierarchy columns onto each input feature |
| topo-clean | detect and fix gap/overlap defects |
| topo-detect | detect gap/overlap defects |
| edge-match | fit an input layer into an overlay layer |
| edge-extend | fill gaps with a Voronoi extension |
| edge-mosaic | re-clip an extended input layer into a new overlay layer |
| edge-clip | clip an input layer to an overlay layer |
| edge-stitch | close seams in a tiled layer |
| change | classify changes between two polygon layer versions |
| code-create | assign a fresh hierarchical code, ranked per parent |
| code-update | carry codes over from an old layer to a new one |
| name-detect | check unit names for blanks, duplicates and encoding errors |
| name-clean | fix spacing, invisible characters and encoding errors in unit names |
| package | dissolve, label, and line-ify a layer in one call |
| package-polygons | dissolve a layer into coarser admin levels |
| package-points | one label point per admin unit |
| package-lines | deduplicated admin boundary lines |
Installation
Install with uv, pip/pipx, conda or Homebrew:
uv tool install topo-tools # CLI
uv add topo-tools # Python library
pip install topo-tools # CLI or library
pipx install topo-tools # CLI
conda install -c conda-forge topo-tools # CLI or library, recommended on Windows
brew install OCHA-DAP/topo-tools/topo-tools # macOS/Linux, no Python tooling
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.
Metadata
Release files for topo-tools 0.15.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 |
|---|---|---|---|---|
| topo_tools-0.15.0.tar.gz | 8.8 MB | With provenance | Details for topo_tools-0.15.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| topo_tools-0.15.0-py3-none-any.whl | Python 3 | none | any | Details for topo_tools-0.15.0-py3-none-any.whl |
Total release size: 9.0 MB
Release files / topo_tools-0.15.0.tar.gz
| Download URL | topo_tools-0.15.0.tar.gz |
|---|---|
| Size | 8.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0e3169bdbcf1026637803287ea13ab1d5bb4e233682d0e593748a98e6e90f67
|
|
BLAKE2b-256 checksum How to use checksums |
d21e4504dfe89271e27ef33e0d1bcc6544554b6f5eecb3ae7b9338c76e21f9b6
|
| 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 5, 2026.
Transparency logRelease files / topo_tools-0.15.0-py3-none-any.whl
| Download URL | topo_tools-0.15.0-py3-none-any.whl |
|---|---|
| Size | 237.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0929ae683c565d629f2e72888c7a51d87b6292f20064a06d1460b3fb9bf077f
|
|
BLAKE2b-256 checksum How to use checksums |
b936331b243f1eb69ccc42fd7c184b0993ddbc4a0400ed2f1738f38f065b5129
|
| 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 5, 2026.
Transparency logSecurity for topo-tools 0.15.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for topo_tools-0.15.0.tar.gz
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 5, 2026.
Transparency logA 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.