Pygeohash-Fast
A Fast geohasher for python.
Created by wrapping the rust geohash crate with pyo3.
Huge shout out to the georust community :)
Currently very WIP, only supports encoding geohashes.
Speed Comparisons
Compared against the great python library pygeohash This isn't a perfect benchmark, but should illstrate what's possible. Tested on 1 million randomly generated lat/long pairs.
Results for Pygeohash
In [14]: %%timeit
...: [encode(lats[i], lngs[i], 8) for i in range(len(lats))]
10.8 s ± 77.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
Results for Pygeohash-fast encode:
In [16]: %%timeit
...: [fast_encode(lngs[i], lats[i], 8) for i in range(len(lats))]
3.44 s ± 11.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
However, in order to improve things in further when encoding many points we have methods for encoding many points at once.
In [22]: %%timeit
...: encode_many(lngs, lats, 8)
155 ms ± 3.58 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
So for simple geohash encoding this library is ~69x times faster, nice.
Metadata
Release files for pygeohash-fast 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygeohash_fast-0.3.0.tar.gz | 5.0 kB | Without provenance | Details for pygeohash_fast-0.3.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygeohash_fast-0.3.0-cp37-abi3-win_amd64.whl | CPython 3.7 | abi3 | Windows x86-64 | Details for pygeohash_fast-0.3.0-cp37-abi3-win_amd64.whl |
| pygeohash_fast-0.3.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl | CPython 3.7 | abi3 | Linux glibc 2.5+ x86-64 | Details for pygeohash_fast-0.3.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
| pygeohash_fast-0.3.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl | CPython 3.7 | abi3 | macOS 11.0+ ARM64, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64 | Details for pygeohash_fast-0.3.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
Total release size: 926.7 kB
Release files / pygeohash_fast-0.3.0.tar.gz
| Download URL | pygeohash_fast-0.3.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9c65705b81e1c350df21889177d28fcbd034d7e7b16adf309c0d5aeb78cd7ec
|
|
BLAKE2b-256 checksum How to use checksums |
36fb3c9c2ee4d8165706189d2523a9645f79f4d4d6417dbd3e69d49c26a9188f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.13.1
|
Release files / pygeohash_fast-0.3.0-cp37-abi3-win_amd64.whl
| Download URL | pygeohash_fast-0.3.0-cp37-abi3-win_amd64.whl |
|---|---|
| Size | 189.4 kB |
| Tags | CPython 3.7 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7689815493290df44d3f1b994b437b7701c9e9c03d80e3c4a044a41067d8c517
|
|
BLAKE2b-256 checksum How to use checksums |
05f2c86514edb0540364e86a6d090f294898dff6a8e0ac2181c8f6bf52c49d89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.13.1
|
Release files / pygeohash_fast-0.3.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | pygeohash_fast-0.3.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 273.0 kB |
| Tags | CPython 3.7 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
fcd440069e0504d47aa1334409aabd1a87727fa0f7ce82e4b8c03405519c6678
|
|
BLAKE2b-256 checksum How to use checksums |
e74094afaf31fd36493b930ea073bb3a64153cded273d9e03024da69a0658a01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.13.1
|
Release files / pygeohash_fast-0.3.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | pygeohash_fast-0.3.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 459.3 kB |
| Tags | CPython 3.7 abi3 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
87fca3f8ddec45a562bd1eaf485dde2e104eaf318a18d26efbc18b9c54826550
|
|
BLAKE2b-256 checksum How to use checksums |
905b67386c564a7a5ca58d65868640e555f1c1fac98dd3e0f241a795fa1e98f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.13.1
|
Security for pygeohash-fast 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.