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-1.0.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distributions

fnv_hash_fast-1.0.2-cp313-cp313-win_amd64.whl (65.5 kB view details)

Uploaded CPython 3.13 Windows x86-64

fnv_hash_fast-1.0.2-cp313-cp313-win32.whl (63.7 kB view details)

Uploaded CPython 3.13 Windows x86

fnv_hash_fast-1.0.2-cp313-cp313-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.13 musllinux: musl 1.2+ x86-64

fnv_hash_fast-1.0.2-cp313-cp313-musllinux_1_2_i686.whl (1.2 MB view details)

Uploaded CPython 3.13 musllinux: musl 1.2+ i686

fnv_hash_fast-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (149.1 kB view details)

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

fnv_hash_fast-1.0.2-cp313-cp313-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (145.0 kB view details)

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

fnv_hash_fast-1.0.2-cp313-cp313-macosx_14_0_arm64.whl (64.3 kB view details)

Uploaded CPython 3.13 macOS 14.0+ ARM64

fnv_hash_fast-1.0.2-cp312-cp312-win_amd64.whl (66.3 kB view details)

Uploaded CPython 3.12 Windows x86-64

fnv_hash_fast-1.0.2-cp312-cp312-win32.whl (64.3 kB view details)

Uploaded CPython 3.12 Windows x86

fnv_hash_fast-1.0.2-cp312-cp312-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

