IB
ibrahimahtsham/ascii-file-structure-maker-and-lines-of-code-reader
Modern Python GUI tool for generating ASCII file trees and copying entire codebases. Perfect for sharing project structures with AI assistants, code reviews, and documentation. Features dark theme, statistics, and cross-platform executable builds.
File Structure Viewer - ASCII Tree Generator & Code Copier
A modern Python GUI application that helps developers easily copy entire codebases with file structures to share with AI assistants like ChatGPT. Perfect for getting code reviews, debugging help, or architectural advice.
โจ Features
- ๐ Browse & Analyze - Select any folder and instantly see its structure
- ๐ณ ASCII Tree Generation - Beautiful tree visualization of your project structure
- ๐ Smart File Copying - Copy individual files or entire codebases with proper formatting
- ๐ Project Statistics - View file counts, lines of code, and file type distributions
- ๐จ Modern Dark Theme - Clean, professional interface that's easy on the eyes
- โก Fast & Lightweight - Built with Python Tkinter for optimal performance
- ๐ Folder Filtering - Ignore common folders like
node_modules,.git,__pycache__
๐ผ๏ธ Version Comparison
Previous Version (v2)
Current Version (v3) - Modern UI
๐ Quick Start
Prerequisites
- Python 3.7 or higher
- pip package manager
Installation & Usage
-
Clone the repository
git clone https://github.com/ibrahimahtsham/ascii-file-structure-maker-and-lines-of-code-reader.git cd ascii-file-structure-maker-and-lines-of-code-reader -
Install dependencies
pip install -r requirements.txt # or manually: pip install pyperclip cx_Freeze -
Run the application
python main.py
Building Executable
Windows:
run_project.batLinux:
chmod +x build_linux.sh
./build_linux.sh๐ก Use Cases
- AI-Assisted Development - Share your entire codebase structure with ChatGPT, Claude, or other AI assistants
- Code Reviews - Quickly share project structure and specific files with team members
- Documentation - Generate ASCII tree representations for README files or documentation
- Project Analysis - Get insights into your project's file distribution and size
- Learning - Understand the structure of open-source projects
๐ ๏ธ Technical Stack
- GUI Framework: Python Tkinter with custom modern theme
- File Operations: Native Python
osandpathlibmodules - Clipboard Integration:
pyperclipfor seamless copy operations - Build System:
cx_Freezefor cross-platform executable generation
๐ Project Structure
ascii-file-structure-maker-and-lines-of-code-reader/
โโโ main.py # Application entry point
โโโ controllers/ # Business logic
โ โโโ main_controller.py
โโโ models/ # Data management
โ โโโ file_manager.py
โโโ views/ # UI components
โ โโโ main_window.py
โ โโโ components/
โ โโโ header_panel.py
โโโ utils/ # Utilities
โ โโโ theme.py # Modern dark theme
โ โโโ constants.py
โโโ build/ # Generated executables
๐ค Contributing
Contributions are welcome! Feel free to:
- Report bugs or suggest features via Issues
- Submit Pull Requests with improvements
- Share feedback on the user experience
๐ License
This project is open source and available under the MIT License.
On this page
Languages
Python84.5%Batchfile14.1%Shell1.4%
Contributors
Created April 27, 2024
Updated June 3, 2025

