blake3
Python bindings for the Rust blake3 crate
What it is and what it does
blake3 is a Python wrapper around the official Rust implementation of BLAKE3, a modern cryptographic hash function. It provides a hashlib-compatible API while exposing BLAKE3-specific features like keyed hashing (message authentication), key derivation with context strings, and variable-length output. The package supports both incremental hashing (feeding data in chunks) and batch hashing, with optional multithreading for large inputs and memory-mapped file hashing.
The bindings are built with PyO3 and distributed as compiled wheels for most Python versions and platforms, so installation typically does not require a Rust compiler. It depends only on typing-extensions at runtime. The package is actively maintained, carries no known security vulnerabilities, and is licensed permissively under CC0-1.0 or Apache-2.0.
Use it for:
- Computing fast cryptographic hashes for file integrity checks and deduplication systems.
- Implementing message authentication codes using keyed hashing mode with a shared secret.
- Deriving application-specific keys from master key material using the key derivation mode.
- Hashing large files or datasets with automatic multithreading for improved throughput.
- Building content-addressable storage systems that require variable-length hash outputs.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python bindings for the BLAKE3 cryptographic hash function, exposing the official Rust implementation with support for keyed hashing, key derivation, extendable output, and multithreaded hashing.
Yes. blake3 is a well-maintained, actively developed cryptographic library with no known vulnerabilities, permissive licensing, and broad platform support via precompiled wheels. Install it if you need modern hashing with keyed or key-derivation modes; the medium install friction is acceptable for most environments since binary wheels are available. Not necessary if standard hashing suffices.
Install
blake3 on PyPI
pip
pip install blake3uv
uv add blake3poetry
poetry add blake3Installing blake3
Before you install
Medium install friction due to compiled Rust bindings, but binary wheels are available for most environments. Active maintenance with recent releases; no known vulnerabilities.
License in practice
Dual-licensed under CC0-1.0 or Apache-2.0, both permissive. You may use, modify, and distribute freely under either license with minimal restrictions.
Quickstart
pip install blake3
from blake3 import blake3
hash_digest = blake3(b"foobarbaz").digest()
hasher = blake3()
hasher.update(b"foo")
hasher.update(b"bar")
print(hasher.hexdigest())
Requires Python 3.8 or later. If a binary wheel is unavailable for your platform, you will need the Rust toolchain installed to build from source.
Verify before relying
- Performance characteristics and throughput compared to other hashing libraries in typical workloads.
- Specific multithreading performance thresholds and platform-specific behavior beyond the ~1 MB guidance mentioned.
- Compatibility and interoperability with other BLAKE3 implementations across different languages.
Package facts
| License | CC0-1.0 OR Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — typing-extensions |
| Maintenance | actively maintained — 53 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 20,934,450/month — #1,021 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: blake3-1.0.9-cp310-cp310-macosx_10_12_x86_64.whl; blake3-1.0.9-cp310-cp310-macosx_11_0_arm64.whl; blake3-1.0.9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; blake3-1.0.9-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; blake3-1.0.9-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl; blake3-1.0.9-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; blake3-1.0.9-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; blake3-1.0.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; blake3-1.0.9-cp310-cp310-manylinux_2_31_riscv64.whl; blake3-1.0.9-cp310-cp310-musllinux_1_1_aarch64.whl; blake3-1.0.9-cp310-cp310-musllinux_1_1_x86_64.whl; blake3-1.0.9-cp310-cp310-win32.whl; blake3-1.0.9-cp310-cp310-win_amd64.whl; blake3-1.0.9-cp311-cp311-macosx_10_12_x86_64.whl; blake3-1.0.9-cp311-cp311-macosx_11_0_arm64.whl; blake3-1.0.9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; blake3-1.0.9-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; blake3-1.0.9-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl; blake3-1.0.9-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; blake3-1.0.9-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
py-multihashEncodes and decodes multihash digests,…
permissive · top 15,000 on PyPI
xxhashxxhash provides fast non-cryptographic hashing…
permissive · top 1,000 on PyPI
murmurhashProvides fast MurmurHash2 hashing through…
permissive · top 1,000 on PyPI
rpds-pyProvides Python bindings to Rust's persistent…
permissive · top 100 on PyPI
poseidon-pyPoseidon hash implementation in Python with a…
unclear · top 15,000 on PyPI
siphashProvides a Python implementation of SipHash, a…
permissive · top 15,000 on PyPI
clickhouse-cityhashProvides Python bindings to CityHash, a fast…
permissive · top 15,000 on PyPI
siphashcsiphashc provides a Python binding to the…
permissive · top 15,000 on PyPI
pyfarmhashProvides Python bindings to Google's FarmHash,…
permissive · top 15,000 on PyPI
bcryptbcrypt provides modern password hashing using…
permissive · top 1,000 on PyPI