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 pip
pip install dictscope
Via uv
uv add 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dictscope-0.1.1.tar.gz.
File metadata
- Download URL: dictscope-0.1.1.tar.gz
- Upload date:
- Size: 4.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
382702a20908fcf601c47d66be6da6a5e0faf476ebd2b200aa2865a6dc4442a1
|
|
| MD5 |
4b02d88ec09ccfa156d23d6bb55b6bf4
|
|
| BLAKE2b-256 |
3667cf4952e1e6f85e04c3f4feabab27498b4449e0e082769708a4f215481d37
|
File details
Details for the file dictscope-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dictscope-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe6544441b9546f7dca871223cec8260fd94fa230433cf777da1a731d79ee4c7
|
|
| MD5 |
6397687ce2189bf39d9e518eec92ff44
|
|
| BLAKE2b-256 |
5587a2413ace00ef99ed6f96206c6e8f5114f4dca8ab380ba16f050b4b9a13d6
|