Skip to main content

A notebook extension to trace HTTP(S) requests.

Project description

notebook-httpdbg

notebook-httpdbg is a notebook extension to trace the HTTP requests.

installation

pip install notebook-httpdbg

usage

load the extension in the notebook

%load_ext notebook_httpdbg

trace the HTTP requests for a cell

%%httpdbg

configuration

%%httpdbg --header 500 --body 10000

You can choose the number of character to print for each request.

example

In [1]: %load_ext notebook_httpdbg
In [2]: import requests
In [3]: %%httpdbg
        _ = requests.get("https://www.example.com")
Out [3]: - [httpdbg] 1 requests in 0.48 seconds
             - 200 GET https://www.example.com/
                 + request
                 - reponse
                    Content-Encoding: gzip
                    Accept-Ranges: bytes
                    Age: 428224
                    Cache-Control: max-age=604800
                    Content-Type: text/html; charset=UTF-8
                    Date: Sun, 05 Nov 2023 08:21:08 GMT
                    Etag: "3143526347+gzip"
                    Expires: Sun, 12 Nov 2023 08:21:08 GMT
                    Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
                    Server: ECS (bsb/27DC)
                    Vary: Accept-Encoding
                    X-Cache: HIT
                    Content-Length: 648

                    <!doctype html>
                    <html>
                    <head>
                        <title>Example Domain</title>

                        <meta charset="utf-8" />
                        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
                        <meta name="viewport" content="width=device-width, initial-scale=1" />
                        <style type="text/css">
        

documentation

https://httpdbg.readthedocs.io/en/latest/notebook/

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

notebook_httpdbg-0.2.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

notebook_httpdbg-0.2.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file notebook_httpdbg-0.2.0.tar.gz.

File metadata

  • Download URL: notebook_httpdbg-0.2.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for notebook_httpdbg-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6b83b597a79feae26db4ec6eff790822eb69cbe896bddc4b84284de69fdd3ad8
MD5 b4f317cbe2cff3a7398f6c43b06a822f
BLAKE2b-256 fb4a61ab8c48095adaedc1f3e331bb05041f5895de5c7b22177c48c5818d54ba

See more details on using hashes here.

File details

Details for the file notebook_httpdbg-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for notebook_httpdbg-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b0a0ca421b9fa29541f0d37669f987ce032f725bbb1b79b5f453ad72d94579b
MD5 b55d20f34b03ed070f1f89037d2602d7
BLAKE2b-256 2a488c89027ebb53a3b19c8bb3a009d91adf8a8c82ea737dca1c9fea6365d699

See more details on using hashes here.

Supported by

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