Name | django-request-hook JSON |
Version |
0.0.3
JSON |
| download |
home_page | |
Summary | Django middlewares to track request logs |
upload_time | 2023-09-09 05:32:08 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3 |
license | MIT License Copyright (c) 2023 Joneai 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
request log
hook
api log track
middleware
|
VCS |
|
bugtrack_url |
|
requirements |
Django
requests
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Django Request Hook
Django middlewares to track request/response logs. Catch the logs and send it to anywhere you want through HTTP.
## Installation
You can install the Django Request Hook from [PyPI](https://pypi.org/project/django-request-hook/)
## How to use
1. PyPI
```
pip install django-request-hook
```
2. Add in MIDDLEWARE
```
MIDDLEWARE = [
...,
'django_request_hook.middleware.LogTracker'
]
```
3. Settings
```
REQUEST_HOOK_EXCLUDES = []
REQUEST_HOOK_LOG_URL = 'https://xxx/api/log'
REQUEST_HOOK_LOG_TOKEN = 'mytoken'
```
Raw data
{
"_id": null,
"home_page": "",
"name": "django-request-hook",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": "",
"keywords": "django,request log,hook,api log track,middleware",
"author": "",
"author_email": "joneai <mxjoneai@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/b8/76/2d3c4f59801c4a590874cf66a7b8065b126b844a17cd3cd4d9718579e047/django-request-hook-0.0.3.tar.gz",
"platform": null,
"description": "# Django Request Hook\n\nDjango middlewares to track request/response logs. Catch the logs and send it to anywhere you want through HTTP.\n\n## Installation\n\nYou can install the Django Request Hook from [PyPI](https://pypi.org/project/django-request-hook/)\n\n## How to use\n\n1. PyPI\n\n```\npip install django-request-hook\n```\n\n2. Add in MIDDLEWARE\n\n```\nMIDDLEWARE = [\n ...,\n 'django_request_hook.middleware.LogTracker'\n]\n```\n\n3. Settings\n\n```\nREQUEST_HOOK_EXCLUDES = []\n\nREQUEST_HOOK_LOG_URL = 'https://xxx/api/log'\n\nREQUEST_HOOK_LOG_TOKEN = 'mytoken'\n```\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 Joneai 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": "Django middlewares to track request logs",
"version": "0.0.3",
"project_urls": {
"Homepage": "https://github.com/tacnaci/django-request-hook"
},
"split_keywords": [
"django",
"request log",
"hook",
"api log track",
"middleware"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9edd349364790d462914c0b4373ae5d297ee6906e9a852e097745be5db6b6cba",
"md5": "ae2a22a779c7c2360981dcc05e7291d7",
"sha256": "02bf252ffe0433be635cef9292648e2e5c88a7fdc73dc6ad0051f44be6dd2b42"
},
"downloads": -1,
"filename": "django_request_hook-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ae2a22a779c7c2360981dcc05e7291d7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 4136,
"upload_time": "2023-09-09T05:32:06",
"upload_time_iso_8601": "2023-09-09T05:32:06.607818Z",
"url": "https://files.pythonhosted.org/packages/9e/dd/349364790d462914c0b4373ae5d297ee6906e9a852e097745be5db6b6cba/django_request_hook-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b8762d3c4f59801c4a590874cf66a7b8065b126b844a17cd3cd4d9718579e047",
"md5": "50bc019b63cd5dd8082c7f01fee90c0e",
"sha256": "8922844bbe41b84139bdc0b5bd983b45b6696145866d4a777de4f89feca126b9"
},
"downloads": -1,
"filename": "django-request-hook-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "50bc019b63cd5dd8082c7f01fee90c0e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 3267,
"upload_time": "2023-09-09T05:32:08",
"upload_time_iso_8601": "2023-09-09T05:32:08.665340Z",
"url": "https://files.pythonhosted.org/packages/b8/76/2d3c4f59801c4a590874cf66a7b8065b126b844a17cd3cd4d9718579e047/django-request-hook-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-09 05:32:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tacnaci",
"github_project": "django-request-hook",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "Django",
"specs": [
[
"==",
"4.2"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.31.0"
]
]
}
],
"lcname": "django-request-hook"
}