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 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:

Metadata

Release files for gridpin 0.7.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.7.0
File Size Uploaded Provenance Actions
gridpin-0.7.0.tar.gz 514.7 kB With provenance Details for gridpin-0.7.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for gridpin 0.7.0
File Actions
gridpin-0.7.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for gridpin-0.7.0-cp39-abi3-win_amd64.whl
gridpin-0.7.0-cp39-abi3-manylinux_2_39_x86_64.whl CPython 3.9 abi3 Linux glibc 2.39+ x86-64 Details for gridpin-0.7.0-cp39-abi3-manylinux_2_39_x86_64.whl
gridpin-0.7.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.7.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
gridpin-0.7.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for gridpin-0.7.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
gridpin-0.7.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for gridpin-0.7.0-cp39-abi3-macosx_11_0_arm64.whl
gridpin-0.7.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for gridpin-0.7.0-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 8.1 MB

Release files / gridpin-0.7.0.tar.gz

Download URL gridpin-0.7.0.tar.gz
Size 514.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cb144a566323c62db7ff823d293d45e0663ec7ec55f16681c1a32b11ab942f08
BLAKE2b-256 checksum
How to use checksums
719f891071e4643eebf97a75c18582beca2963575a1841797e9a490399fef46a
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 2, 2026.

Transparency log

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

Download URL gridpin-0.7.0-cp39-abi3-win_amd64.whl
Size 1.2 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
59bbb7874213065feb52979e2655bcac9d03a506a4ab8c8d903972173f434b74
BLAKE2b-256 checksum
How to use checksums
be02be3502bacdef1a2a21723384eb9d34f6733bc6ca778760400cefe2b2747a
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 2, 2026.

Transparency log

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

Download URL gridpin-0.7.0-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
e7bca9dd0ffc3cda8cf14099cdddcda23d44c045329fbf6fba1a97279c26569d
BLAKE2b-256 checksum
How to use checksums
98e9eb6673a34f1e8b5a38563c09344f801f5ad491e0a169396cc6b82bc6c2b0
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 2, 2026.

Transparency log

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

Download URL gridpin-0.7.0-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
394ce3e947f851decaaf4c14464fd21d30ed45cf25e9f014baa5704a3ff8a5ad
BLAKE2b-256 checksum
How to use checksums
8f25bce3b62ace6cdc52067729ec3700ae029c4e2dbab68cd2938dad31893266
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 2, 2026.

Transparency log

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

Download URL gridpin-0.7.0-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
a701e2d3efe5bdf1af4c3b36d80883861c40a75df10d80b285a44d14d9e53569
BLAKE2b-256 checksum
How to use checksums
dd72cdafc096a43ef4a65f1815a336d5631cb8a6366c1799244ea10a27210d80
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 2, 2026.

Transparency log

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

Download URL gridpin-0.7.0-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
fd27152ba2249727b84fa420e070c9435e6c365fb19a72e7fc6f2e5f5c334c3b
BLAKE2b-256 checksum
How to use checksums
c20bf7c7618a1e47a2b838fe1095aaef66d1e3214b1d46598983b885593fe3ab
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 2, 2026.

Transparency log

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

Download URL gridpin-0.7.0-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
4c2ce703bda5b7d3393e2b91f7c711aca853287542ae4da3843b28b8ff3fd63d
BLAKE2b-256 checksum
How to use checksums
a8b91fbbb866a48d55f6e0944049ede4392fb11d2622bf029cdfb0a26fb97e64
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 2, 2026.

Transparency log

Security for gridpin 0.7.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.7.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 2, 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.

Release history Release notifications | RSS feed

This release

0.7.0 This release

7 release files Full provenance

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