$npx skillfedfor your agent

cityhash

Python bindings for CityHash and FarmHash

With conditionsPyPI LibrariesReleased Oct 2025406.4K downloads / moMITPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — cityhash-0.4.10-cp310-cp310-macosx_10_9_x86_64.whl · cityhash-0.4.10-cp310-cp310-macosx_11_0_arm64.whl · cityhash-0.4.10-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
v0.4.10 · released 2025-10-09 · Python >=3.6

Yes, if you need fast non-cryptographic hashing with buffer-protocol support and don't require incremental hashing. Pre-built wheels and broad platform coverage make installation straightforward. The aging maintenance status (309 days since release) is a minor concern but not a blocker—the package is stable with no known vulnerabilities. Skip it if you need cryptographic hashing or streaming/incremental hashing.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.6 or later; buffer-protocol objects like NumPy arrays must be contiguous.
  • Medium install friction due to compiled C++ bindings; wheels are pre-built for common platforms (Windows, macOS, Linux x86_64 and ARM64) across Python 3.10–3.13, reducing compilation overhead.
  • Repository shows aging maintenance (309 days since last release) but remains stable.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely in both open-source and proprietary projects with minimal restrictions.

last release 2025-10-09 (309 days) · last repo commit 2025-10-09 · 46 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 406,355 downloads/mo, #6,897 on PyPI

Verify before relying

pip install cityhash

from cityhash import CityHash64
result = CityHash64("abc")
print(result)
  • Whether SSE4.2 support on x86-64 platforms is automatically detected and used at runtime.
  • Performance characteristics compared to other non-cryptographic hash libraries in real-world workloads.
  • Whether the aging maintenance status affects bug-fix responsiveness or security patching.
Same gist for agents: .md · .json

What it is and what it does

Cityhash is a Python binding to Google's CityHash and FarmHash algorithms—a family of fast, non-cryptographic hash functions designed for speed rather than cryptographic security. It exposes multiple bit-width variants (32, 64, 128) under separate namespaces and supports hardware-independent fingerprints that remain consistent across platforms, making them suitable for distributed systems that need to persist hashed values. The package can hash any object that implements Python's buffer protocol without copying data to memory.

The package is built from compiled C++ bindings and ships pre-built wheels for major platforms and Python versions, reducing installation friction. It explicitly does not support incremental hashing. On x86-64 systems, wheels include SSE4.2 optimizations that significantly accelerate certain hash variants, though the vanilla CityHash functions do not benefit from these instructions.

Use it for

  • Hash large NumPy arrays efficiently without copying data in machine learning or scientific computing pipelines.
  • Generate hardware-independent fingerprints for distributed caching or load-balancing systems needing consistent hashes across machines.
  • Fast non-cryptographic hashing in high-throughput applications where speed matters more than cryptographic strength.
  • Implement consistent hashing for data partitioning in distributed databases or key-value stores.
  • Hash fixed-size data structures in performance-critical sections where cryptographic guarantees are unnecessary.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need fast non-cryptographic hashing with buffer-protocol support and don't require incremental hashing.

Pre-built wheels and broad platform coverage make installation straightforward. The aging maintenance status (309 days since release) is a minor concern but not a blocker—the package is stable with no known vulnerabilities. Skip it if you need cryptographic hashing or streaming/incremental hashing.

Install

cityhash on PyPI

Before you install

Medium install friction due to compiled C++ bindings; wheels are pre-built for common platforms (Windows, macOS, Linux x86_64 and ARM64) across Python 3.10–3.13, reducing compilation overhead. Repository shows aging maintenance (309 days since last release) but remains stable.

Requires Python 3.6 or later; buffer-protocol objects like NumPy arrays must be contiguous.

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely in both open-source and proprietary projects with minimal restrictions.

Quickstart

pip install cityhash

from cityhash import CityHash64
result = CityHash64("abc")
print(result)

Verify before relying

  • Whether SSE4.2 support on x86-64 platforms is automatically detected and used at runtime.
  • Performance characteristics compared to other non-cryptographic hash libraries in real-world workloads.
  • Whether the aging maintenance status affects bug-fix responsiveness or security patching.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.6
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceAging 309 days since the last release
Last repo commit
First released
Downloads406,355 / month, #6,897 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: C++Programming Language :: CythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Information AnalysisTopic :: Software Development :: LibrariesTopic :: System :: Distributed Computing

Evidence: cityhash-0.4.10-cp310-cp310-macosx_10_9_x86_64.whl; cityhash-0.4.10-cp310-cp310-macosx_11_0_arm64.whl; cityhash-0.4.10-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; cityhash-0.4.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; cityhash-0.4.10-cp310-cp310-win32.whl; cityhash-0.4.10-cp310-cp310-win_amd64.whl; cityhash-0.4.10-cp311-cp311-macosx_10_9_x86_64.whl; cityhash-0.4.10-cp311-cp311-macosx_11_0_arm64.whl; cityhash-0.4.10-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; cityhash-0.4.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; cityhash-0.4.10-cp311-cp311-win32.whl; cityhash-0.4.10-cp311-cp311-win_amd64.whl; cityhash-0.4.10-cp312-cp312-macosx_10_13_x86_64.whl; cityhash-0.4.10-cp312-cp312-macosx_11_0_arm64.whl; cityhash-0.4.10-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; cityhash-0.4.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; cityhash-0.4.10-cp312-cp312-win32.whl; cityhash-0.4.10-cp312-cp312-win_amd64.whl; cityhash-0.4.10-cp313-cp313-macosx_10_13_x86_64.whl; cityhash-0.4.10-cp313-cp313-macosx_11_0_arm64.whl

Tags

Capabilities
fast non-cryptographic hashingcityhash python wrappergoogle hash functionsnumpy array hashingbuffer protocol hashinghardware-independent fingerprintsdistributed computing hash
Topics
non-cryptographic-hashingnumpy-compatibledistributed-systems
PyPI keywords
googlehashhashingcityhashfarmhashmurmurhashcython

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 › “google hash functions”

  • cityhashPython wrapper for Google's CityHash and FarmHash non-cryptographic…
  • pyfarmhashProvides Python bindings to Google's FarmHash, a fast…
  • safe-pysha3Provides SHA-3, SHAKE, and Keccak hash functions for Python 3.9–3.13…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also clickhouse-cityhash · pyfarmhash · spookyhash · mmhash3 · polars-hash · mmh3 · xxhash · py-multihash · murmurhash · siphash