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

Project submodules

A submodule's children

Another submodule's children

Single-file view

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 <project>_deps.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-1.0.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

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

codezoom-1.0.0-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for codezoom-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8e9e2a19f368f0003c41338cdde6a2f142aa2ca6fb3ff1a35b4b05e191ee8bcb
MD5 f938c31c95a6f00781d80a9b5d00d135
BLAKE2b-256 d7909e9eb96f855e719454cd301f13237aca3026e3fd7e5e282a6487c93c100c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for codezoom-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca4044ad79ba99afa9b2843fc88bf705a43ed04c633f300911f9becc81c95b2b
MD5 faacde05f309c1faadb4b5fa23f4c29e
BLAKE2b-256 86ff6abed14a265a11eed1f598bbb35bd8b72a9706fbbd18471dfa7c094248f6

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