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.TimeIt() as timeit: res = requests.post(url, json=payload) weblogtools.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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67aef4140d569b23e1fff1cea05fdcd0c8928561f45131ce3492629adff3131e |
|
MD5 | c02b33e567dd6347a39b2abfb4794958 |
|
BLAKE2b-256 | 3ca3f1507dd2408b15a77616cb75c1c90c70b5aa80421d429742494cd3f10e79 |