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.9.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.9.0
File Size Uploaded Provenance Actions
gridpin-0.9.0.tar.gz 770.7 kB With provenance Details for gridpin-0.9.0.tar.gz

Built distributions (wheels)

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

Total release size: 11.5 MB

Release files / gridpin-0.9.0.tar.gz

Download URL gridpin-0.9.0.tar.gz
Size 770.7 kB
Tags Source
SHA-256 checksum
How to use checksums
efe7ddaee1274f848a654092aa01de86f859395a1605d9b97cf85f551b4475cc
BLAKE2b-256 checksum
How to use checksums
973c68f5b5597b60ddba1ad53c317be8552d8a099848a316ae9df00c302837b2
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 13, 2026.

Transparency log

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

Download URL gridpin-0.9.0-cp39-abi3-win_amd64.whl
Size 1.7 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6790f739ddb50e9fe962e44b54aaa38c24f74169c2613b2743745b09d4f0dd30
BLAKE2b-256 checksum
How to use checksums
04a225d0643246d58c62775df6041734c2f223fc7bde4061c5e54f19fd4da855
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 13, 2026.

Transparency log

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

Download URL gridpin-0.9.0-cp39-abi3-manylinux_2_39_x86_64.whl
Size 1.9 MB
Tags CPython 3.9 Linux glibc 2.39+ x86-64 abi3
SHA-256 checksum
How to use checksums
c5edb2722227adaf32759c28e3fd87ad27dcfaa232a5f29471595ae86055be41
BLAKE2b-256 checksum
How to use checksums
4978c6bdecd7253b6b1cb8e323165c3e702bfa4fbe65bd59afd13bd29eea451d
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 13, 2026.

Transparency log

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

Download URL gridpin-0.9.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.9 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
0390fdfcab040cc332bb17da25fead098557b2e50c4f8a493fd77bb7edf8de4d
BLAKE2b-256 checksum
How to use checksums
a049eb172d9107b50db2f6f8f52e31c098e30b8faac81c06acf3de3110b1fbe5
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 13, 2026.

Transparency log

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

Download URL gridpin-0.9.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.8 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
37a200c9e05b651351acb3bfadfe93595d8a6f968091a7f2c5f6cdb526544b78
BLAKE2b-256 checksum
How to use checksums
58c4102d4f69620372115f4f138ea6f5e1782be49d1815fc6a7170d4ff743713
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 13, 2026.

Transparency log

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

Download URL gridpin-0.9.0-cp39-abi3-macosx_11_0_arm64.whl
Size 1.7 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ece3942349d44f0c82976f4791f059fa08277b0efab839a98af9f4723de1c55a
BLAKE2b-256 checksum
How to use checksums
86b323db1288419b327da3bd191e6c2b881ab52cbb5b252c00e54c9e7bf40886
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 13, 2026.

Transparency log

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

Download URL gridpin-0.9.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 1.8 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8b018602971657ef729979d6810e9697b1b2efcabf825d98023123dc3f881420
BLAKE2b-256 checksum
How to use checksums
08522d47a4be1fbc0ad4e3a91fd0fe304684cd15f367e04353fed72c551c53b0
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 13, 2026.

Transparency log

Security for gridpin 0.9.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.9.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 13, 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