Registry / type-stubs / types-pyfarmhash

types-pyfarmhash

JSON →
library0.4.0.20260408pypypiunverified

Typing stubs for pyfarmhash, provided by typeshed. Currently at version 0.4.0.20260408, updated regularly alongside typeshed releases. These stubs enable type-checking for the pyfarmhash library, which provides farmhash hash functions. Requires Python >=3.10.

pip install types-pyfarmhash
INSTALL
IMPORT
SIG · TYPES-PYFARMHASH
T
types-pyfarmhash
type-stubspythonv0.4.0.20260408
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.4.0.20260408 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FarmHash
from farmhash_stubs import FarmHash
from farmhash-stubs import FarmHash

Basic usage of pyfarmhash with type stub support.

import pyfarmhash # hash64 with bytes or string seed result = pyfarmhash.hash64(b"hello", seed=123) print(result) # hash64 with string seed (encoded in C) result = pyfarmhash.hash64("hello", seed=456) print(result)
Debug
Known issues
gotchaThe seed parameter must be provided as a keyword argument for some functions.
fix
Always pass seed as keyword: pyfarmhash.hash64(b'data', seed=0)
affects: all
gotchaInput types must be bytes or str for hash functions. Passing integers or other types will raise TypeError.
fix
Ensure input is bytes: pyfarmhash.hash64(b'123') vs hash64(123).
affects: all
Upgrade
Version history
0.4.0.20260408latest on PyPI · released Apr 8, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
36
OpenAI (training)
1
Resources