- Dispatch XXH3 on x86 targets at runtime: link
xxh_x86dispatch.cinto vendored x86 and x86_64 builds so one baseline wheel selects SSE2, AVX2, or AVX512 forxxh3_64andxxh3_128inputs longer than 240 bytes, including streamingupdate(). On AVX2 those inputs are about 1.5x faster. - Upgrade bundled xxHash from v0.8.3 to v0.8.4.
- Improve type annotation compatibility with
hashlib
- Clean up
_parse_init_argskeyword handling so the defensive check for a duplicatedatakeyword raises a proper error message - Add
_xxhashmodule docstring
- Breaking change: Drop support for Python 3.8, require Python >= 3.9
- Breaking change: Remove deprecated
xxhash.VERSION_TUPLE - Breaking change: The
inputkeyword argument is renamed todatain constructors and one-shot functions.update()additionally gains adatakeyword argument (it accepted no keyword arguments before). - Breaking change:
strinput is no longer accepted and raisesTypeError: Strings must be encoded before hashing; encode tobytesbefore hashing - Upgrade xxHash from v0.8.2 to v0.8.3. Note: on GCC/Clang source builds
that target AVX2 (e.g.
-march=x86-64-v3), upstream v0.8.3 autovectorizesXXH64_update()and makes the xxh64 streaming path about 2x slower. The shipped wheels are built for baseline x86-64 and are unaffected. Source builds can work around it by adding-fno-tree-vectorizeto the compiler flags. - Add per-object locking for thread safety, with sub-interpreter and
free-threaded (no-GIL) Python support. The GIL is now released only
while hashing inputs larger than 64 KiB; previously
update()released it unconditionally and one-shot functions always held it. - Speed up hash constructors by switching them to
tp_vectorcall. - Build pyodide wasm32 wheels
- Add s390x big-endian test job
- Add Python 3.15 classifier
- CI: shard the PyPI upload into parallel groups and create the GitHub Release automatically
- Build wheels for Python 3.15
- Register the "benchmark" pytest mark to avoid PytestUnknownMarkWarning
- Update C extension docstrings and remove stale comments
- Speed up module-level one-shot
digest(),intdigest(), andhexdigest()functions by switching them toMETH_FASTCALL. - Keep one-shot argument handling consistent with hash constructors, including
positional and keyword
input/seedarguments, duplicate argument errors, and oversized seed wrapping. - Fix error handling in the
xxh3_128integer digest path so allocation failures are reported cleanly. - Fix Python 3.8 builds by adding a
PyModule_AddTypecompatibility fallback with correct reference counting. - Correct type stubs for
xxh64_digest(),xxh64_hexdigest(), andxxh64_intdigest(), they were incorrectly aliased to xxh3_64 functions.
- Build wheels for Python 3.15
- Register the "benchmark" pytest mark to avoid PytestUnknownMarkWarning
- Update C extension docstrings and remove stale comments
- Fix memory leak in copy() and new() when memory allocation fails (rare edge case)
- Fix seed/reset state initialization in xxh32 and xxh64 (unlikely to affect normal usage)
- Replace Py_BuildValue with PyLong_FromUnsignedLong/LongLong for performance
- Update README examples to use bytes literals
- Add CodSpeed performance benchmarks and CI workflow
- Build aarch64/armv7l on native Arm runners; test against Python 3.15.0-beta.2
- Drop support for Python 3.7
- Build armv7l manylinux/musllinux wheels
- Build riscv64 manylinux/musllinux wheels
- Build android and ios wheels
- Build wheels for Python 3.15
- Build wheels for Python 3.14
- Python free-threading support
- Typing: Use Buffer type stubs
- Deprecate xxhash.VERSION_TUPLE, it will be removed in the next major release
- Build wheels for Python 3.14 and 3.15
- Build wheels for Python 3.13
- Build wheels for Python 3.13, 3.14 and 3.15
- Build wheels for Python 3.12
- Remove setuptools_scm
Yanked due to wheels building problem.
- Upgrade xxHash to v0.8.2
- Drop support for Python 3.6
This is the last version to support Python 3.6
- Build Python 3.11 wheels.
- Remove setup.py test_suites, call unittest directly
- Type annotations.
- Enabled muslinux wheels building.
- New set algorithms_available lists all implemented algorithms in xxhash package.
- Upgrade xxHash to v0.8.1.
- Drop support for EOL Python versions, require python >= 3.6 from now on.
- Migrate to github actions and build arm64 wheels for macOS.
- Always release GIL.
- Fix Travis CI OSX dpl python2.7 get-pip.py error
- Only to trigger Python 3.9 wheels building.
- Require xxHash version >= v0.8.0
- Upgrade xxHash to v0.8.0
- XXH3 hashes: xxh3_64, xxh3_128, and their oneshot functions
- Upgrade xxHash to v0.7.3
- Stop using PEP393 deprecated APIs
- Use XXH(32|64)_canonicalFromHash to replace u2bytes and ull2bytes
- Upgrade xxHash to v0.7.2
- Python 3.8 wheels
- Fixed: setup.py fails when reading README.rst and the default encoding is not UTF-8
- Fixed: xxh3.h in missing from source tarball
- Upgrade xxHash to v0.7.1
- Wheels are now built automatically
- Split CFFI variant into a separate package ifduyue/python-xxhash-cffi
- Add oneshot functions xxh{32,64}_{,int,hex}digest
- Allow input larger than 2GB
- Release the GIL on sufficiently large input
- Drop support for Python 3.2
- Free state actively, instead of delegating it to ffi.gc
- Fixed copy() segfault
- Added CFFI variant
- Fixed copy() segfault
- Upgrade xxHash to v0.6.2
- Upgrade xxHash to v0.6.1
- Upgrade xxHash to v0.5.0
- Upgrade xxHash to r42
- Upgrade xxHash to r41
- Added method reset
- Upgrade xxHash to r40
- Fixed some typos in docstrings
- Upgrade xxHash to r39
- Change digest() from little-endian representation to big-endian representation of the integer digest. This change breaks compatibility (digest() results are different).
- Make this package hashlib-compliant
- Update xxHash to r37
- Improve: Check XXHnn_init() return value.
- Update xxHash to r36
- Improve: Can now be built with Visual C++ Compiler.
- New: XXH32 and XXH64 type, which support partially update.
- Fix: build under Python 3.4
- NEW: Support Python 3
- NEW: xxh32 and xxh64