types-pyfarmhash
Typing stubs for pyfarmhash
What it is and what it does
types-pyfarmhash is a type stub package from the typeshed project that supplies type annotations for the pyfarmhash hashing library. It allows static type checkers like mypy and pyright to understand and validate code that calls pyfarmhash functions, catching type errors before runtime. The stubs are maintained to match pyfarmhash version 0.4.* and are tested against mypy 1.20.0 and pyright 1.1.408.
This package contains only type information—it does not include any runtime code or dependencies. It is installed alongside pyfarmhash to enable type-aware development workflows. Because it is part of typeshed, updates and fixes are contributed upstream rather than to this package directly.
Use it for:
- Enable mypy or pyright to type-check code that calls pyfarmhash functions.
- Catch type mismatches in hash input or output handling before runtime.
- Support IDE autocompletion and inline type hints when working with pyfarmhash.
- Maintain type safety in projects that depend on pyfarmhash for consistent hashing.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for the pyfarmhash hashing library, enabling static type checkers to validate code that uses pyfarmhash without runtime overhead.
Yes, if you use pyfarmhash and want static type checking. Install it alongside pyfarmhash to enable type checkers to validate your code. No runtime cost, low friction, and part of the well-maintained typeshed ecosystem. Skip it only if you do not use type checkers or do not use pyfarmhash.
Install
types-pyfarmhash on PyPI
pip
pip install types-pyfarmhashuv
uv add types-pyfarmhashpoetry
poetry add types-pyfarmhashInstalling types-pyfarmhash
Before you install
Low friction installation with no runtime dependencies. Maintained as part of the active typeshed project, last updated 128 days ago.
License in practice
Apache-2.0 permissive license allows use in most projects without significant restrictions.
Quickstart
pip install types-pyfarmhash
# In your code, type checkers will now understand pyfarmhash types
import pyfarmhash
result = pyfarmhash.hash(b'data')
Requires Python 3.10 or later. Only provides type information; pyfarmhash itself must be installed separately.
Verify before relying
- Whether pyfarmhash is automatically installed as a dependency or must be installed separately by the user.
- Coverage completeness of type annotations for all pyfarmhash 0.4.* APIs.
- Specific pyfarmhash functions and their signatures covered by these stubs.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 128 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 124,199/month — #11,880 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_pyfarmhash-0.4.0.20260408-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-retryProvides type hints for the retry package,…
permissive · top 5,000 on PyPI
types-passlibProvides type stubs for the passlib…
permissive · top 5,000 on PyPI
pyfarmhashProvides Python bindings to Google's FarmHash,…
permissive · top 15,000 on PyPI
types-pyserialProvides type hints for the pyserial library,…
permissive · top 5,000 on PyPI
types-tabulateProvides type hints for the tabulate package,…
permissive · top 5,000 on PyPI
types-pyflakesProvides type stubs for the pyflakes static…
permissive · top 15,000 on PyPI
types-coloramaProvides type stubs for colorama, enabling…
permissive · top 5,000 on PyPI
types-PySocksProvides type stubs for PySocks, enabling…
permissive · top 15,000 on PyPI
types-webencodingsProvides type hints for the webencodings…
permissive · top 5,000 on PyPI
types-chevronProvides type hints for the chevron Mustache…
permissive · top 15,000 on PyPI