Skip to main content

Python bindings for zxcvbn-rs, the Rust implementation of zxcvbn

Project description

zxcvbn-rs-py

Python bindings for zxcvbn-rs, the Rust implementation of zxcvbn

build PyPI version


Documentation: https://fief-dev.github.io/zxcvbn-rs-py/

Source Code: https://github.com/fief-dev/zxcvbn-rs-py


Installation

pip install zxcvbn-rs-py

Quickstart

from zxcvbn_rs_py import zxcvbn

r = zxcvbn("correcthorsebatterystaple")
print(r.score)

Benchmark

Thanks to its Rust core, zxcvbn-rs-py is ~5 times faster than the pure Python implementation, zxcvbn-python.

zxcvbn-rs-py benchmark

Serve the documentation

You can serve the Mkdocs documentation with:

hatch run docs-serve

It'll automatically watch for changes in your code.

License

This project is licensed under the terms of the MIT license.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page