types-zxcvbn
Typing stubs for zxcvbn
What it is and what it does
types-zxcvbn is a type stub package from the typeshed project that provides type annotations for the zxcvbn password strength estimation library. It allows Python type checkers like mypy and pyright to understand and validate the types used when calling zxcvbn functions, catching type errors at check time rather than runtime.
The package itself contains no runtime code—it is purely metadata for type checkers. It targets zxcvbn version 4.5.* and has been tested with mypy 2.1.0 and pyright 1.1.409. Installation is lightweight with no dependencies, and it requires Python 3.10 or later. If you use zxcvbn in a typed codebase, installing this stub package enables your type checker to understand zxcvbn's API.
Use it for:
- Enable mypy or pyright to type-check code that calls zxcvbn password strength functions.
- Catch type mismatches in zxcvbn function arguments during static analysis before deployment.
- Provide IDE autocomplete and inline type documentation for zxcvbn methods in editors that support type stubs.
- Maintain strict type safety in security-sensitive password validation workflows.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for the zxcvbn password strength estimation library, enabling type checkers to validate code that uses zxcvbn.
Yes, if you use zxcvbn in a type-checked Python project. It is a lightweight, actively maintained stub package with no runtime overhead and permissive licensing. Install it alongside zxcvbn to enable full type checking support. If you do not use type checkers or do not use zxcvbn, it provides no value.
Install
types-zxcvbn on PyPI
pip
pip install types-zxcvbnuv
uv add types-zxcvbnpoetry
poetry add types-zxcvbnInstalling types-zxcvbn
Before you install
Low friction install with no runtime dependencies. Actively maintained as part of typeshed; last commit 2026-08-14 with 88 days since latest release.
License in practice
Apache-2.0 permissive license allows use in most projects without significant restrictions.
Quickstart
pip install types-zxcvbn
# In your code using zxcvbn:
import zxcvbn
result: dict = zxcvbn.zxcvbn("password")
Requires Python 3.10 or later; zxcvbn itself must be installed separately for runtime functionality.
Verify before relying
- Whether this stub package is automatically kept in sync with zxcvbn releases or requires manual updates.
- Coverage completeness: whether all zxcvbn APIs are fully typed or if some remain untyped.
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 — 88 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 372,181/month — #7,166 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_zxcvbn-4.5.0.20260518-py3-none-any.whl
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
types-html5libProvides type hints for the html5lib HTML…
permissive · top 5,000 on PyPI
zxcvbnEstimates password strength by analyzing…
permissive · top 5,000 on PyPI
django-zxcvbn-password-validatorA Django password validator that uses pattern…
permissive · top 15,000 on PyPI
types-cffiProvides type stubs for the cffi package,…
permissive · top 5,000 on PyPI
types-tomlProvides type hints for the toml package,…
permissive · top 1,000 on PyPI
types-qrcodeProvides type stubs for the qrcode package,…
permissive · top 15,000 on PyPI
types-mockProvides type stubs for the mock library,…
permissive · top 5,000 on PyPI
types-pexpectProvides type stubs for pexpect, enabling type…
permissive · top 5,000 on PyPI
types-pysftpProvides type hints for the pysftp package,…
permissive · top 15,000 on PyPI
types-xlrdProvides type hints for the xlrd library,…
permissive · top 15,000 on PyPI