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, Australia, 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; Australia is one nationwide sheet. Client update required: use 0.8.0, 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.8.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.8.0
File Size Uploaded Provenance Actions
gridpin-0.8.0.tar.gz 533.4 kB With provenance Details for gridpin-0.8.0.tar.gz

Built distributions (wheels)

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

Total release size: 8.3 MB

Release files / gridpin-0.8.0.tar.gz

Download URL gridpin-0.8.0.tar.gz
Size 533.4 kB
Tags Source
SHA-256 checksum
How to use checksums
94b257f833cebfe30e74cd36d9fc1380060c64fc1be5baa09ab3cd8d07ea4cb1
BLAKE2b-256 checksum
How to use checksums
ebea81141f744472ac12df2e05cb59d5c11a7fe83387698bb4188797a262efa6
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 6, 2026.

Transparency log

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

Download URL gridpin-0.8.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
6b8a1dbd6eaabc407e46777c737c8fb548e3eb206df9674a9fec9999c7b7b2c3
BLAKE2b-256 checksum
How to use checksums
e2cb91efec5f33ff88951151e0b38b6e1ee711b98f418bf11c62d266b1213d34
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 6, 2026.

Transparency log

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

Download URL gridpin-0.8.0-cp39-abi3-manylinux_2_39_x86_64.whl
Size 1.4 MB
Tags CPython 3.9 Linux glibc 2.39+ x86-64 abi3
SHA-256 checksum
How to use checksums
691934aaf3497063a5ca1f8af550ea8136003bd537c2c3db25db4858b39c8186
BLAKE2b-256 checksum
How to use checksums
4543da2dabe80369b9088dbccb7e36f3c4e3bfb541e49fa6467a2e08a153e921
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 6, 2026.

Transparency log

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

Download URL gridpin-0.8.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.4 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
ade42e6b75a324bb5ee1c1e757cf827f502a7c125cabc6924b41ea8fde4d2d48
BLAKE2b-256 checksum
How to use checksums
854e5fbbae1ac41f20d08d3f2e6814a19b7936f73afb05683b9e013f9b5eac70
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 6, 2026.

Transparency log

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

Download URL gridpin-0.8.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
80a88b2af074c8ce773368306a154fa58e0c95ec2810050a0d78d0c8cdd93a5b
BLAKE2b-256 checksum
How to use checksums
d3b680b0d796a183e099d0ab29219c287a4963b889c6ee31ba9a76caebd794e0
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 6, 2026.

Transparency log

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

Download URL gridpin-0.8.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
55734bf8430cd344afcff63f3d96e0a7606c0f22ca38cdbac0aeb3d7ed2908f7
BLAKE2b-256 checksum
How to use checksums
20468aea6bb95811f30ac73edddd142f410e8ae0441b31ea21f5e180daef4ce0
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 6, 2026.

Transparency log

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

Download URL gridpin-0.8.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
60d1afd9fcc130f8eb307a5395851b1226282fc22fbf7be7776a597da7c69018
BLAKE2b-256 checksum
How to use checksums
3f0251b4ed118e42b122b8e6c76fddbde9935f5c072ded485ab574484982e8ac
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 6, 2026.

Transparency log

Security for gridpin 0.8.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.8.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 6, 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