Skip to main content

GridPin

PyPI crates.io DuckDB community extension MCP server License: Apache-2.0 DOI 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 Australia, Brazil, Canada, France, Germany, Italy, Mexico, the Netherlands, New Zealand, Poland, Serbia, Spain and the United States 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 all 16 Länder; Bavaria has no postcodes. Spain covers all 52 postal provinces; Brazil is one nationwide sheet; Mexico is one nationwide sheet; Australia is one nationwide sheet. Client update required: use 0.8.0 or newer, because older engines have no Australian 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:

Metadata

Release files for gridpin 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gridpin 0.10.0
File Size Uploaded Provenance Actions
gridpin-0.10.0.tar.gz 948.4 kB With provenance Details for gridpin-0.10.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for gridpin 0.10.0
File Actions
gridpin-0.10.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for gridpin-0.10.0-cp39-abi3-win_amd64.whl
gridpin-0.10.0-cp39-abi3-manylinux_2_39_x86_64.whl CPython 3.9 abi3 Linux glibc 2.39+ x86-64 Details for gridpin-0.10.0-cp39-abi3-manylinux_2_39_x86_64.whl
gridpin-0.10.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for gridpin-0.10.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
gridpin-0.10.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for gridpin-0.10.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
gridpin-0.10.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for gridpin-0.10.0-cp39-abi3-macosx_11_0_arm64.whl
gridpin-0.10.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for gridpin-0.10.0-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 12.6 MB

Release files / gridpin-0.10.0.tar.gz

Download URL gridpin-0.10.0.tar.gz
Size 948.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4d181561cc81da81c17952372ab636c9d76bf24dc208ec77059e7136c535baa6
BLAKE2b-256 checksum
How to use checksums
e9e276f630b1c5b6601de9483ed67685cc8823174f6adfeefe14726203f224e8
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 22, 2026.

Transparency log

Release files / gridpin-0.10.0-cp39-abi3-win_amd64.whl

Download URL gridpin-0.10.0-cp39-abi3-win_amd64.whl
Size 1.8 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
1026314c2dac7091f574db28826cbf5f7da166540c6a5eae4606086138ae5dff
BLAKE2b-256 checksum
How to use checksums
ed777e33033d9cc9e324f29187022c0f03fb0883230d1cf3a3386642c8bf5127
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 22, 2026.

Transparency log

Release files / gridpin-0.10.0-cp39-abi3-manylinux_2_39_x86_64.whl

Download URL gridpin-0.10.0-cp39-abi3-manylinux_2_39_x86_64.whl
Size 2.0 MB
Tags CPython 3.9 Linux glibc 2.39+ x86-64 abi3
SHA-256 checksum
How to use checksums
9cf42e2cf9be0682c88fcd4f0638ec407f6e84e120e39e09207d4de10d30da6e
BLAKE2b-256 checksum
How to use checksums
149deb9b7f10fb6f484332f9f8b86204aa42649d00b12f6143923521c46b70ca
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 22, 2026.

Transparency log

Release files / gridpin-0.10.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL gridpin-0.10.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.0 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
ecda2158855cdfd2d9ab58b20d058bbc8b1355a1bafe64d5f9e3d3de32798ec0
BLAKE2b-256 checksum
How to use checksums
3bcd6f2f7311cb0a0edbf0d3ec1d7261c47c5d8ada9087adf754ec8043ccd04d
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 22, 2026.

Transparency log

Release files / gridpin-0.10.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL gridpin-0.10.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 2.0 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
622f38821b79d6b3e42fa0aec7e60018872740dc1e444e3b793b301eaaf1c92b
BLAKE2b-256 checksum
How to use checksums
cd8462478d3d26a19ac35cb723ca421e8ba5e748ae08dd867064b4ae2e48009d
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 22, 2026.

Transparency log

Release files / gridpin-0.10.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL gridpin-0.10.0-cp39-abi3-macosx_11_0_arm64.whl
Size 1.9 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ecc7d98cb374869c3f57cc047f93b77f0ccd722f15b761acc57a2ee086b0e6da
BLAKE2b-256 checksum
How to use checksums
59c2f766b091844c5d26181b08b90656094115360af6493c8278cf9ce29f1f07
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 22, 2026.

Transparency log

Release files / gridpin-0.10.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL gridpin-0.10.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 1.9 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
1c5ff780359d28db03b4fe577d85c03d03c6b12afd85b9f5cc7080b72e1044c9
BLAKE2b-256 checksum
How to use checksums
cd930a655cd55de0fac4f641f83680ff9b9a280013a09023bf05f15fe1974848
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 22, 2026.

Transparency log

Security for gridpin 0.10.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 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for gridpin-0.10.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 Nov 22, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page