fnv_hash_fast-1.0.2-cp312-cp312-musllinux_1_2_i686.whl (1.2 MB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ i686

fnv_hash_fast-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (154.2 kB view details)

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

fnv_hash_fast-1.0.2-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (150.0 kB view details)

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

fnv_hash_fast-1.0.2-cp312-cp312-macosx_14_0_arm64.whl (65.1 kB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

fnv_hash_fast-1.0.2-cp311-cp311-win_amd64.whl (66.1 kB view details)

Uploaded CPython 3.11 Windows x86-64

fnv_hash_fast-1.0.2-cp311-cp311-win32.whl (22.0 kB view details)

Uploaded CPython 3.11 Windows x86

fnv_hash_fast-1.0.2-cp311-cp311-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

fnv_hash_fast-1.0.2-cp311-cp311-musllinux_1_2_i686.whl (1.2 MB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ i686

fnv_hash_fast-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (107.2 kB view details)

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

fnv_hash_fast-1.0.2-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (104.0 kB view details)

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

fnv_hash_fast-1.0.2-cp311-cp311-macosx_14_0_arm64.whl (22.9 kB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

fnv_hash_fast-1.0.2-cp310-cp310-manylinux_2_31_x86_64.whl (107.7 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.31+ x86-64

File details

Details for the file fnv_hash_fast-1.0.2.tar.gz.

File metadata

  • Download URL: fnv_hash_fast-1.0.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.11.1 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.2 tqdm/4.66.5 importlib-metadata/8.4.0 keyring/25.3.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.14

File hashes

Hashes for fnv_hash_fast-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d4c528bfb0daa751afb17419a244b913b094b9f0634f9bd19aeffcdc60192589
MD5 10978672131ef67412de1bbbd55471f9
BLAKE2b-256 8a35a0f2baec714caa5e865dc284382bac7f959c643a03d7f2c2f8c38573b2b2

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a5935a91ae5cc9edd2bd7a9028b0e5b1e371e5a383034357541b559a2e235e57
MD5 d1bc5c399aacd791a778dbef4d0c464d
BLAKE2b-256 87f61d7f2fd7c2163e661774c07f8cceb1db434f2c5440ab644379d6de76753b

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp313-cp313-win32.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 0ac9b5da8fbb9f670a7ce877dfa9bccc942f6499e25801d63427e0f55e1aa902
MD5 450c1c9e2aa295dbbe9dfc08e02fa0e7
BLAKE2b-256 1aaa6cc3d9da7ca14341be9a9effe32b2bf105f6d08b3971b007c51f18b22d9a

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a318cb86ea4a91c95eb42bd49e9144fbdc83e0bb91a1e6f672f197f15a450d01
MD5 c5037ff47cc6e4934f95398e20321c63
BLAKE2b-256 ce0db523ee18b8dea412f0b1d711917b030a32edc1e183b36d7419d83030b7f5

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp313-cp313-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp313-cp313-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 7b7f491a7c3cd679bda8fcd693234812a488bcb3dae0952ba312366b6f69796d
MD5 7e0c85f0798a8aea16c622fc0ae12f1c
BLAKE2b-256 05d379bc1b00223aada2bf906c99bb619d730bdbff293433f08ef3ba153ef198

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4fb40cc6685a81595434c6cf1ef79d92d4d899e8bc823d9ad6a30287d612de0d
MD5 8f4ba7b95a80cbb9ea3ebd7c056e5eba
BLAKE2b-256 b05f90f485875dee1a7fd2252aacef6c10a7dcf991fcfee44f4e65ba13ab477e

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp313-cp313-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp313-cp313-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 f91ec27fbe3fc43440a250d3b8dac3f0ebd8cea91ffa432bea40ef611b089eeb
MD5 67808ef3836426229a770450dd14b2da
BLAKE2b-256 a647327e75a72d6f0de00491b8867953878a4c72c058e0f9ee37c0c64111a297

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ea6d4fb666684d7e15f2eb1aa92235b25286ea3081cdfb469ffcc7ee34c74b67
MD5 2797562a105b2b173306f25d4551c77b
BLAKE2b-256 54af9bb74b23610d3f10b64ac41c6ac9a59402619ef13a4d880975d1dc07dfd3

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ef4118d57d27a13271feb47b0ffef95a5122aaa2c4e15b4979cc8bf1bc81c14b
MD5 e11abe187b778b90bfff0e90bc7f6688
BLAKE2b-256 1f46eb073c248b42b8137d47dff385b30c0ebfb3542536fc4581a944372a0c82

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp312-cp312-win32.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 57507e52829dd463f2f755ca22fc9dc4a8d9a9c5d8cf1b0d5ec4eeddf90c9c48
MD5 2067dcdd7030fd6c42ce7293ab05427c
BLAKE2b-256 c4d5d2ef0509776ba09378f90ea87657b8c33112c2c24429e8596439472eb6ea

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 55b9ccbfb87aafc76ef133c70e76a5061a48432f6ba846263ef122a774bce09c
MD5 ccb69c750236f899133514d02d5c36df
BLAKE2b-256 783660431380699e98371a985bdbfc181a4adb32317d5ada1c5f10c84087afaa

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp312-cp312-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 e9f303ce7c394119cb205fe54124f956b3feefd388700f2268b209d78fa9a88c
MD5 a392bd756a70e7f50d8f360a1631cded
BLAKE2b-256 14ee6b6079fd618a4ae9e1762ff525d204d7689aa8e7e378d24ca5df7e02a4c9

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fdeaed747d4af60c0ae4cd336ee349db0bba2e1bd46d7d94c8c6a1a7cf3ecbf4
MD5 45558109c7de0430f14172ff9bce89c2
BLAKE2b-256 409b0b27c3116dcbde287961c413d9cddc9bfaa62783f5c43cf6a8a6743bd1da

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 d1dfd66728c70b6b3184729a8e2b98cf8d3548b65bc09ab49fff156d86095e62
MD5 46cc7eb29c37ed09e1ed0af26b772903
BLAKE2b-256 a3ba4cadf8a40268bed1c777f9d8e6cfe18a38056d46c2cc844ce34560bb9796

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d306b606c1686f7902f2da3193535e3523934ddf10cc540427d5a1d96a9818c4
MD5 84e3929090c3d2290cf2a565bc1de284
BLAKE2b-256 a47608c20543421f368f5d0215381b745268f5ba51916a286896fed62ed583e2

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a666c69a326c6a86b68d24836a46f56129ce7a5e4d7e52c0a987ee8116766abd
MD5 a37d84766885d155a91658819522bc8e
BLAKE2b-256 d98a64a96d681e929d0a9a48dd5804deab2fbb0e7f629b59ed3a1151d02f6e33

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 14da90735b487491dd55d79f518460383baaa0b1a8ecf54bb02b22ef8649f4cc
MD5 1e6789cc44e45dd405785c0f64580508
BLAKE2b-256 fc1fcc37ee819e7a99634745715d509e390653b3ccd139e60376f9c0763eec35

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 19bc025d602e9ff35c1c1b92902a0f3cc5d801f4baf5de8b13371d5c1280626e
MD5 926ee2f1aa81981b6a188f1f61018e39
BLAKE2b-256 6a7367c2a89bc8fd1ad28ce2ae663ad713868e7fe126e2634205ae29724a5b2f

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp311-cp311-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 078f5caebf06b6c5b4f8e50674cbdd875c1f2c5ecab5bc7cd693a685c8d29767
MD5 1b569fc9cbebc1d4eae4eb26df978f30
BLAKE2b-256 1f3afa58ee444bfe9e65d5023c7fb39bcb69c851d7129d12123ab8d1b6c242cd

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 725306b97ace05899da6e51f04b0ae314c6a34c8ae32b16f1382eb40b717e9c7
MD5 158ecbec6bc160fed8768b6024b9b567
BLAKE2b-256 9070ce7c578536919729b8214b49ad7c7205b2223f43948cc028580c972bb35e

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 7acb68896e1ca2afea6854db03fe61f88ccda4e73adddd99f52af879877380e0
MD5 004581feb531041bda5da4906abeca0e
BLAKE2b-256 76bff3eb68a757011462e6b32ba2723ddfc46745b9ce9fe2a0ca3fb3efc52840

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for fnv_hash_fast-1.0.2-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e0e88c39b18a3ae213856196a233da007429fa491c89d9b3567875304645aa7e
MD5 01963f065e3c6e267a1ce88856f20a90
BLAKE2b-256 b944ab27cd3f55a583cd1b2b0163413259b18130a7bdc46df716947129f3c450

See more details on using hashes here.

File details

Details for the file fnv_hash_fast-1.0.2-cp310-cp310-manylinux_2_31_x86_64.whl.

File metadata

  • Download URL: fnv_hash_fast-1.0.2-cp310-cp310-manylinux_2_31_x86_64.whl
  • Upload date:
  • Size: 107.7 kB
  • Tags: CPython 3.10, manylinux: glibc 2.31+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.11.1 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.2 tqdm/4.66.5 importlib-metadata/8.4.0 keyring/25.3.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.14

File hashes

Hashes for fnv_hash_fast-1.0.2-cp310-cp310-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 30f1d5955ad4132cdd0cb292221bf6fbda15e725cc796b5957b557b063c9a1a5
MD5 a7ea9b17cca386cfd3d676e6a28c9c71
BLAKE2b-256 15e395c069474aeb86ec91b6df3ae2b46ae4d99faf30e933e6185c8d360ad758

See more details on using hashes here.

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