xxhash
Python binding for xxHash
Install
xxhash on PyPI
pip
pip install xxhashuv
uv add xxhashpoetry
poetry add xxhashPackage facts
| License | BSD-2-Clause (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: xxhash-4.0.0-cp310-cp310-macosx_10_9_x86_64.whl; xxhash-4.0.0-cp310-cp310-macosx_11_0_arm64.whl; xxhash-4.0.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl; xxhash-4.0.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; xxhash-4.0.0-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl; xxhash-4.0.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl; xxhash-4.0.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl; xxhash-4.0.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; xxhash-4.0.0-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl; xxhash-4.0.0-cp310-cp310-musllinux_1_2_aarch64.whl; xxhash-4.0.0-cp310-cp310-musllinux_1_2_armv7l.whl; xxhash-4.0.0-cp310-cp310-musllinux_1_2_i686.whl; xxhash-4.0.0-cp310-cp310-musllinux_1_2_ppc64le.whl; xxhash-4.0.0-cp310-cp310-musllinux_1_2_riscv64.whl; xxhash-4.0.0-cp310-cp310-musllinux_1_2_s390x.whl; xxhash-4.0.0-cp310-cp310-musllinux_1_2_x86_64.whl; xxhash-4.0.0-cp310-cp310-win32.whl; xxhash-4.0.0-cp310-cp310-win_amd64.whl; xxhash-4.0.0-cp310-cp310-win_arm64.whl; xxhash-4.0.0-cp311-cp311-macosx_10_9_x86_64.whl
About xxhash
from the package's own PyPI description — quoted content, verbatim
python-xxhash
.. image:: https://github.com/ifduyue/python-xxhash/actions/workflows/test.yml/badge.svg :target: https://github.com/ifduyue/python-xxhash/actions/workflows/test.yml :alt: Github Actions Status
.. image:: https://img.shields.io/pypi/v/xxhash.svg :target: https://pypi.org/project/xxhash/ :alt: Latest Version
.. image:: https://img.shields.io/pypi/pyversions/xxhash.svg :target: https://pypi.org/project/xxhash/ :alt: Supported Python versions
.. image:: https://img.shields.io/pypi/l/xxhash.svg :target: https://pypi.org/project/xxhash/ :alt: License
.. image:: https://img.shields.io/endpoint?url=https://codspeed.io/badge.json :target: https://codspeed.io/ifduyue/python-xxhash?utm_source=badge :alt: CodSpeed
.. _HMAC: http://en.wikipedia.org/wiki/Hash-based_message_authentication_code .. _xxHash: https://github.com/Cyan4973/xxHash .. _Cyan4973: https://github.com/Cyan4973
xxhash is a Python binding for the xxHash_ library by Yann Collet__.
__ Cyan4973_
Installation
.. code-block:: bash
$ pip install xxhash
You can also install using conda:
.. code-block:: bash
$ conda install...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
xxhash provides fast, non-cryptographic hashing via Python bindings to the xxHash C library, supporting xxh32, xxh64, and xxh3 algorithms with a hashlib-compatible interface.
Medium install friction due to compiled C extension; prebuilt wheels cover Python 3.9–3.15 across major platforms (x86_64, ARM, RISC-V, s390x, ppc64le), but source builds require gcc and python-dev. Repository is actively maintained with latest release 1 day old.
BSD-2-Clause is permissive; you may use, modify, and redistribute xxhash freely in commercial and private projects provided you retain the license notice and disclaimer.
Usage
pip install xxhash
import xxhash
result = xxhash.xxh64(b'data').hexdigest()
print(result)
Requires Python ≥3.9; source builds need gcc and python-dev headers.
Verdict: xxhash is a mature, actively maintained binding to a widely-used fast hash library with zero known vulnerabilities, broad platform coverage via prebuilt wheels, and a stable hashlib-compatible API. Install friction is moderate due to C compilation, but wheels mitigate this for most users. Suitable for production use in applications requiring high-speed non-cryptographic hashing.
Needs verification
- Whether thread-safety guarantees (per-object locks on 3.13+, GIL serialization on 3.9–3.12) meet your concurrency model.
- Performance characteristics relative to your specific data sizes and hashing patterns.
Similar packages
permissive · top 1,000 on PyPI
nh3permissive · top 1,000 on PyPI
python-magicpermissive · top 1,000 on PyPI
portalockerpermissive · top 1,000 on PyPI
filelockpermissive · top 100 on PyPI
bcryptpermissive · top 1,000 on PyPI
poetry-plugin-exportpermissive · top 1,000 on PyPI
lightgbmunclear · top 1,000 on PyPI
passlibpermissive · top 1,000 on PyPI
pyroaringpermissive · top 1,000 on PyPI