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.0.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.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notebook_httpdbg-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 ce0f4edc58dd69a127d2812ab3f54d6c8442c93ba819105ed33bcb9c62724ccf
MD5 fc9791ae99cce50b22643782bbd233a3
BLAKE2b-256 7fd4d28fdaea12c90c67f646d549f9d2c174ff0300856587a3a90e2db7e5a85a

See more details on using hashes here.

Provenance

The following attestation bundles were made for notebook_httpdbg-0.3.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for notebook_httpdbg-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58bea05e2af474c038371a53bce88a07d0bb4f9ef1f14ae4b52cb511e1b7c1ac
MD5 67a6f0423da67a225e29f93b1b538c4d
BLAKE2b-256 07d334d4e550bcf5d3fc0c9306d2afb5f90e682de40b7202f7f559c779d63e36

See more details on using hashes here.

Provenance

The following attestation bundles were made for notebook_httpdbg-0.3.0-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