indian-pincode-geo
Geo companion for indian-pincode: post offices, coordinates, nearby search, and
reverse lookup. Offline, no runtime network calls. Depends on indian-pincode (exact
same version). Importing it also enables indian_pincode.lookup(...) etc.
Requires Python >=3.10. Install via the core extra: pip install "indian-pincode[geo]".
Usage
import indian_pincode_geo as geo
offices = geo.lookup("110001")
print(offices[0]["office_name"]) # New Delhi GPO
print(offices[0]["office_type"]) # HO
nearby = geo.find_nearby(28.6304, 77.2177, radius_km=2)
print(nearby[0]["office_name"]) # Connaught Place SO
- Result keys are snake_case:
pincode, office_name, office_type, delivery_status, district, state, state_source, latitude, longitude, geo_quality(anddistance_kmfromfind_nearby). find_nearby(lat, lon, radius_km=5, limit=20, include_suspect=False)returns offices sorted by distance.reverse_lookup(lat, lon)returns the nearest pincode centroid{pincode, distance_km}.get_centroid(pin)returns{latitude, longitude}.
Data quality
India Post coordinates are approximate. The pipeline flags points that are far from
their pincode's cluster as geo_quality == "suspect" — about 6.5% of offices — and
find_nearby/reverse_lookup exclude them by default. Pass include_suspect=True to
include them. About 8.4% of offices have no usable coordinates after cleaning. Full stats:
data/REPORT.md.
License
- Code: MIT.
- Data: derived from India Post / data.gov.in under GODL-India (attribution required) — see DATA_LICENSE.md.
Metadata
Release files for indian-pincode-geo 2.0.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 | |
|---|---|---|---|
| indian_pincode_geo-2.0.0.tar.gz | 4.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| indian_pincode_geo-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 MB
Release files / indian_pincode_geo-2.0.0.tar.gz
| Download URL | indian_pincode_geo-2.0.0.tar.gz |
|---|---|
| Size | 4.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3de43893fbdf438cae9a43e83b0c01ad7022ada124d1d9e16bf4e74eb9908eb0
|
|
BLAKE2b-256 checksum How to use checksums |
87ccbf22cea8debfc95a63754749f1b339133e200dc3329bc481d570f6988040
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 19, 2026.
Transparency logRelease files / indian_pincode_geo-2.0.0-py3-none-any.whl
| Download URL | indian_pincode_geo-2.0.0-py3-none-any.whl |
|---|---|
| Size | 4.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68302abbe2ec8a8572d2297e0d5209885866546d785d8e95228deadc58da8d05
|
|
BLAKE2b-256 checksum How to use checksums |
1e30a10b940c5d214eec981df0e1c46bb27a6f1ff23a74a4b301659db2a16ebd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 19, 2026.
Transparency log