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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75fb040f00b57c16e2c96195afda09e6185b72c53b61d8c96aa9cd2bf754a544 |
|
MD5 | 593e09d96da79780084a8f253f307993 |
|
BLAKE2b-256 | 91744f95e70778b937343631ef7aad3938e14b932d256a385dc9db5dcf5e3374 |