Skip to content

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

License

Notifications You must be signed in to change notification settings

fief-dev/zxcvbn-rs-py

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published