types-humanfriendly
Typing stubs for humanfriendly
What it is and what it does
This is a type stub package that sits alongside humanfriendly to provide type annotations for static analysis tools. It implements PEP 561, the standard for distributing type information separately from runtime code, allowing type checkers like mypy and pyright to understand humanfriendly's API without modifying the original package.
The stubs were generated from typeshed and tested against mypy 1.15.0, pyright 1.1.396, and pytype 2024.10.11. However, the package is explicitly unmaintained—future updates are contributed directly to the typeshed project rather than released as new versions here, so it serves as a snapshot for humanfriendly 10.0.* compatibility.
Use it for:
- Enable mypy or pyright to type-check code that imports and uses humanfriendly functions without type errors.
- Integrate humanfriendly into a typed codebase where strict type checking is enforced in CI/CD.
- Provide IDE autocomplete and type hints for humanfriendly in editors like PyCharm and VS Code.
- Validate humanfriendly usage in a monorepo or library that requires full type coverage.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides PEP 561 type stubs for the humanfriendly package, enabling static type checkers like mypy, pyright, and pytype to validate code that uses humanfriendly.
Yes, if you use humanfriendly 10.0.* and want static type checking. Install it alongside humanfriendly to unlock type support in mypy, pyright, or similar tools. Be aware it is unmaintained and will not track future humanfriendly versions—updates go to typeshed instead.
Install
types-humanfriendly on PyPI
pip
pip install types-humanfriendlyuv
uv add types-humanfriendlypoetry
poetry add types-humanfriendlyInstalling types-humanfriendly
Before you install
Low friction: a pure-Python wheel with no runtime dependencies. Maintenance is active but the package itself is explicitly unmaintained—updates are contributed upstream to typeshed rather than released here.
License in practice
Apache-2.0 is permissive; you can use this package freely in most contexts, including commercial projects, with minimal restrictions.
Quickstart
pip install types-humanfriendly
# Then use with mypy, pyright, or another PEP 561 type checker
# in your project configuration (e.g., mypy.ini or pyproject.toml)
# to enable type checking of humanfriendly imports
Requires Python >=3.9 and a compatible type checker (mypy, pyright, pytype, or similar) to be useful.
Verify before relying
- Whether this package's stubs remain accurate for humanfriendly versions beyond 10.0.*, given the explicit unmaintained status.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 513 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 210,572/month — #9,492 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_humanfriendly-10.0.1.20250319-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
humanfriendlyFormats and parses numbers, file sizes,…
permissive · top 1,000 on PyPI
types-typed-astProvides type stubs for the typed-ast package,…
permissive · top 15,000 on PyPI
pymupdf-stubsProvides type stubs for PyMuPDF to enable…
permissive · top 15,000 on PyPI
types-PillowProvides type stubs for Pillow, enabling static…
permissive · top 5,000 on PyPI
types-SQLAlchemyProvides PEP 561 type stubs for SQLAlchemy,…
permissive · top 15,000 on PyPI
types-caldavProvides type stubs for caldav, enabling static…
permissive · top 15,000 on PyPI
docutils-stubsProvides PEP 561 type stubs for docutils,…
permissive · top 15,000 on PyPI
types-emojiProvides type stubs for the emoji package,…
permissive · top 15,000 on PyPI
types-Flask-SQLAlchemyProvides type stubs for Flask-SQLAlchemy to…
permissive · top 15,000 on PyPI
types-urllib3Provides type stubs for urllib3 to enable…
permissive · top 1,000 on PyPI