Skip to content

SrayaManoj/python-code-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔍 CodeLens: Python Codebase Visualizer

Transform any Python codebase into an interactive visual map within seconds. Powered by AST, NetworkX, and PyVis.

Python 3.9+ Built with Streamlit License: MIT PRs Welcome

✨ Overview

CodeLens helps you understand complex Python projects at a glance. Simply upload your codebase, and watch as it transforms into an interactive visualization of classes, functions, and their relationships.

🚀 Key Features

  • Instant Analysis: Upload any Python project as ZIP and get immediate insights
  • Deep Understanding: Automatically maps all classes and function relationships
  • Interactive Exploration: Navigate through your codebase visually
  • Zero Configuration: No setup required - just upload and explore

🎮 Live Demo

Experience CodeLens in action: Try the Live Demo

CodeLens Demo

🎥 Demo

Click here to watch the demo video

🛠️ Technology Stack

  • Core Engine: Python 3.9+
  • Code Analysis: Abstract Syntax Trees (AST)
  • Graph Processing: NetworkX
  • Visualization: PyVis
  • User Interface: Streamlit

🔄 Architecture

graph LR
    A[Code Upload] --> B[AST Parser]
    B --> C[Structure Analyzer]
    C --> D[Graph Generator]
    D --> E[Interactive Visualization]
Loading

💻 Quick Start

  1. Clone & Navigate
git clone https://github.com/yourusername/codelens.git
cd codelens
  1. Setup Environment
python -m venv venv
# Windows
venv\Scripts\activate
# Unix/MacOS
source venv/bin/activate
pip install -r requirements.txt
  1. Launch Application
streamlit run app.py

📁 Project Structure

codelens/
├── app.py              # Main Streamlit application
├── parser/
│   └── code_parser.py  # AST parsing logic
├── visualizer/
│   └── graph_builder.py # Graph generation
├── templates/
│   └── code_graph.html # Visualization template
├── requirements.txt    # Dependencies
└── README.md          # Documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published