GridPin
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, Canada, Germany, France, Italy, Spain, Mexico, 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).
With pandas: pip install "gridpin[pandas]", then gridpin.sheets.fetch("us"),
gridpin.geocode_df(df, "address", "us") (or df.gridpin.geocode(...)) and gridpin.reverse_df(df, "us"); the
gp_* columns are the same as in gridpin batch CSV and gp_geocode_df in R. gridpin.sheets.list / path / verify / fetch use the same cache and checks as gridpin sheets. Extras [pandas], [geopy]; without them the wheel still has
no dependencies.
The United States is one nationwide sheet: point addresses in 35 states, Census address ranges elsewhere; Canada is one nationwide sheet (all provinces and territories). Germany covers 15 of 16 Länder; Bavaria is not covered. Spain covers all 52 postal provinces; Brazil is one nationwide sheet; Mexico is one nationwide sheet. Client update required: use 0.7.0, because older engines have no Mexican 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:
-
Reverse returns the nearest indexed address — or a street-centroid approximation — together with
distance_m. It is not a rooftop fix. -
Speed: exact lookups run at ~3,000/s, measured on the France sheet and a single arm64 laptop core. Typo-tolerant fuzzy matching is much slower (tens of ms/query) — use
geocode_many()to batch. -
POI is France-only today and opt-in. Address lookup is the core product; the POI layer is younger and never overrides an exact address match.
-
Country files & docs: https://gridpin.dev/docs
-
Quality benchmark, including where other geocoders score higher: https://gridpin.dev/bench
-
Engine license: Apache-2.0. Data files carry their own source licenses — see https://github.com/gridpin/gridpin/blob/main/ATTRIBUTIONS.md
Metadata
Release files for gridpin 0.7.1
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 |
|---|---|---|---|---|
| gridpin-0.7.1.tar.gz | 514.9 kB | With provenance | Details for gridpin-0.7.1.tar.gz |
Built distributions (wheels)
Total release size: 8.1 MB
Release files / gridpin-0.7.1.tar.gz
| Download URL | gridpin-0.7.1.tar.gz |
|---|---|
| Size | 514.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed87798b0b4f3701e946c402c6ec6dcb08af4a0a968857274f93fa6c19a7fb07
|
|
BLAKE2b-256 checksum How to use checksums |
df465fef5c8b7963441eeeba7df6348a67052990eafb4405e2cbe3c9b911ac6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Nov 3, 2026.
Transparency logRelease files / gridpin-0.7.1-cp39-abi3-win_amd64.whl
| Download URL | gridpin-0.7.1-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
91fdd810e0d0eb667a5e5786cc0aea95a5f73ec0ffe9be991d7bdc679cecf00e
|
|
BLAKE2b-256 checksum How to use checksums |
244dacdd9adbf1bd1621c7c0314d5df80071762a054a435254013c6236ed45d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Nov 3, 2026.
Transparency logRelease files / gridpin-0.7.1-cp39-abi3-manylinux_2_39_x86_64.whl
| Download URL | gridpin-0.7.1-cp39-abi3-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.9 Linux glibc 2.39+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
f41d385aa561a5d0d9456141821831074758521ff16f40e1d1433375c3659ab9
|
|
BLAKE2b-256 checksum How to use checksums |
3a5ca3c325b22a4e44f3043310a581f848a56990cba5f07f35ccb43e4e8ad844
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Nov 3, 2026.
Transparency logRelease files / gridpin-0.7.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | gridpin-0.7.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
6946fbb7d0dc1f8ef09ab257804cffb82269704dc7a65610502a95f54e6a03ec
|
|
BLAKE2b-256 checksum How to use checksums |
5209cd22f611a342e3cb5ada35ef2409f2b2ccc1f59fc9d0eca52a24be75a944
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Nov 3, 2026.
Transparency logRelease files / gridpin-0.7.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | gridpin-0.7.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
4661960d155d98373a7e0cfcf1ceea17f4790eb6800697c2a5aec5d64c4eab0c
|
|
BLAKE2b-256 checksum How to use checksums |
5e4c5b8634e37d6480db2f2baf44c8709ae6b80a12b33f47c3a4533e085cee32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Nov 3, 2026.
Transparency logRelease files / gridpin-0.7.1-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | gridpin-0.7.1-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d18ebde700af99dd16ffc4b200dd4805b60b87116127d5f77ec461a508bbde0a
|
|
BLAKE2b-256 checksum How to use checksums |
4987002a6eef77b352e60ab1755d570a9dda96033a67ac0ecd6b1c3177fecf1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Nov 3, 2026.
Transparency logRelease files / gridpin-0.7.1-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | gridpin-0.7.1-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
365008b252dccef2f559316d2607604612c0cce0d8dc8ecd83ae6adb26fb22d3
|
|
BLAKE2b-256 checksum How to use checksums |
70267f3f894f688c3985e072637df543c8ecbbe9846ce42c5716bbe66970bbbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Nov 3, 2026.
Transparency logSecurity for gridpin 0.7.1
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 7 files in this release have been uploaded with provenance metadata.
Attestation for gridpin-0.7.1.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 Nov 3, 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.