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.2.0
The wheel contains the engine, not the data: download a country sheet separately. Free static sheets for France, Germany, Italy, the Netherlands and Serbia are listed at https://gridpin.dev/docs.html#delivery — no account, no key, no sign-up.
Germany covers 15 of 16 Länder; Bavaria is not covered. Client update required: use 0.2.0, because the 0.1.0 engine has no German rules. The 0.2.0 release is being prepared; these instructions are not proof of publication.
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")
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.html
-
Quality benchmark, including where other geocoders score higher: https://gridpin.dev/bench.html
-
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.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gridpin-0.3.0-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| gridpin-0.3.0-cp39-abi3-manylinux_2_34_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.34+ x86-64 | Details |
| gridpin-0.3.0-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 2.5 MB
Release files / gridpin-0.3.0-cp39-abi3-win_amd64.whl
| Download URL | gridpin-0.3.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 746.0 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
20d9853e6a20d2021cf5862bf4a510454defe94dfd8ffc9f7f2c9f9a4c7d963a
|
|
BLAKE2b-256 checksum How to use checksums |
dbb63b54e33459a689ecc23abdcb92302a3add58d0b81dad48a1f487305d6086
|
| 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 Sep 28, 2026.
Transparency logRelease files / gridpin-0.3.0-cp39-abi3-manylinux_2_34_x86_64.whl
| Download URL | gridpin-0.3.0-cp39-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 914.2 kB |
| Tags | CPython 3.9 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
f61346857ffaaa1a5f453088f2e07e68ccd81c39f8171ee60dfd826ef9cba0e8
|
|
BLAKE2b-256 checksum How to use checksums |
233e48674ee14d34107a05871b0c24a90fcd8a5e867050b048e444783aca4a28
|
| 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 Sep 28, 2026.
Transparency logRelease files / gridpin-0.3.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | gridpin-0.3.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 831.7 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f7566ce8daa2c55fbcd0d8e3641cf5bbf49db0bfef66d4185f584ad6ec4cc539
|
|
BLAKE2b-256 checksum How to use checksums |
967f53bc110715696f5ffebbf31f3a4fb849c7b5f2267e70d0d721e784eaee24
|
| 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 Sep 28, 2026.
Transparency log