A simple Django app to log http request / response with external services.
Project description
Weblogtools is a simple Django app to log http request to database, in order to have a nice interface to check the input / output data with external service.
Quick start
Add “weblogtools” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'weblogtools', ]
Include the weblogtools URLconf in your project urls.py like this:
path('weblogtools/', include('weblogtools.urls')),
Run python manage.py migrate to create the weblogtools models.
now you can use weblogtools like belows. more see the weblogtools package source code:
with weblogtools.biz.TimeIt() as timeit: res = requests.post(url, json=payload) weblogtools.biz.http_log_from_response('upload_case', res, timeit.duration)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_weblogtools-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4086d54a3ca68974c501689a26ca5b30eca1597a0701f9dd08731cfec674aaa |
|
MD5 | fcec81cc4d1ba92280d0c9846289ad71 |
|
BLAKE2b-256 | 7c4a6f8d59f30c8fb38037cc69370c6c53e9b9c3a9e465ec61fa703e1086d5bb |