skillfed

types-pyfarmhash

Typing stubs for pyfarmhash

types-pyfarmhash v0.4.0.20260408 124.2K downloads/30d#11,880 on PyPI37
Permissive license Apache-2.0 Active released

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-pyfarmhash

uv

uv add types-pyfarmhash

poetry

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 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs pyfarmhashtyping stubs hashingpyfarmhash type hintsmypy pyfarmhash annotationsstatic type checking farmhashtypeshed stubspython type checking hashing
type-stubstypeshed

More Software Development packages