Skip to main content

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

Metadata

Release files for requests-dump2 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for requests-dump2 0.2
File Interpreter ABI Platform Actions
requests_dump2-0.2-py3-none-any.whl Python 3 none any Details for requests_dump2-0.2-py3-none-any.whl

Release files / requests_dump2-0.2-py3-none-any.whl

Download URL requests_dump2-0.2-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ce56702949de3984bcc9b9c43df9091ad6f0de8cfe36e92aef382d2c3000b7b
BLAKE2b-256 checksum
How to use checksums
30ccb5639bbf8b2cec99748781c5fcae00117f6cc59e84de05d06e01eab7ea06
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for requests-dump2 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page