A django integration for requests.
Project description
django-requests-logger
django-requests-logger is a Django application used as a hook for Requests.
It logs every request made using the Requests library to the database and provides basic data masking for sensitive information.
You can access the logs in the Django admin site.
Installing
pip install django-requests-logger
Add django_requests_logger
in INSTALLED_APPS.
Run python manage.py migrate
Usage
import requests
from django_requests_logger.callbacks import logger as requests_logger
requests.get('https://httpbin.org/', hooks={'response': requests_logger})
TODO
Integrate this application in the Django logging as a handler.
Requirements
If you want to add yourself some functionality to the application:
- Fork it ( https://github.com/GearPlug/django-requests-logger )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Adds my new feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-requests-logger-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb5742fb7f2eddd39106c6430d26136ee28b61b207d619ad27ee68f0206ed1b4 |
|
MD5 | 919be55ebd08ceddb04ae88fb3bdfdb1 |
|
BLAKE2b-256 | 6cf1470025f169a6eaae35f01d606a42bf0a9b3845bb19bc9359ce1a310cd8f7 |