Hierarchical hexagonal geospatial indexing system
Project description
h3-py: Uber's H3 Hexagonal Hierarchical Geospatial Indexing System in Python
Python bindings for the H3 core library.
- Documentation: uber.github.io/h3-py
- GitHub repo: github.com/uber/h3-py
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
.
- All APIs have the same set of functions; see the API reference.
- The APIs differ only in their input/output formats; see the API comparison page.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for h3-3.7.7-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ccff5f02589e80202597ed0b9f61ebd114e262e7dd0fe88059298602898192f |
|
MD5 | 66aec23cc51090bbedebfb777e7e1509 |
|
BLAKE2b-256 | 4c29f516cf77436e96bf601715c39b9f801b93889060b39428aa7056ae2d65b6 |
Hashes for h3-3.7.7-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb4a3d5e82d0c89512dc71b4eac17976a29be29da250ba76bc94bc5b9e824f0e |
|
MD5 | f9905caa9b5b0070196de072666c647c |
|
BLAKE2b-256 | f58160f8dfd21c6c00d10ea347432e9c1b1bfd8f854a3506e554f0587b59a9e7 |
Hashes for h3-3.7.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 644c3c84585aa4df62e81bc54fd305c4d6686324731de230b0ddbd7036ed172c |
|
MD5 | 628aaeb6dcd9b0bf28a8377875c96b08 |
|
BLAKE2b-256 | 3efca03291173eae24cbeda2d2660e07cf9e3694543f29c7d795e4c4cd3b5369 |
Hashes for h3-3.7.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e408342e94f558802a97bfcbe1baae2af8b1fd926ad9041d970ff9dbd0502099 |
|
MD5 | 889c444cc514ddcd85324d68a58112a1 |
|
BLAKE2b-256 | 0a08607bff5c46a58f21563301e51bda8808d81a7271dd8d83006f57d7e862ea |
Hashes for h3-3.7.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d6e38dea47c220d9802af8e8bebc806f9f39358aee07b736191ff21e2c9921d |
|
MD5 | 25b596566a8c36c9d0018ef25c0d9a92 |
|
BLAKE2b-256 | 9047138ec5a36f369c2b14df3b93fe4be7576391c79bae55b9088979ba0f9186 |
Hashes for h3-3.7.7-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51c2f63ef5a57e4b18ebc9c0eb56656433e280ec45ab487a514127bb6e7d6a1f |
|
MD5 | ddcc3de13a6ef9f0b385104279126b7e |
|
BLAKE2b-256 | 5e6f43c2a6a2bfd9fcc058b124500907f258ca8f81dbad268f001243e4a0fa70 |
Hashes for h3-3.7.7-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 836e74313ff55324485cd7e07783bc67df3191ec08a318035d7cd8ee0b0badab |
|
MD5 | 03473490f2bb102780844da126f391d8 |
|
BLAKE2b-256 | bff6bf29a851f0fd57febe6a3d12aef4d6d5adaf2097e193b9dca7e47ebc2e15 |
Hashes for h3-3.7.7-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c94836155e8169be393980fc059f06481a14dd1913bd9cba609f6f1e8864c171 |
|
MD5 | ee175efd68f968194e6d197bb64b7a44 |
|
BLAKE2b-256 | 36cd6a90386683678fbbec450e12008eb279aad6b879e0a439982700b63b75a2 |
Hashes for h3-3.7.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d22ea488ab5fe01c94070e9a6b3222916905a4d3f7a9d33cb2298c93fa0ffd3 |
|
MD5 | 109c0bddb0e36d51b0ac8822e4d5426a |
|
BLAKE2b-256 | af4ba04ee522722f34248227ab11ff570f0b8122a565cc1a74543aef1db5a62d |
Hashes for h3-3.7.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c7398dbab685fcf3fe92f7c4c5901ab258bc66f7fa05fd1da8693375a10a549 |
|
MD5 | 989761016dbdb3b2cb0ad50cf93e2a1e |
|
BLAKE2b-256 | be544108925571f059ea0ea572358a4a7230cb517020684a1b5caa823e780088 |
Hashes for h3-3.7.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e74526d941c1656fe162cc63b459b61aa83a15e257e9477b1570f26c544b51a |
|
MD5 | c3c02aefd8c232c99841ffd4586a8178 |
|
BLAKE2b-256 | a2dbefbcb0221919aa4a7c67277351689b064a8d7d1fb14ec1a5ccf873a485e1 |
Hashes for h3-3.7.7-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d59018a50cd3b6d0ff0b18a54fdfcbaf2f79c13c831842f54fd2780c4b561ea |
|
MD5 | 252ffb38200cab58c5cb6e1be83b4460 |
|
BLAKE2b-256 | 85ea627c20e29e1d5cb8dca706526e2592d74cac960f6e613bab69ef817ca479 |
Hashes for h3-3.7.7-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3e2bc125490f900e0513c30480722f129bab1415f23040b6cd3a3f8d5a39336 |
|
MD5 | 61838e1902e360f39a2c8b284e3f7740 |
|
BLAKE2b-256 | 0772bfe3fa7e5e61beeb49f66180a3ba6038861cd00be5f5fc20d019874b6ee4 |
Hashes for h3-3.7.7-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0256e42687470c6f0044ca78fe375fe32a654be8b5a8313b4a68f52f513389c6 |
|
MD5 | 2f182a9f9f42311e7d09d716a151c3e5 |
|
BLAKE2b-256 | 5aff83e3b8b077bb66b14e947ac7ab11c974ef73925c960c66eb9327087ad26a |
Hashes for h3-3.7.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa2a4aa888cd9476788b874b4e11e178293f5b86e8461c36596bf183c242d417 |
|
MD5 | 65bd475a85b1670ac66392ba1a97faec |
|
BLAKE2b-256 | 4643e8174fee15911ea72b7e3d04a810bbed57691c789632b466663f1b83320f |
Hashes for h3-3.7.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 996ebb32dc26dd607af7493149f94ce316117be6f42971f7b33bbd326ec695d2 |
|
MD5 | 749d5632dd82e1e5a2685cef57765562 |
|
BLAKE2b-256 | 2ef85846ac4849d5fedea6b99f98dfa80ca2020c6a375b7fd05d92b3c2207885 |
Hashes for h3-3.7.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26b9dd605541223ef927cc913deccb236cee024b16032f4a3e4387e2791479f2 |
|
MD5 | 8163e7775b1c4d311ff4aa64bd665dd7 |
|
BLAKE2b-256 | 7b751c3069539cfb04e076d47c76f44bb24da791ed91220254813052961b042d |
Hashes for h3-3.7.7-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 951ecc9da0bcd5091670b13636928747bc98bc76891da0fa725524ec017cd9de |
|
MD5 | 744f53ed05ffdd1cd91aa01b81ae4c0c |
|
BLAKE2b-256 | 5d647673b6a08519111069e02a4535743ac41168eb625993e2815ede1e64303f |
Hashes for h3-3.7.7-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ae774cd43b057f68dc10c99e4522fa40ed6b32ab90b2df0025595ffa15e77a0 |
|
MD5 | 33f67f68263dd8773f92a75b620f5d03 |
|
BLAKE2b-256 | 7e2f563e699eff096aaf2e5d4e714aaa25e2bf675072dbc512e092b5eae3e8fa |
Hashes for h3-3.7.7-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f4417d09acb36f0452346052f576923d6e4334bff3459f217d6278d40397424 |
|
MD5 | 466d09eb61f6f8cf568cc569f1fcd7a6 |
|
BLAKE2b-256 | 1fba227446644de5b0d280ea32923ec210614e018094bae15e34a8b7622aebad |
Hashes for h3-3.7.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa9d82a0fcc647e7bab36ab2e7a7392d141edc95d113ccf972e0fb7b0ddf80a0 |
|
MD5 | bf515d4c6c14cd810ec5ae2486afc5f8 |
|
BLAKE2b-256 | 5c57659725e4114a9bc2084c36e3f4d3e05e0fccb947b1c80fee8e5b5d1fe6f8 |
Hashes for h3-3.7.7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52901f14f8b6e2c82075fd52c0e70176b868f621d47b5dc93f468c510e963722 |
|
MD5 | 2b46f188ee18fc643a6abee13d7bbd20 |
|
BLAKE2b-256 | c55fe262200a62bc5bbfe123e174d4f695e2d9178a240a5fc7c103a7f0c15dec |
Hashes for h3-3.7.7-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c96ad74e246bb7638d413efa8199dd4c58ee929424a4dcaadb16365195f77f87 |
|
MD5 | cd1fbba4bc764dfbeaabade421f39a59 |
|
BLAKE2b-256 | a3408deeb4151b33bfa2ab1d0f83865cf43658db195039075db04becf7c92274 |
Hashes for h3-3.7.7-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb154d2af699870b888e10476e327c895078009d2d2a6ef2d053d7dcf0e2c270 |
|
MD5 | 4a5a94754084c896f740bc50557ccc60 |
|
BLAKE2b-256 | 27572dc18fc2ee64d0390792a456c6a82fa52426f8e949b6e99b8082cc903443 |
Hashes for h3-3.7.7-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c993a36120d7f5607f24ba9e39caf715eaf9cd9d44f5d5660fd85e3f4e0c6bf7 |
|
MD5 | a070a57095d30ae5add4789ad9edabf4 |
|
BLAKE2b-256 | 5f89a701c9bb928a46dc7bc8ab6badd10efaf93af0e3668356b9ebc13f576d4c |
Hashes for h3-3.7.7-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64f76dc827fef94e9f43f95a1daea2e11f2ad2e8c55deac072f3d59bd62412d4 |
|
MD5 | 167b05ab2d8d9e41a5ec336ffa1096c1 |
|
BLAKE2b-256 | 89df5d65eafec190ef03a94a04175546471e189f63facf3b33c42da93e7633c4 |
Hashes for h3-3.7.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c1b5a0a652719b645387231bf6d7d4dd85150e4440a4ce72a804a10e86592ae |
|
MD5 | 0a16e4b6e944b9ab5dbf2970f52595a1 |
|
BLAKE2b-256 | 9a3f4c05a40167bbc88d09b9699bbf43166d6eaa97c4d6c8823f4dc46fac0a66 |
Hashes for h3-3.7.7-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a5c0c0ddd9c57694ecc3b9ba99cbef2842882f8943d6edc676a365e139dbc6d |
|
MD5 | eb4671a2e26390b471515fc1258c507a |
|
BLAKE2b-256 | fa5c9a121ef38493ed218ab0ba2c1393bec091564aa5a529940c52b280bcff58 |
Hashes for h3-3.7.7-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c57da776a3c1a01e2986b1f6a31d497ee0be8fcdbaaf9b23bb90f5a90eb8f0b |
|
MD5 | 2fa5896d68f4f05a44a068dff1c6fcf4 |
|
BLAKE2b-256 | c45235c4b21630796504d48e13c58b938dd4036e6ede1e6257e49225b035fa28 |
Hashes for h3-3.7.7-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f3a9da5472820b0a4add342f96fe52f65fbb8f46984383885738517b38af69e |
|
MD5 | de0f9c4c29a1119ef7085a9ce95fa601 |
|
BLAKE2b-256 | 23b8df3147aa9404112c641d226def63c8be5f5337bd7bc887675f6cd9344327 |
Hashes for h3-3.7.7-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c851baa1c2d4f29b01157ce2a4cdb1f3879fff5c36ff7861dad1526963a17a7 |
|
MD5 | 51f5ee7ee2749f54c7726d7007c458ee |
|
BLAKE2b-256 | 81cfd8f061c39925c90f8d3655fa7429c1e17c8f5abfb07e25685eaae28e393c |
Hashes for h3-3.7.7-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aa0f8ce89b5e694815ee7a5172a782d58f2652267329de7008354b110b53955 |
|
MD5 | a190287a8bb51dde91e0a29612bf62ac |
|
BLAKE2b-256 | 02edc29373b540e09ab37a050bddadb0798fdf1685a87d0b0711429efd09cd38 |
Hashes for h3-3.7.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8f34b204edc2e8f7d99a6db4ed1b5d202b7ea3ec6817d373ec432dee14efe04 |
|
MD5 | 02db46aee542cc1cbf82dfa1767f85be |
|
BLAKE2b-256 | dfc6918f0326838713ed2aafdf42a9e05e41b8ab1aa7dbd592ce9d718fde82b6 |
Hashes for h3-3.7.7-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7358ba3f91193a2551c4a8d7ad7fd348e567b3a3581c9c161630029dfb23e07 |
|
MD5 | ac8d4848c9d2132534f779ecc5aca4ce |
|
BLAKE2b-256 | bbd576e4c4f561acabcdf80c8b224fde985ee108455da4116e8c6a002ed98856 |
Hashes for h3-3.7.7-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcd88a72d6aa97d0f3b3b87b7bfd9725a8909501e6cb9d0057d5b690b6bb37b0 |
|
MD5 | 4efc54bbef1c9c4285fa9bb81f2c3d6f |
|
BLAKE2b-256 | ce1a37a53eb4c68fa32c92fee50ad97b4506c04d7e19b15ab42149a0148b5d90 |
Hashes for h3-3.7.7-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 796622be7cb052690404c0ac03768183e51ae22505ce4a424b4537b2b7609fba |
|
MD5 | 1230fba6be4c4edd1cffb3d292e426b3 |
|
BLAKE2b-256 | 33af6ad2ebfc82f7cb0e273a21dbaaaadef764ec0873a4e4ad718463e660d9df |
Hashes for h3-3.7.7-cp36-cp36m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 701f72f703d892fb17e66b9fd7b6b2ad125e135b091eb7dd0ec11858b84d84d2 |
|
MD5 | 081fe0fe21de5a7c75df229246c788b2 |
|
BLAKE2b-256 | ae21a98784339db23e30f5a2000a94bcf1935a1c01c6f3f0c39511d9ef5c07ce |
Hashes for h3-3.7.7-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cb13f0213ed6da80e739355e5b62cfc81b7b1469af997be3384a6cbc3a1a750 |
|
MD5 | 2cf1de86c2cc889ff78d44c2f86c8b69 |
|
BLAKE2b-256 | 6d291765c8b907fb781ba7e21d6091955e390279a6602e981eb69845dc9c35bc |
Hashes for h3-3.7.7-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef2e71b619f984e71c4bd9d128152e2c7e3e788e2d2ec571b32cef1d295ddf38 |
|
MD5 | 40067dd5d7849390895e62252fa37178 |
|
BLAKE2b-256 | 21756ed70c4bfa74716e885675f7d00903ba9636991220f77b9d16693fe6b2dc |