A django integration for requests.
Project description
# django-requests-logger
django-requests-logger is a Django application used as a hook for [Requests](http://docs.python-requests.org/en/master/).
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
* [Django](https://github.com/django/django)
* [requests](https://github.com/requests/requests)
#### If you want to add yourself some functionality to the application:
1. Fork it ( https://github.com/GearPlug/django-requests-logger )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Adds my new feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
django-requests-logger is a Django application used as a hook for [Requests](http://docs.python-requests.org/en/master/).
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
* [Django](https://github.com/django/django)
* [requests](https://github.com/requests/requests)
#### If you want to add yourself some functionality to the application:
1. Fork it ( https://github.com/GearPlug/django-requests-logger )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Adds my new feature')
4. Push to the branch (git push origin my-new-feature)
5. 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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89161a3afd99a9290445438ae7885229bc088c382a877105d903a5e9a68f1bb8 |
|
MD5 | 2181922c0e6e12aea378cf5746a4c6bd |
|
BLAKE2b-256 | f4669d64c90b9518d2dbdac2e2e7eaa0e6d8f69723e3934bccc24332fca52b0b |