Installation¶
Core Install¶
This installs the geometry and results export pipeline. No DuckDB, PostGIS, or PMTiles extras needed for basic use.
Full Install (All Extras)¶
Includes DuckDB, PostGIS (SQLAlchemy + psycopg v3), and rasterio.
Using uv (recommended, 10-100x faster):
Install Specific Extras¶
pip install "hms2cng[duckdb]" # DuckDB SQL analytics
pip install "hms2cng[postgis]" # PostGIS sync
pip install "hms2cng[pmtiles]" # rasterio (PMTiles pipeline also needs external CLIs)
Dev Install from Source¶
PMTiles External CLI Tools¶
The hms2cng pmtiles command requires two external CLI tools (not available via pip):
- tippecanoe — Generates MBTiles from GeoJSON
- pmtiles — Converts MBTiles to PMTiles
Install via conda-forge:
Or download binaries from protomaps releases.
Requirements¶
- Python >= 3.10
- hms-commander — installed automatically as a dependency
- Core: pandas, geopandas, pyarrow, typer, rich