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
File details
Details for the file django-weblogtools-0.1.3.tar.gz
.
File metadata
- Download URL: django-weblogtools-0.1.3.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f26132f1087574da23d23c3d6297818d89496420f0d3a9237d3f2e155e2d2ce9 |
|
MD5 | e7abb41ae54019f30b0e04b0a02da5e1 |
|
BLAKE2b-256 | 4ec9659329488a89a02ef55003aacc35fd30138db91b2ea67ef899f3ed43c4bb |
File details
Details for the file django_weblogtools-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: django_weblogtools-0.1.3-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4086d54a3ca68974c501689a26ca5b30eca1597a0701f9dd08731cfec674aaa |
|
MD5 | fcec81cc4d1ba92280d0c9846289ad71 |
|
BLAKE2b-256 | 7c4a6f8d59f30c8fb38037cc69370c6c53e9b9c3a9e465ec61fa703e1086d5bb |