Name | django-advanced-password-validation JSON |
Version |
1.2.0
JSON |
| download |
home_page | |
Summary | Extends Django password validation options in an attempt to keep up with industry standards for strong user passwords. |
upload_time | 2023-11-18 05:22:39 |
maintainer | |
docs_url | None |
author | |
requires_python | |
license | Copyright 2020 Ezra Jacob Rice Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
django
password
validator
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# django_advanced_password_validation
[![test](https://github.com/ezrajrice/django_advanced_password_validation/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/ezrajrice/django_advanced_password_validation/actions/workflows/test.yaml)
[![Coverage Status](https://coveralls.io/repos/github/ezrajrice/django_advanced_password_validation/badge.svg?branch=main)](https://coveralls.io/github/ezrajrice/django_advanced_password_validation?branch=main)
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:
```bash
pip install django
```
Alternatively, you can install a specific version of Django via pip:
```bash
pip install django=3.2
```
> **_NOTE:_** See the [django-project](https://docs.djangoproject.com) documentation for information on non-deprecated Django versions.
## Installation
### Normal installation
Install django_advanced_password_validation via pip:
```bash
pip install django_advanced_password_validation
```
### Development installation
```bash
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
```python
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
* **Ezra Rice** - _Initial work_ - [ezrajrice](https://github.com/ezrajrice)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
## Acknowledgments
* **Victor Semionov** - _Contributor_ - [vsemionov](https://github.com/vsemionov)
* **Mostafa Moradian** - _Contributor_ - [mostafa](https://github.com/mostafa)
Raw data
{
"_id": null,
"home_page": "",
"name": "django-advanced-password-validation",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "django,password,validator",
"author": "",
"author_email": "Ezra Rice <ezra.j.rice@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/57/3a/95cfa70cab92eb2024dbf34066b2ef4053ea37b40cee1a5bf335c025826c/django_advanced_password_validation-1.2.0.tar.gz",
"platform": null,
"description": "# django_advanced_password_validation\n\n[![test](https://github.com/ezrajrice/django_advanced_password_validation/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/ezrajrice/django_advanced_password_validation/actions/workflows/test.yaml)\n[![Coverage Status](https://coveralls.io/repos/github/ezrajrice/django_advanced_password_validation/badge.svg?branch=main)](https://coveralls.io/github/ezrajrice/django_advanced_password_validation?branch=main)\n\nExtends 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.\n\nThis package has been tested with python 3.9+.\n\n## Prerequisites\n\nRequires Django 3.2 or later.\nYou can install the latest version of Django via pip:\n\n```bash\npip install django\n```\n\nAlternatively, you can install a specific version of Django via pip:\n\n```bash\npip install django=3.2\n```\n\n> **_NOTE:_** See the [django-project](https://docs.djangoproject.com) documentation for information on non-deprecated Django versions.\n\n## Installation\n\n### Normal installation\n\nInstall django_advanced_password_validation via pip:\n\n```bash\npip install django_advanced_password_validation\n```\n\n### Development installation\n\n```bash\ngit clone https://github.com/ezrajrice/django_advanced_password_validation.git\ncd django_advanced_password_validation\npip install --editable .\n```\n\n### Usage\n\nThe optional validators must be configured in the settings.py file of your django project to be actively used in your project.\n\n#### /my-cool-project/settings.py\n\n```python\nINSTALLED_APPS = [\n ...\n 'django_advanced_password_validation',\n ...\n]\n\nAUTH_PASSWORD_VALIDATORS = [\n ...\n {\n 'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsDigitsValidator',\n 'OPTIONS': {\n 'min_digits': 1\n }\n },\n {\n 'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsUppercaseValidator',\n 'OPTIONS': {\n 'min_uppercase': 1\n }\n },\n {\n 'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsLowercaseValidator',\n 'OPTIONS': {\n 'min_lowercase': 1\n }\n },\n {\n 'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsSpecialCharactersValidator',\n 'OPTIONS': {\n 'min_characters': 1\n }\n },\n ...\n]\n```\n\n### Options\n\nHere is a list of the available options with their default values.\n\n| Validator | Option | Default |\n| --- |:---:| ---:|\n| ContainsDigitsValidator | min_digits | 1 |\n| ContainsUppercaseValidator | min_uppercase | 1 |\n| ContainsLowercaseValidator | min_lowercase | 1 |\n| ContainsSpecialCharactersValidator | min_characters | 1 |\n| MaximumLengthValidator | max_length | 128 |\n| MaxConsecutiveCharactersValidator | max_consecutive | 3 |\n| ConsecutivelyIncreasingDigitValidator | max_consecutive | 3 |\n| ConsecutivelyDecreasingDigitValidator | max_consecutive | 3 |\n\n## Authors\n\n* **Ezra Rice** - _Initial work_ - [ezrajrice](https://github.com/ezrajrice)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.\n\n## Acknowledgments\n\n* **Victor Semionov** - _Contributor_ - [vsemionov](https://github.com/vsemionov)\n* **Mostafa Moradian** - _Contributor_ - [mostafa](https://github.com/mostafa)\n",
"bugtrack_url": null,
"license": "Copyright 2020 Ezra Jacob Rice Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Extends Django password validation options in an attempt to keep up with industry standards for strong user passwords.",
"version": "1.2.0",
"project_urls": {
"repository": "https://github.com/ezrajrice/django_advanced_password_validation"
},
"split_keywords": [
"django",
"password",
"validator"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "13b2f704097638fc4253b9c983881c3f009a78a1f17af9ad496ad0b4c5f562d7",
"md5": "ba3cfd832b8d0d16a4b61b985244682e",
"sha256": "5ae2538099eda910791000efcd971bcc7c1e9eefbf5d466a94afe9b1f9de188c"
},
"downloads": -1,
"filename": "django_advanced_password_validation-1.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ba3cfd832b8d0d16a4b61b985244682e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 9123,
"upload_time": "2023-11-18T05:22:37",
"upload_time_iso_8601": "2023-11-18T05:22:37.684190Z",
"url": "https://files.pythonhosted.org/packages/13/b2/f704097638fc4253b9c983881c3f009a78a1f17af9ad496ad0b4c5f562d7/django_advanced_password_validation-1.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "573a95cfa70cab92eb2024dbf34066b2ef4053ea37b40cee1a5bf335c025826c",
"md5": "f99b990564bb2909374f0b25088e2c51",
"sha256": "632b068e8bc0a428e18c8ae5e3ba2a104829ce905bda91772998c65256440a38"
},
"downloads": -1,
"filename": "django_advanced_password_validation-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "f99b990564bb2909374f0b25088e2c51",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 11456,
"upload_time": "2023-11-18T05:22:39",
"upload_time_iso_8601": "2023-11-18T05:22:39.036069Z",
"url": "https://files.pythonhosted.org/packages/57/3a/95cfa70cab92eb2024dbf34066b2ef4053ea37b40cee1a5bf335c025826c/django_advanced_password_validation-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-18 05:22:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ezrajrice",
"github_project": "django_advanced_password_validation",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "django-advanced-password-validation"
}