pyfarmhash
Google FarmHash Bindings for Python
Decision gist · record as of 2026-08-14
Yes, if you need fast non-cryptographic hashing and can handle the C++ compilation step. The package is actively maintained, has no known vulnerabilities, and carries a permissive license. Install friction is moderate but manageable; Windows users benefit from prebuilt wheels. Not suitable if you need cryptographic hashing or cannot compile C++ extensions in your environment.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a C++ compiler (g++ on Linux; Visual C++ on Windows) to build the extension from source.
- Windows binary wheels are available on PyPI for some Python versions.
- Medium install friction due to compiled C++ extension requiring a compiler (g++ on Linux, Visual C++ on Windows).
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, provided you include the license notice.
last release 2024-08-27 (717 days) · last repo commit 2026-03-06 · 39 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 644,312 downloads/mo, #5,601 on PyPI
Alternatives
Verify before relying
pip install pyfarmhash
import pyfarmhash
print(pyfarmhash.hash64('abc'))
print(pyfarmhash.hash64withseed('abc', 12345))- Whether prebuilt wheels are available for all advertised Python versions or only a subset
- Current performance characteristics compared to other non-cryptographic hash libraries
- Whether the fingerprint function bindings mentioned in the description are fully exposed in the public API
What it is and what it does
pyfarmhash wraps Google's FarmHash algorithm, a non-cryptographic hash function optimized for speed and distribution quality. It exposes hash64 and hash64withseed functions that take strings or bytes and return 64-bit hash values, plus fingerprint functions. The package is a thin binding layer with no runtime dependencies, making it lightweight for applications that need fast hashing for indexing, deduplication, or data structures rather than security.
The package is maintained and supports Python versions from 2.6 through 3.11. Installation requires a C++ compiler on most platforms, though Windows binary wheels are available. The API is minimal and straightforward: import the module and call the hash functions directly.
Use it for
- Hash table and data structure construction where speed matters more than cryptographic strength
- Deduplication of large datasets by computing fast fingerprints of records
- Distributed systems needing consistent, fast hashing across nodes for load balancing or sharding
- Bloom filters and probabilistic data structures that require many hash computations per item
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need fast non-cryptographic hashing and can handle the C++ compilation step.
The package is actively maintained, has no known vulnerabilities, and carries a permissive license. Install friction is moderate but manageable; Windows users benefit from prebuilt wheels. Not suitable if you need cryptographic hashing or cannot compile C++ extensions in your environment.
Install
pyfarmhash on PyPI
Before you install
Medium install friction due to compiled C++ extension requiring a compiler (g++ on Linux, Visual C++ on Windows). Repository is actively maintained with last commit on 2026-03-06, though the package last released 717 days ago.
Requires a C++ compiler (g++ on Linux; Visual C++ on Windows) to build the extension from source. Windows binary wheels are available on PyPI for some Python versions.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, provided you include the license notice.
Quickstart
pip install pyfarmhash
import pyfarmhash
print(pyfarmhash.hash64('abc'))
print(pyfarmhash.hash64withseed('abc', 12345))
Verify before relying
- Whether prebuilt wheels are available for all advertised Python versions or only a subset
- Current performance characteristics compared to other non-cryptographic hash libraries
- Whether the fingerprint function bindings mentioned in the description are fully exposed in the public API
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 717 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 644,312 / month, #5,601 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: CProgramming Language :: PythonProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: pyfarmhash-0.4.0-cp310-cp310-win_amd64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “farmhash python bindings”
- pyfarmhashProvides Python bindings to Google's FarmHash, a fast…
- cityhashPython wrapper for Google's CityHash and FarmHash non-cryptographic…
- polars-hashPolars-hash adds cryptographic and non-cryptographic hashing…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also cityhash · types-pyfarmhash · mmhash3 · bbhash · clickhouse-cityhash · xxhash · murmurhash · polars-hash · mmh3 · py-multihash