Skip to main content

Multi-level code structure explorer — interactive drill-down HTML visualizations

Project description

codezoom

Multi-level code structure explorer — interactive drill-down HTML visualizations.

codezoom generates a standalone HTML file that lets you explore a project's structure at multiple levels of detail:

  1. External dependencies — direct and transitive packages from pyproject.toml + uv.lock
  2. Package hierarchy — sub-packages and modules (via pydeps or file-tree fallback)
  3. Module internals — functions and classes extracted from the AST
  4. Class internals — methods and their call relationships

Click any node to drill down. Use breadcrumb navigation to go back up.

Examples


External dependencies (Python)

External dependencies (Java)

Project submodules

A submodule's children

Single-file view (Python)

Single-file view (Java)

Installation

Installing codezoom with uv
uv tool install codezoom
Installing codezoom with pip
pip install codezoom
Installing codezoom from source
git clone https://github.com/apposed/codezoom
uv tool install --with-editable codezoom codezoom

When installed in this fashion, changes to the codezoom source code will be immediately reflected when running codezoom from the command line.

Using codezoom as a dependency
uv add codezoom

or

pixi add --pypi codezoom

Not sure which to use? Read this.

Usage

codezoom /path/to/project                     # auto-detect, output to codezoom.html
codezoom /path/to/project -o output.html      # custom output path
codezoom /path/to/project --name "My Project" # custom display name
codezoom /path/to/project --open              # open in browser after generating

Also works as a module:

python -m codezoom /path/to/project

Requirements

  • Python 3.11+
  • No mandatory runtime dependencies beyond the standard library
  • Optional: pydeps for richer module-level import analysis (falls back to file-tree scanning without it)

Per-project configuration

Projects can include a .codezoom.toml or a [tool.codezoom] section in pyproject.toml:

[tool.codezoom]
exclude = ["tests", "docs", "__pycache__"]

The exclude list is passed to pydeps via -xx to omit modules from the hierarchy.

Language support

Language Status
Python Supported
Java Supported

License

UNLICENSE - All copyright disclaimed.

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

codezoom-2.0.0.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

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

codezoom-2.0.0-py3-none-any.whl (41.7 kB view details)

Uploaded Python 3

File details

Details for the file codezoom-2.0.0.tar.gz.

File metadata

  • Download URL: codezoom-2.0.0.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for codezoom-2.0.0.tar.gz
Algorithm Hash digest
SHA256 15f4a6ff0702a539e766f733cf927565114381a4c305e8d6f65b4ee925896ff7
MD5 04874061a9861788dde92eed526eadc1
BLAKE2b-256 a33bcecc1b01d3a9f75c9c552e476810f59f2eb5079819dc5369d5148e9d7827

See more details on using hashes here.

File details

Details for the file codezoom-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: codezoom-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 41.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for codezoom-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f38c7b23fbffb777de253f2b9dabaa417fc749967e7c90e39c527791d446fbb7
MD5 5a84a8535ce15c763713c6a539b9de3d
BLAKE2b-256 67141f2ffc11915be358ed03febe5b4d1537fc18442bd942e63f4eae0d3efed9

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