Skip to main content

Hierarchical hexagonal geospatial indexing system

Project description

H3 Logo

h3-py: Uber's H3 Hexagonal Hierarchical Geospatial Indexing System in Python

PyPI version PyPI downloads conda version version

Tests codecov

Python bindings for the H3 core library.

Installation

From PyPI:

pip install h3

From conda:

conda config --add channels conda-forge
conda install h3-py

Usage

>>> import h3
>>> lat, lng = 37.769377, -122.388903
>>> resolution = 9
>>> h3.geo_to_h3(lat, lng, resolution)
'89283082e73ffff'

APIs

We provide multiple APIs in h3-py.

Example gallery

Browse a collection of example notebooks, and if you have examples or visualizations of your own, please feel free to contribute!

We also have an introductory walkthrough of the API.

Versioning

h3-py wraps the H3 core library, which is written in C. The C and Python projects each employ semantic versioning, where versions take the form X.Y.Z.

The h3-py version string is guaranteed to match the C library string in both major and minor numbers (X.Y), but may differ on the patch (Z) number. This convention provides users with information on breaking changes and feature additions, while providing downstream bindings (like this one!) with the versioning freedom to fix bugs.

Use h3.versions() to see the version numbers for both h3-py and the C library. For example,

>>> import h3
>>> h3.versions()
{'c': '3.6.3', 'python': '3.6.1'}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

h3-3.7.7.tar.gz (192.2 kB view hashes)

Uploaded Source

Built Distributions

h3-3.7.7-cp312-cp312-win_amd64.whl (931.4 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

h3-3.7.7-cp312-cp312-musllinux_1_1_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

h3-3.7.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

h3-3.7.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

h3-3.7.7-cp312-cp312-macosx_11_0_arm64.whl (990.8 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

h3-3.7.7-cp312-cp312-macosx_10_9_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

h3-3.7.7-cp311-cp311-win_amd64.whl (925.6 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

h3-3.7.7-cp311-cp311-musllinux_1_1_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

h3-3.7.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

h3-3.7.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

h3-3.7.7-cp311-cp311-macosx_11_0_arm64.whl (984.4 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

h3-3.7.7-cp311-cp311-macosx_10_9_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

h3-3.7.7-cp310-cp310-win_amd64.whl (925.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

h3-3.7.7-cp310-cp310-musllinux_1_1_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

h3-3.7.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

h3-3.7.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

h3-3.7.7-cp310-cp310-macosx_11_0_arm64.whl (984.8 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

h3-3.7.7-cp310-cp310-macosx_10_9_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

h3-3.7.7-cp39-cp39-win_amd64.whl (928.1 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

h3-3.7.7-cp39-cp39-musllinux_1_1_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

h3-3.7.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

h3-3.7.7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

h3-3.7.7-cp39-cp39-macosx_11_0_arm64.whl (987.8 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

h3-3.7.7-cp39-cp39-macosx_10_9_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

h3-3.7.7-cp38-cp38-win_amd64.whl (928.4 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

h3-3.7.7-cp38-cp38-musllinux_1_1_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

h3-3.7.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

h3-3.7.7-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

h3-3.7.7-cp38-cp38-macosx_11_0_arm64.whl (985.4 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

h3-3.7.7-cp38-cp38-macosx_10_9_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

h3-3.7.7-cp37-cp37m-win_amd64.whl (927.0 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

h3-3.7.7-cp37-cp37m-musllinux_1_1_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

h3-3.7.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

h3-3.7.7-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

h3-3.7.7-cp37-cp37m-macosx_10_9_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

h3-3.7.7-cp36-cp36m-win_amd64.whl (921.8 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

h3-3.7.7-cp36-cp36m-musllinux_1_1_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ x86-64

h3-3.7.7-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

h3-3.7.7-cp36-cp36m-macosx_10_9_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page