Skip to main content

Universal dictionary visualizer for Python

Project description

DictScope 🔭

DictScope is a lightweight, dependency-free tool to visualize Python dictionaries and JSON data in your browser in real-time.

Perfect for debugging scripts, monitoring loops, and inspecting complex nested data structures without spamming your console.

✨ Features

  • Zero Dependencies: Uses only Python standard library.
  • Real-time: Updates automatically as your data changes.
  • Interactive: Collapse and expand nested lists and dictionaries.
  • Network Ready: View data from your phone or another laptop in the local network.
  • Dark Mode: Easy on the eyes.

📦 Installation

Via uv (Recommended)

uv add dictscope

or

uv add git+https://github.com/Zidrax/dictscope.git

Via pip

pip install dictscope

🚀 Usage

Just import render and pass any dictionary to it. DictScope will start a local server and open your browser automatically.

from dictscope import render
import time
import math
# 1. Prepare your data
data = {
    "status": "running",
    "metrics": {"cpu": 0, "memory": []},
    "config": {"debug": True}
}
# 2. Update it in a loop
for i in range(100):
    data["metrics"]["cpu"] = math.sin(i / 10)
    data["metrics"]["memory"].append(i)
    
    # 3. Render! (Browser updates automatically)
    render(data)
    
    time.sleep(0.1)

⏸ Controls

Pause/Resume: Click the button in the top right corner to freeze the data stream and inspect the current state.

Collapse/Expand: Click on the ▼ arrows to navigate deep JSON structures.

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

dictscope-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

dictscope-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file dictscope-0.1.0.tar.gz.

File metadata

  • Download URL: dictscope-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"25.11","id":"xantusia","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dictscope-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2e0ad69fa645e3607a8108085ab919107fc0e9bb8dccca8274367b0c654c3865
MD5 b296e9ad5ad40a6b33432d7dbfd2e71e
BLAKE2b-256 b10a7d2353f7973b09a71ee790d76ae09168c2f2189403a36950ee1816de6d54

See more details on using hashes here.

File details

Details for the file dictscope-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dictscope-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"25.11","id":"xantusia","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dictscope-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40b16c1c9fb7a91d0b29073730c17eaaa5e5bc14f3e45e93331c2af2ba2d4693
MD5 2adce007bd04c447b3ffa3b5ba99ddfd
BLAKE2b-256 13960c75979c651e3d06829b30ca871df87be63601aecd64ddbea342af3ebc31

See more details on using hashes here.

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