--- id: types-pyfarmhash version: "0.4.0.20260408" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-pyfarmhash — Typing stubs for pyfarmhash License: permissive · Maintenance: active · Downloads: 124.2K/mo ## 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 above — 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 pip install types-pyfarmhash uv add types-pyfarmhash poetry add types-pyfarmhash ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 124.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags type stubs pyfarmhash, typing stubs hashing, pyfarmhash type hints, mypy pyfarmhash annotations, static type checking farmhash, typeshed stubs, python type checking hashing, type-stubs, typeshed [View on SkillFed](https://skillfed.io/packages/types-pyfarmhash) · [View on PyPI](https://pypi.org/project/types-pyfarmhash/)