Registry /
web-framework / django-password-validators
Install & Compatibility
Where this runs
tested against v1.7.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 66.6MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.4s · import 0.000s · 67MB
66MB installed
● package 66MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
PasswordValidator
✓ from django_password_validators import PasswordValidator
✗ from password_validators import PasswordValidator
Register password validators in Django's settings.py.
# settings.py
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'password_validators.LengthValidator',
'OPTIONS': {
'min_length': 12,
'max_length': 128,
}
},
{
'NAME': 'password_validators.ComplexityValidator',
'OPTIONS': {
'length': 8,
'upper': 1,
'lower': 1,
'digit': 1,
'special': 1,
}
},
{
'NAME': 'password_validators.CommonPasswordValidator',
'OPTIONS': {}
},
]
Upgrade
Version history
1.7.3latest on PyPI · released Dec 11, 2023
Audit
Dependencies
DjangorequiredCore dependency; requires Django >= 1.11.