Skip to main content

A fast version of fnv1a

Project description

FNV Hash Fast

CI Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License

A fast version of fnv1a

This library will use a CPP implementation of fnv1a (32) if cython is available, and will fallback to pure python from the fnvhash package if it is not.

Installation

Install this via pip (or your favourite package manager):

pip install fnv-hash-fast

Example

>>> import fnv_hash_fast
>>> fnv_hash_fast.fnv1a_32(b"hello")
1335831723
>>> fnv_hash_fast.fnv1a_32(b"goodbye")
1188507472

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This package was created with Copier and the browniebroke/pypackage-template project template.

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

fnv_hash_fast-0.5.0.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distributions

fnv_hash_fast-0.5.0-pp310-pypy310_pp73-win_amd64.whl (65.9 kB view hashes)

Uploaded PyPy Windows x86-64

fnv_hash_fast-0.5.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (144.6 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

fnv_hash_fast-0.5.0-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (65.5 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

fnv_hash_fast-0.5.0-pp310-pypy310_pp73-macosx_11_0_x86_64.whl (64.0 kB view hashes)

Uploaded PyPy macOS 11.0+ x86-64

fnv_hash_fast-0.5.0-cp312-cp312-win_amd64.whl (65.8 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

fnv_hash_fast-0.5.0-cp312-cp312-win32.whl (65.8 kB view hashes)

Uploaded CPython 3.12 Windows x86

fnv_hash_fast-0.5.0-cp312-cp312-musllinux_1_1_x86_64.whl (697.4 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

fnv_hash_fast-0.5.0-cp312-cp312-musllinux_1_1_i686.whl (755.4 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

fnv_hash_fast-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (144.6 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

fnv_hash_fast-0.5.0-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (149.7 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

fnv_hash_fast-0.5.0-cp312-cp312-macosx_11_0_x86_64.whl (64.0 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ x86-64

fnv_hash_fast-0.5.0-cp311-cp311-win_amd64.whl (65.8 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

fnv_hash_fast-0.5.0-cp311-cp311-win32.whl (65.8 kB view hashes)

Uploaded CPython 3.11 Windows x86

fnv_hash_fast-0.5.0-cp311-cp311-musllinux_1_1_x86_64.whl (697.4 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

fnv_hash_fast-0.5.0-cp311-cp311-musllinux_1_1_i686.whl (751.1 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

fnv_hash_fast-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (144.6 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

fnv_hash_fast-0.5.0-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (145.5 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

fnv_hash_fast-0.5.0-cp311-cp311-macosx_11_0_x86_64.whl (63.8 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ x86-64

fnv_hash_fast-0.5.0-cp310-cp310-win_amd64.whl (65.8 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

fnv_hash_fast-0.5.0-cp310-cp310-win32.whl (21.8 kB view hashes)

Uploaded CPython 3.10 Windows x86

fnv_hash_fast-0.5.0-cp310-cp310-musllinux_1_1_x86_64.whl (655.5 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

fnv_hash_fast-0.5.0-cp310-cp310-musllinux_1_1_i686.whl (705.5 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

fnv_hash_fast-0.5.0-cp310-cp310-manylinux_2_31_x86_64.whl (107.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.31+ x86-64

fnv_hash_fast-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (102.6 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

fnv_hash_fast-0.5.0-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (99.3 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

fnv_hash_fast-0.5.0-cp310-cp310-macosx_11_0_x86_64.whl (22.0 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ 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