| Name | age-verification-psehack JSON |
| Version |
0.2.1
JSON |
| download |
| home_page | None |
| Summary | A Django middleware for verifying the user's age before allowing them access to resources |
| upload_time | 2024-09-05 12:49:55 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.8 |
| license | None |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
A Django middleware for verifying the user's age before allowing them access to a resource.
Developed for the purposes of the PSE Hackathon held in Sep 2024.
The user is expected to own an Android or iOS device with an **NFC reader** and a compatible passport.
## Installation
- pip install age_verification_psehack
In your Django project's `settings.py`:
Add the following line the bottom of the MIDDLEWARE section:
- "age_verification_psehack.middleware.AgeVerificationMiddleware"
Add a new AGE_VERIFICATION_PATHS setting containing all paths requiring age verification:
- AGE_VERIFICATION_PATHS = ['/protected_path1', '/protected/path2']
#### For developers only: testing out local changes
In case if you need to make changes and test them, in the root of this repo run
- python pip install build
- python -m build
In the root of your Django project create a file `requirements.txt` with the following:
-e path/to/the/root/of/this/repo
Then run:
python -m pip install -r requirements.txt
Raw data
{
"_id": null,
"home_page": null,
"name": "age-verification-psehack",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/51/a7/59ba13cc8d32dfc075dc254c6ed62e9af6053ec4de7e7781227642b14e1a/age_verification_psehack-0.2.1.tar.gz",
"platform": null,
"description": "A Django middleware for verifying the user's age before allowing them access to a resource.\nDeveloped for the purposes of the PSE Hackathon held in Sep 2024.\n\nThe user is expected to own an Android or iOS device with an **NFC reader** and a compatible passport.\n\n## Installation\n\n- pip install age_verification_psehack\n\nIn your Django project's `settings.py`:\n\nAdd the following line the bottom of the MIDDLEWARE section:\n\n- \"age_verification_psehack.middleware.AgeVerificationMiddleware\"\n\nAdd a new AGE_VERIFICATION_PATHS setting containing all paths requiring age verification:\n\n- AGE_VERIFICATION_PATHS = ['/protected_path1', '/protected/path2']\n\n\n\n\n\n#### For developers only: testing out local changes\n\nIn case if you need to make changes and test them, in the root of this repo run\n\n- python pip install build\n- python -m build\n\nIn the root of your Django project create a file `requirements.txt` with the following:\n\n-e path/to/the/root/of/this/repo\n\nThen run:\n\npython -m pip install -r requirements.txt\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "A Django middleware for verifying the user's age before allowing them access to resources",
"version": "0.2.1",
"project_urls": {
"Repository": "https://github.com/themighty1/age_verification_psehack"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "004ac4a2b81467be4374ed15d9ab2c6e7663a58408c6762f5d2b4f29a76b145e",
"md5": "057a08a090c38bbaf452b9100a632f77",
"sha256": "14f187861a5c313459cd193826e3433fd5f381f3fea5377dae71e1e9c68f8bc0"
},
"downloads": -1,
"filename": "age_verification_psehack-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "057a08a090c38bbaf452b9100a632f77",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5891,
"upload_time": "2024-09-05T12:49:54",
"upload_time_iso_8601": "2024-09-05T12:49:54.338613Z",
"url": "https://files.pythonhosted.org/packages/00/4a/c4a2b81467be4374ed15d9ab2c6e7663a58408c6762f5d2b4f29a76b145e/age_verification_psehack-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "51a759ba13cc8d32dfc075dc254c6ed62e9af6053ec4de7e7781227642b14e1a",
"md5": "7e39e84cee916edd151df960609a7f70",
"sha256": "4f3d64aec219c940991134b948564eb24c38d590e4de3104668d29ad37c1c5ae"
},
"downloads": -1,
"filename": "age_verification_psehack-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "7e39e84cee916edd151df960609a7f70",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4838,
"upload_time": "2024-09-05T12:49:55",
"upload_time_iso_8601": "2024-09-05T12:49:55.464876Z",
"url": "https://files.pythonhosted.org/packages/51/a7/59ba13cc8d32dfc075dc254c6ed62e9af6053ec4de7e7781227642b14e1a/age_verification_psehack-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-05 12:49:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "themighty1",
"github_project": "age_verification_psehack",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "age-verification-psehack"
}