Skip to main content

Hierarchical hexagonal geospatial indexing system

Project description

H3 Logo

h3-py

PyPI version version version

CI-linux CI-macos CI-windows codecov

Python bindings for the H3 Core Library.

For API reference, please see the H3 Documentation.

NOTE: This version (v.3.6.1) corresponds to the new Cython bindings, which will replace the old bindings (v3.4.3). This version is not yet published to PyPI.

Install from PyPI

TODO: instructions for installing from pre-built wheels

Install from GitHub

You need to have cc, make, cmake, and git in your $PATH when installing this package.

Then run:

pip install git+https://github.com/uber/h3-py.git

Try the library with:

>>> import h3
>>> h3.geo_to_h3(0, 0, 0)
'8075fffffffffff'

NumPy support

h3 has no runtime dependencies on other libraries, so a standard pip install will install no additional libraries.

The optional h3.api.numpy_int API requires numpy. To have numpy installed (if it isn't already) along with h3, run:

pip install git+https://github.com/uber/h3-py.git[numpy]

or

pip install git+https://github.com/uber/h3-py.git[all]

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 a simple walkthrough of the API. For more information, please see the H3 Documentation.

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.6.1a5.tar.gz (17.0 MB view hashes)

Uploaded Source

Built Distributions

h3-3.6.1a5-cp38-cp38-win_amd64.whl (473.8 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

h3-3.6.1a5-cp38-cp38-manylinux2010_x86_64.whl (660.2 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

h3-3.6.1a5-cp38-cp38-macosx_10_9_x86_64.whl (562.8 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

h3-3.6.1a5-cp37-cp37m-win_amd64.whl (468.1 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

h3-3.6.1a5-cp37-cp37m-manylinux2010_x86_64.whl (651.2 kB view hashes)

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

h3-3.6.1a5-cp37-cp37m-macosx_10_9_x86_64.whl (565.4 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

h3-3.6.1a5-cp36-cp36m-win_amd64.whl (468.1 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

h3-3.6.1a5-cp36-cp36m-manylinux2010_x86_64.whl (651.8 kB view hashes)

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

h3-3.6.1a5-cp36-cp36m-macosx_10_9_x86_64.whl (565.2 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

h3-3.6.1a5-cp35-cp35m-win_amd64.whl (464.7 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

h3-3.6.1a5-cp35-cp35m-manylinux2010_x86_64.whl (648.4 kB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

h3-3.6.1a5-cp35-cp35m-macosx_10_9_x86_64.whl (559.1 kB view hashes)

Uploaded CPython 3.5m macOS 10.9+ x86-64

h3-3.6.1a5-cp27-cp27m-macosx_10_9_x86_64.whl (576.0 kB view hashes)

Uploaded CPython 2.7m 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