Skip to main content

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.

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)

Source distribution for pygeohash-fast 0.3.0
File Size Uploaded
pygeohash_fast-0.3.0.tar.gz 5.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pygeohash-fast 0.3.0
File Interpreter ABI Platform
pygeohash_fast-0.3.0-cp37-abi3-win_amd64.whl CPython 3.7 abi3 Windows x86-64 Details
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
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

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

Release history Release notifications | RSS feed

This release

0.3.0 This release

4 release files

0.2.0

4 release files

0.1.0

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page