1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-01-14 18:26:28 +01:00
OpenVoiceOS/buildroot-external/board/ovos/raspberrypi/rootfs-overlay/base/home/mycroft/.local
2023-04-08 14:42:52 +02:00
..
bin Splitting the build system for base and gui images 2023-04-08 14:42:52 +02:00
include/h3 Splitting the build system for base and gui images 2023-04-08 14:42:52 +02:00
lib Splitting the build system for base and gui images 2023-04-08 14:42:52 +02:00
src/h3lib Splitting the build system for base and gui images 2023-04-08 14:42:52 +02:00
CHANGELOG.md Splitting the build system for base and gui images 2023-04-08 14:42:52 +02:00
CMakeLists.txt Splitting the build system for base and gui images 2023-04-08 14:42:52 +02:00
LICENSE Splitting the build system for base and gui images 2023-04-08 14:42:52 +02:00
makefile Splitting the build system for base and gui images 2023-04-08 14:42:52 +02:00
pyproject.toml Splitting the build system for base and gui images 2023-04-08 14:42:52 +02:00
readme.md Splitting the build system for base and gui images 2023-04-08 14:42:52 +02:00
requirements.in Splitting the build system for base and gui images 2023-04-08 14:42:52 +02:00
setup.py Splitting the build system for base and gui images 2023-04-08 14:42:52 +02:00
setup.pyc Splitting the build system for base and gui images 2023-04-08 14:42:52 +02:00

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.

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'}