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.1.tar.gz (34.8 kB 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.1-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for codezoom-2.0.1.tar.gz
Algorithm Hash digest
SHA256 7a6f40434117b825e53cda7a4608951640c417c41e91e0764821f652e8700669
MD5 94d1778943a982139c4dc32deb65b57b
BLAKE2b-256 0b0c945409158779cc882cdaf42b7b2892023c036c03ea12befd88926bfaef4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codezoom-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 42.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1509255d286d9d2c1df3dd3498956f2dd2e745c212e2096332281e45b12b829
MD5 6e2e2433f7565ce91b148f6667fa1720
BLAKE2b-256 7ab10891ef0f34daeff20efe533ca4e661508e9eb23b1717ed44301f3c8e3653

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