A real-time TUI for visualizing source code diagrams with AI-powered architectural summaries.
pyCodeMap helps you design, understand, and explore any Python codebase. It generates a live call graph that updates as you write code, complemented by an executive summary generated by Gemini AI.
- Live Call Graph: Real-time visualization of function calls and class dependencies.
- AI Summary: Automated architectural overviews using Gemini 1.5 Flash.
- Interactive Navigation: Filter diagrams by selecting files or directories in the sidebar.
- Vim-style Navigation: Use
HJKLto move around large diagrams. - Zero Configuration: Works out of the box for any Python project.
uv tool install git+https://github.com/cacrespo/pycodemap.git- Clone the repository:
git clone https://github.com/cacrespo/pycodemap.git cd pycodemap - Install dependencies:
uv sync
- Run:
uv run pycodemap
To enable AI summaries, create a .env file in your project root or set the environment variable:
GOOGLE_API_KEY=your_gemini_api_key_hereRun the tool in any Python project directory:
pycodemapOr specify a path:
pycodemap /path/to/projectHJKL: Scroll diagram.R: Reset filter and refresh.Q: Quit.Click: Select file/folder to focus the diagram.
MIT