Skip to main content

django_advanced_password_validation

test Coverage Status

Extends Django password validation options to include minimum uppercase, minimum lowercase, minimum numerical, and minimum special characters. This was created in an attempt to keep up with industry standards for strong user passwords.

This package has been tested with python 3.9+.

Prerequisites

Requires Django 3.2 or later. You can install the latest version of Django via pip:

pip install django

Alternatively, you can install a specific version of Django via pip:

pip install django=3.2

NOTE: See the django-project documentation for information on non-deprecated Django versions.

Installation

Normal installation

Install django_advanced_password_validation via pip:

pip install django_advanced_password_validation

Development installation

git clone https://github.com/ezrajrice/django_advanced_password_validation.git
cd django_advanced_password_validation
pip install --editable .

Usage

The optional validators must be configured in the settings.py file of your django project to be actively used in your project.

/my-cool-project/settings.py

INSTALLED_APPS = [
    ...
    'django_advanced_password_validation',
    ...
]

AUTH_PASSWORD_VALIDATORS = [
    ...
    {
        'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsDigitsValidator',
        'OPTIONS': {
            'min_digits': 1
        }
    },
    {
        'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsUppercaseValidator',
        'OPTIONS': {
            'min_uppercase': 1
        }
    },
    {
        'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsLowercaseValidator',
        'OPTIONS': {
            'min_lowercase': 1
        }
    },
    {
        'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsSpecialCharactersValidator',
        'OPTIONS': {
            'min_characters': 1
        }
    },
    ...
]

Options

Here is a list of the available options with their default values.

Validator Option Default
ContainsDigitsValidator min_digits 1
ContainsUppercaseValidator min_uppercase 1
ContainsLowercaseValidator min_lowercase 1
ContainsSpecialCharactersValidator min_characters 1
MaximumLengthValidator max_length 128
MaxConsecutiveCharactersValidator max_consecutive 3
ConsecutivelyIncreasingDigitValidator max_consecutive 3
ConsecutivelyDecreasingDigitValidator max_consecutive 3

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • Victor Semionov - Contributor - vsemionov
  • Mostafa Moradian - Contributor - mostafa

Metadata

Release files for django-advanced-password-validation 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-advanced-password-validation 1.3.1
File Size Uploaded Provenance Actions
django_advanced_password_validation-1.3.1.tar.gz 11.8 kB With provenance Details for django_advanced_password_validation-1.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-advanced-password-validation 1.3.1
File Interpreter ABI Platform Actions
django_advanced_password_validation-1.3.1-py3-none-any.whl Python 3 none any Details for django_advanced_password_validation-1.3.1-py3-none-any.whl

Total release size: 21.0 kB

Release files / django_advanced_password_validation-1.3.1.tar.gz

Download URL django_advanced_password_validation-1.3.1.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
31cbc250e4c1a076ce2bde5a78174a0472067d43af4f939aafb59f610c39fb89
BLAKE2b-256 checksum
How to use checksums
6c53bfbd77dbc2ce4aa6e378d33ba4bcb3362558d9cd3748235d872e35966c1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / django_advanced_password_validation-1.3.1-py3-none-any.whl

Download URL django_advanced_password_validation-1.3.1-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9fedef0cdc6a1c20a7b3ac08facfd01af097c752286afc6c32df8f66dab116b
BLAKE2b-256 checksum
How to use checksums
0c2d93e281f7c9f6928024bd566e0f393a8ff7c0e579dcffafcb60cf5773d7bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for django-advanced-password-validation 1.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_advanced_password_validation-1.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page