跳转到主要内容

fnv1a的快速版本

项目描述

FNV Hash Fast

CI Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License

fnv1a的快速版本

如果cython可用,此库将使用fnv1a (32)的CPP实现,如果不可用,则回退到纯python的fnvhash包。

安装

使用pip(或您喜欢的包管理器)安装此库

pip install fnv-hash-fast

示例

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

贡献者 ✨

感谢以下这些优秀的人们 (emoji key)

此项目遵循all-contributors规范。欢迎任何形式的贡献!

致谢

此包是用Copierbrowniebroke/pypackage-template项目模板创建的。

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

fnv_hash_fast-1.0.2.tar.gz (5.8 kB 查看哈希值)

上传时间: 源代码

构建分发

fnv_hash_fast-1.0.2-cp313-cp313-win_amd64.whl (65.5 kB 查看哈希值)

上传时间: CPython 3.13 Windows x86-64

fnv_hash_fast-1.0.2-cp313-cp313-win32.whl (63.7 kB 查看哈希值)

上传时间: CPython 3.13 Windows x86

fnv_hash_fast-1.0.2-cp313-cp313-musllinux_1_2_x86_64.whl (1.1 MB 查看哈希值)

上传时间: 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 查看哈希值)

上传时间: 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 查看哈希值)

上传时间: 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 查看哈希值)

上传时间: 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 查看哈希值)

上传时间: CPython 3.13 macOS 14.0+ ARM64

fnv_hash_fast-1.0.2-cp312-cp312-win_amd64.whl (66.3 kB 查看哈希值)

上传时间: CPython 3.12 Windows x86-64

fnv_hash_fast-1.0.2-cp312-cp312-win32.whl (64.3 kB 查看哈希值)

上传于 CPython 3.12 Windows x86

fnv_hash_fast-1.0.2-cp312-cp312-musllinux_1_2_x86_64.whl (1.1 MB 查看哈希值)

上传于 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 查看哈希值)

上传于 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 查看哈希值)

上传于 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 查看哈希值)

上传于 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 查看哈希值)

上传于 CPython 3.12 macOS 14.0+ ARM64

fnv_hash_fast-1.0.2-cp311-cp311-win_amd64.whl (66.1 kB 查看哈希值)

上传于 CPython 3.11 Windows x86-64

fnv_hash_fast-1.0.2-cp311-cp311-win32.whl (22.0 kB 查看哈希值)

上传于 CPython 3.11 Windows x86

fnv_hash_fast-1.0.2-cp311-cp311-musllinux_1_2_x86_64.whl (1.1 MB 查看哈希值)

上传于 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 查看哈希值)

上传于 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 查看哈希值)

上传于 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 查看哈希)

上传于 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 查看哈希)

上传于 CPython 3.11 macOS 14.0+ ARM64

fnv_hash_fast-1.0.2-cp310-cp310-manylinux_2_31_x86_64.whl (107.7 kB 查看哈希)

上传于 CPython 3.10 manylinux: glibc 2.31+ x86-64

支持