Skip to main content

dump requests' requests http message content to stderr or your custom file

Project description

Requests Dump

Dump requests' http requests message content to stderr or your custom file.

You may consider use https://toolbelt.readthedocs.io/en/latest/dumputils.html instead

Usage

See test.py.

Custom pretty

import requests
from requests_dump import pretty_request, pretty_response

req = requests.Request('POST', 'http://ip-api.com/json')
print(pretty_request(req))

res = requests.Session().send(req.prepare())
print(pretty_response(res))

Inspired by

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

requests_dump2-0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file requests_dump2-0.2-py3-none-any.whl.

File metadata

  • Download URL: requests_dump2-0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.1

File hashes

Hashes for requests_dump2-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ce56702949de3984bcc9b9c43df9091ad6f0de8cfe36e92aef382d2c3000b7b
MD5 a05ed5a5c1df2efa48b996feb6a059bf
BLAKE2b-256 30ccb5639bbf8b2cec99748781c5fcae00117f6cc59e84de05d06e01eab7ea06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page