gridpin 0.5.0

Offline forward and reverse geocoder: one memory-mapped file per country, no server, no API key
Documentation

GridPin

PyPI crates.io DuckDB community extension MCP server License: Apache-2.0 CI Open in Colab Live demo

Offline forward and reverse geocoding from a memory-mapped country file. Off the grid. On the grid.

No server, no database import, no per-request fees, and every geocoding query stays on your machine. After you install the package and download a sheet, GridPin makes no network requests.

pip install --upgrade gridpin==0.5.0

The wheel contains the engine, not the data: download a country sheet separately. Free static sheets for the United States, Germany, France, Italy, Spain, the Netherlands, Brazil and Serbia are listed at https://gridpin.dev/docs#delivery — no account, no key, no sign-up.

One command does the download and the check: pip install gridpin-mcp, then gridpin-fetch fr puts the France sheet in ~/.cache/gridpin and verifies it against the signed release; from Python, gridpin_mcp.sheets.download("fr") returns the same path. The same package is an MCP server for AI agents (uvx gridpin-mcp).

The United States is one nationwide sheet: point addresses in 35 states, Census address ranges elsewhere. Germany covers 15 of 16 Länder; Bavaria is not covered. Spain covers all 52 postal provinces; Brazil is one nationwide sheet. Client update required: use 0.5.0, because older engines have no US rules.

import gridpin

g = gridpin.Geocoder("france.bin")
g.geocode("8 Boulevard du Port, Amiens", 1)
g.reverse(49.8945, 2.2949, 1)

# optional POI layer (cascade built in: address index first,
# POI only on weak results, exact addresses never overridden)
g = gridpin.Geocoder("france.bin", poi="fr_poi.bin")

If GridPin is useful to you, a star on GitHub helps other people find it.

Three limits worth knowing before you build on this: