gridpin-photos
Nothing leaves your machine. The GPS point of each photo is read on this computer and looked up in a GridPin file on this computer; no address, point or photo is sent anywhere.
gridpin-photos writes a caption of place for every photo of a folder — street, town, region, and how far the nearest
address is — into a CSV beside the photos, and, if asked, an .xmp sidecar per photo that photo managers read. The
photos themselves are only read, never written.
pip install "gridpin-photos @ git+https://github.com/gridpin/gridpin@v0.10.0#subdirectory=integrations/photos"
python -c 'import gridpin; print(gridpin.sheets.fetch("fr"))' # the country file, once
gridpin-photos ~/Pictures/2026-paris --sheet fr --xmp
$ gridpin-photos louvre --sheet france.bin --xmp
4 photos: 2 ok, 2 no_geotag
$ cat louvre/gridpin_places.csv
file,lat,lon,status,label,street,housenumber,place,region,postcode,distance_m
fr_27456425.jpg,,,no_geotag,,,,,,,
fr_45674879.jpg,,,no_geotag,,,,,,,
fr_53217347.jpg,48.860600,2.337638,ok,"91ba Rue de Rivoli, Paris 1er Arrondissement",Rue de Rivoli,91ba,Paris 1er Arrondissement,,75001,90
fr_53217571.jpg,48.860600,2.337638,ok,"91ba Rue de Rivoli, Paris 1er Arrondissement",Rue de Rivoli,91ba,Paris 1er Arrondissement,,75001,90
(Four photos of the Louvre from Wikimedia Commons: two carry a GPS block, two were placed on a map by hand and carry
none — no_geotag is the photo's own state, not a failure.)
| status | meaning |
|---|---|
ok |
the nearest address is close enough (150 m, --max-street-m) to name the street |
place_only |
the nearest house is farther, or the answer is weak: only the town is named — a photo from a bridge or a park does not get a street it was not taken on |
no_geotag |
no GPS position in the photo (or a block that cannot be read) |
null_island |
the position is 0, 0: what a camera without a fix writes |
no_address |
no address of the file near the point: another country, the sea |
The .xmp sidecar (IMG_0412.jpg.xmp) carries photoshop:City, photoshop:State and Iptc4xmpCore:Location; one
that is already there is never overwritten. JPEG, TIFF, HEIC/HEIF, PNG and WebP are read (exifread). One country file
per run: photos from another country come out no_address.
For a photo server (Immich, PhotoPrism, Nextcloud) there is a guide on gridpin.dev; this package is for a plain folder.
Tests
make test-photos (from code/): photos built byte by byte with GPS blocks of both hemispheres, a 0, 0 point, none,
a broken block; the run must leave every photo byte for byte as it was.
Metadata
Release files for gridpin-photos 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gridpin_photos-0.1.0.tar.gz | 12.2 kB | With provenance | Details for gridpin_photos-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gridpin_photos-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for gridpin_photos-0.1.0-py3-none-any.whl |
Total release size: 23.2 kB
Release files / gridpin_photos-0.1.0.tar.gz
| Download URL | gridpin_photos-0.1.0.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db7a12f91156b52eebd196d960720aef7db739e19a5d75bb1e6ae3d6b31b320a
|
|
BLAKE2b-256 checksum How to use checksums |
7b28ba4c77e58d3c0898a2bc62615b3870ab321dd4147979ca82c937298f4942
|
| 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 29, 2026.
Transparency logRelease files / gridpin_photos-0.1.0-py3-none-any.whl
| Download URL | gridpin_photos-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70cf81c8ed7116bcf865c52b9b064ef8b5645eb8a4983681a6fba024549aaa14
|
|
BLAKE2b-256 checksum How to use checksums |
5ea490ddd2c93dc5c9d7e82e5377f4d7a9ee692c7f727af191ee1aaa0dcb8a72
|
| 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 29, 2026.
Transparency logSecurity for gridpin-photos 0.1.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
Both files in this release have been uploaded with provenance metadata.
Attestation for gridpin_photos-0.1.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 29, 2026.
Transparency logA 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.