py-geohex3
geohex v3.2 python implementation
Decision gist · record as of 2026-08-14
Yes, if you specifically need Geohex v3.2 encoding/decoding and are comfortable with an unmaintained package. The library is simple, dependency-free, and has no known vulnerabilities. Test compatibility with your Python version first, as classifiers only list through Python 3.6. If you need active maintenance or support for newer Python versions, consider whether an alternative spatial indexing library might be a better fit.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Package classifiers indicate support only through Python 3.6; compatibility with Python 3.7+ is unverified.
- Installation is frictionless with no runtime dependencies.
- However, the package is abandoned—last release was 2017-04-17, with no commits since 2021-04-29.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), so you may use, modify, and distribute the package freely in commercial and private projects with minimal restrictions.
last release 2017-04-17 (3406 days) · last repo commit 2021-04-29 · 16 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 133,901 downloads/mo, #11,493 on PyPI
Alternatives
Verify before relying
pip install py-geohex3
# Encode: latitude, longitude, precision → zone code
zone = get_zone_by_location(35.65858, 139.745433, 11)
print(zone.code) # 'XM48854457273'
# Decode: zone code → latitude, longitude
zone = get_zone_by_code('XM48854457273')
print(zone.lat, zone.lon) # (35.658618718910624, 139.74540917994662)- Whether the package works reliably on Python 3.7+ despite classifiers listing only through 3.6
- Whether Geohex v3.2 is the current standard or if a newer version exists that this package does not implement
- Real-world compatibility reports from users running this on modern Python versions
What it is and what it does
py-geohex3 is a Python implementation of the Geohex v3.2 spatial indexing system, which encodes geographic locations into compact alphanumeric codes and decodes those codes back to coordinates. It provides two main functions: converting a latitude/longitude pair and precision level into a zone code, and converting a zone code back into its approximate center coordinates. The package has no external dependencies and installs as a pure Python wheel.
Geohex is used in GIS applications where you need to index, query, or group locations by geographic proximity. The zone code acts as a hierarchical spatial hash—different precision levels produce codes of different granularity, allowing you to cluster nearby points or perform efficient spatial lookups. The package is marked stable but is no longer maintained, and its Python version support is dated.
Use it for
- Index geographic locations in a database by zone code for efficient spatial range queries
- Group nearby GPS coordinates into the same hex zone for clustering or aggregation tasks
- Convert lat/lon pairs to compact, shareable location identifiers for mapping applications
- Implement spatial partitioning for load-balancing or data distribution across geographic regions
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you specifically need Geohex v3.2 encoding/decoding and are comfortable with an unmaintained package.
The library is simple, dependency-free, and has no known vulnerabilities. Test compatibility with your Python version first, as classifiers only list through Python 3.6. If you need active maintenance or support for newer Python versions, consider whether an alternative spatial indexing library might be a better fit.
Install
py-geohex3 on PyPI
Before you install
Installation is frictionless with no runtime dependencies. However, the package is abandoned—last release was 2017-04-17, with no commits since 2021-04-29. It targets Python 2.7 and early Python 3 versions, which may cause compatibility issues with modern Python environments.
Package classifiers indicate support only through Python 3.6; compatibility with Python 3.7+ is unverified.
License in practice
Licensed under MIT (permissive), so you may use, modify, and distribute the package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install py-geohex3
# Encode: latitude, longitude, precision → zone code
zone = get_zone_by_location(35.65858, 139.745433, 11)
print(zone.code) # 'XM48854457273'
# Decode: zone code → latitude, longitude
zone = get_zone_by_code('XM48854457273')
print(zone.lat, zone.lon) # (35.658618718910624, 139.74540917994662)
Verify before relying
- Whether the package works reliably on Python 3.7+ despite classifiers listing only through 3.6
- Whether Geohex v3.2 is the current standard or if a newer version exists that this package does not implement
- Real-world compatibility reports from users running this on modern Python versions
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 3,406 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 133,901 / month, #11,493 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: Scientific/Engineering :: GIS |
Evidence: py_geohex3-1.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “geohex encoding decoding”
- py-geohex3Converts between geographic coordinates (latitude/longitude) and…
- basesProvides customizable Base-N encoding and decoding for common styles…
- base2048Encodes and decodes binary data using Base2048, a character encoding…
Give your agent the search over MCP, or paste the wish link into any chat.
More GIS packages
Shapely provides Python tools for creating, manipulating, and analyzing 2D geometric objects (points, lines, polygons) using the GEOS library, with both scalar and vectorized NumPy-based operations.
pyproj provides a Python interface to PROJ, enabling cartographic projections and coordinate system transformations for geospatial applications.
GeoPandas extends pandas DataFrames to handle geographic data, combining pandas operations with shapely geometry and spatial analysis capabilities that would otherwise require a spatial database.
Install it if you work with geographic data in Python and want to avoid setting up a spatial database or learning a separate GIS tool.
geopy is a Python client for geocoding and distance calculation that converts addresses to coordinates and vice versa using multiple web-based geocoding services, and computes geodesic and great-circle distances between geographic points.
Install it if you need geocoding or distance calculations in your application.
Pyogrio provides fast, bulk-oriented read and write access to vector spatial data formats (Shapefile, GeoPackage, GeoJSON, etc.) via GDAL/OGR bindings, typically for use with GeoPandas GeoDataFrames.
h3 provides Python bindings to Uber's H3 geospatial indexing library, converting geographic coordinates into hierarchical hexagonal grid cells and performing spatial operations on them.
See also pygeohash · walkscore-api · geolib · geohash2 · placekey · utm · s2sphere · rtree · python-geohash