{"id":27261466,"url":"https://github.com/anku55/py_visualer","last_synced_at":"2026-05-05T11:35:56.139Z","repository":{"id":287205941,"uuid":"963972444","full_name":"Anku55/py_visualer","owner":"Anku55","description":"🔍 Interactive visualization tool that transforms Python codebases into beautiful, force-directed graphs. 🎨 Color-coded nodes show files, classes, functions, and imports with smart tooltips and real-time exploration. 📊 Analyze code complexity, maintainability, and documentation with an easy-to-use web interface powered by Flask and D3.js.","archived":false,"fork":false,"pushed_at":"2025-04-10T13:52:03.000Z","size":9420,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T14:53:54.926Z","etag":null,"topics":["d3js","flask","javascript","python","website"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anku55.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-10T13:49:22.000Z","updated_at":"2025-04-10T13:52:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"002fb8bf-2514-43b6-a257-68188858e8c7","html_url":"https://github.com/Anku55/py_visualer","commit_stats":null,"previous_names":["anku55/py_visualer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anku55%2Fpy_visualer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anku55%2Fpy_visualer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anku55%2Fpy_visualer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anku55%2Fpy_visualer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anku55","download_url":"https://codeload.github.com/Anku55/py_visualer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248347785,"owners_count":21088743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["d3js","flask","javascript","python","website"],"created_at":"2025-04-11T05:32:30.356Z","updated_at":"2026-05-05T11:35:56.093Z","avatar_url":"https://github.com/Anku55.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Code Structure Visualizer 🔍\n\n[![Python](https://img.shields.io/badge/Python-3.8%2B-blue.svg)](https://www.python.org/downloads/)\n[![Flask](https://img.shields.io/badge/Flask-2.0%2B-green.svg)](https://flask.palletsprojects.com/)\n[![D3.js](https://img.shields.io/badge/D3.js-7.0-orange.svg)](https://d3js.org/)\n[![Bootstrap](https://img.shields.io/badge/Bootstrap-5.3-purple.svg)](https://getbootstrap.com/)\n[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![venv](https://img.shields.io/badge/venv-recommended-brightgreen.svg)](https://docs.python.org/3/library/venv.html)\n\nAn interactive visualization tool for Python codebases that creates beautiful, force-directed graphs showing the relationships between files, classes, functions, and imports.\n\n## 🎥 Demo\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"docs/assets/demo.gif\" alt=\"Python Code Visualizer Demo\" width=\"800px\"\u003e\n  \n  *Interactive visualization of a Python codebase showing files, classes, and their relationships*\n\u003c/div\u003e\n\n## ✨ Features\n\n### 📊 Visualization\n- **Interactive Graph** - Drag, zoom, and explore your code structure\n- **Color-Coded Nodes** 🎨\n  - 🔷 Files (Blue)\n  - 🟢 Classes (Green)\n  - 🟡 Functions (Yellow)\n  - 🟠 Methods (Orange)\n  - ⚪ Imports (Gray)\n\n### 🔄 Dynamic Updates\n- **Real-time Cache Status** - Visual feedback in the navigation bar\n- **Auto-clearing Visualizations** - Previous graphs are automatically removed\n- **Manual Cache Clear** - Press `Ctrl + F5` to force clear the cache and refresh\n\n### 🛠️ Analysis Features\n- **Code Complexity** - Analyzes and displays code complexity metrics\n- **Maintainability Index** - Shows code maintainability scores\n- **Documentation Analysis** - Extracts and displays documentation info\n\n### 🎯 Interactive Elements\n- **Smart Tooltips** - Hover over nodes to see detailed information\n- **Connection Highlighting** - See related nodes and connections on hover\n- **Collapsible Sidebar** - Easy access to controls and legend\n- **Zoom Controls** - Scroll to zoom, drag to pan\n\n## 🚀 Getting Started\n\n### Prerequisites\n```bash\nPython 3.8 or higher\npip (Python package manager)\n```\n\n### Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/Anku55/py_visualer.git\ncd py_visualer\n```\n\n2. Set up a virtual environment:\n```bash\n# On Windows\npython -m venv venv\n.\\venv\\Scripts\\activate\n\n# On macOS/Linux\npython3 -m venv venv\nsource venv/bin/activate\n```\n\n3. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n4. Run the application:\n```bash\npython app.py\n```\n\n5. Open in browser:\n```\nhttp://localhost:5000\n```\n\n### 🔒 Virtual Environment Tips\n\n- **Creating New Environment**:\n  ```bash\n  python -m venv venv  # Creates a new virtual environment named 'venv'\n  ```\n\n- **Activation Commands**:\n  - Windows (PowerShell): `.\\venv\\Scripts\\activate`\n  - Windows (Command Prompt): `venv\\Scripts\\activate.bat`\n  - macOS/Linux: `source venv/bin/activate`\n\n- **Deactivation**:\n  ```bash\n  deactivate  # Use this command when you're done\n  ```\n\n- **Requirements**:\n  ```bash\n  # After installing new packages, update requirements.txt:\n  pip freeze \u003e requirements.txt\n  ```\n\n## 💡 Usage Tips\n\n### 📁 File Upload\n1. Click \"Choose File\" to select a Python file or ZIP containing Python files\n2. Click \"Analyze Code\" to generate the visualization\n\n### 🔍 Navigation\n- **Zoom**: Use mouse wheel or trackpad\n- **Pan**: Click and drag on empty space\n- **Move Nodes**: Click and drag nodes\n- **View Details**: Hover over nodes for tooltips\n- **Clear Cache**: Press `Ctrl + F5` for a fresh start\n\n### 🎨 Visualization Controls\n- **Sidebar**: Hover on the left edge to access controls\n- **Legend**: View node and connection types\n- **Status Updates**: Watch the cache status in the navigation bar\n\n## 🔧 Troubleshooting\n\n### Common Issues\n- **Visualization Not Updating**: \n  - Press `Ctrl + F5` to clear cache\n  - Check the cache status message in the navigation bar\n- **Large Files**: \n  - Allow time for processing\n  - Watch the status indicators for progress\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- D3.js for the visualization framework\n- Flask for the backend server\n- Bootstrap for the UI components \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanku55%2Fpy_visualer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanku55%2Fpy_visualer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanku55%2Fpy_visualer/lists"}