Skip to main content

Interactive live architecture viewer for Python projects

Project description

ArchView

See your codebase. Understand it. Then change it.

ArchView gives you a live, interactive map of any Python project's architecture — right in your browser. It parses real Python (via AST, not regex), watches for changes, and updates the graph in real time.

Built for developers who vibe-code and need to stay oriented, or anyone inheriting a codebase they didn't write.

ArchView interface

Why

You're 200 files deep in someone else's project. Or you're building fast and your own code is getting tangled. You need to see the structure — what depends on what, where the entry points are, which modules are isolated.

ArchView shows you all of that in seconds, and keeps updating as you code.

Install

pip install archview

Available on PyPI. Pure Python, works anywhere with Python 3.9+.

Usage

archview /path/to/your/project

Open http://localhost:9090 — that's it.

# Custom port and refresh interval
archview /path/to/project --port 8080 --interval 5

What you see

Color Meaning
Green Entry points — modules that import but aren't imported
Blue Connectors — modules that both import and are imported
Red Utilities — leaf modules only imported by others
Gray Isolated — no import relationships
Red (bright) Syntax errors — files that failed to parse

Features

Live refresh

Edit your code, save — the graph updates automatically. No restart needed.

Interactive exploration

  • Hover a node to see its docstring, type, and exported symbols
  • Click a node to highlight its direct dependencies
  • Double-click to open the file in VS Code
  • Drag nodes to rearrange the layout
  • Click folders to collapse/expand entire packages

Dependency highlighting

Hover over an edge to see exactly which symbols are imported. Click a node and its entire dependency chain lights up — everything else fades.

Export

  • PNG — screenshot the current view
  • Save — persist node positions (restored on next launch)

Ignore patterns

# Exclude directories from analysis
archview ignore tests __pycache__ venv

# List current patterns
archview ignore --list

# Remove a pattern
archview ignore --remove tests

How it works

  1. Collects all .py files (git-aware, respects .archviewignore)
  2. Parses each file's AST to extract imports, functions, classes
  3. Builds a dependency graph with classified nodes
  4. Renders it with Cytoscape.js + Dagre layout
  5. Watches for changes and re-generates every N seconds

Zero dependencies — pure Python stdlib. The frontend ships bundled.

Example

Try it on the example project (hosted on GitHub):

git clone https://github.com/lm17918/archview.git archview-demo
cd archview-demo
pip install archview
archview example_project

License

MIT

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

archview-0.2.1.tar.gz (213.8 kB view details)

Uploaded Source

Built Distribution

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

archview-0.2.1-py3-none-any.whl (211.6 kB view details)

Uploaded Python 3

File details

Details for the file archview-0.2.1.tar.gz.

File metadata

  • Download URL: archview-0.2.1.tar.gz
  • Upload date:
  • Size: 213.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for archview-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a4ca5243d1a28fe4c9d78a1a0dec722e6b182d5ea4be32d88f986fa229b2e236
MD5 012490b598a5653449848db65420209c
BLAKE2b-256 58dcb31a874d1c27392e399c111715a0dbb05c56f5704a4fe3690be6dc64b16b

See more details on using hashes here.

File details

Details for the file archview-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: archview-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 211.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for archview-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca5d72fada1604e9f5ea4d2a369b02bcccc93bdc1c4ed034e1ca1e816d1138a3
MD5 151204b0b5dbf2435163d8e08882ad5a
BLAKE2b-256 469751eb3a4fb5234eacbc6655cc1ae1a7792191b485102a128c6230bd4022f2

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