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.3.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for notebook_httpdbg-0.3.2.tar.gz
Algorithm Hash digest
SHA256 f92e3434e05dfb78adb126aabfa56270362ff2b6eb7bd2f2f81e3131789d94f4
MD5 edba69a032ba25e1144c42ffa4b82c84
BLAKE2b-256 55c6563518772af48080dab8929b9f93a77b1dd4dcb619f4b4fb7d2ff8546cdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for notebook_httpdbg-0.3.2.tar.gz:

Publisher: build.yml on cle-b/notebook-httpdbg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for notebook_httpdbg-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e8f6e01507a7e57b26567592c57c3c12ec7da594f9bff73380e525a8ff931ab
MD5 b097b802f1eaa9dcf931797ddd4cc221
BLAKE2b-256 d8ab0745ab56fa6a5eddab14ae382cb05fc5bb4ed79116e3bf6b180c631f80d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for notebook_httpdbg-0.3.2-py3-none-any.whl:

Publisher: build.yml on cle-b/notebook-httpdbg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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