RootSketch is a lightweight and straightforward tool that generates a text-based visualization of the folder and file structure of your project. Whether you're a developer, project maintainer, or just organizing files, RootSketch creates an organized, hierarchical representation of your project's directory, saved as a text file for easy reference.
- Tree-Like Visualization: Outputs directories and files in a clean, tree-like format with proper indentation and symbols (
├──
,└──
, etc.). - Pre-Packaged Executable: No need to install Python! Download the ready-to-use
.exe
and run it instantly. - Customizable: Easily exclude specific directories and files by modifying the
ignore_list
in the Python script. - Quick and Efficient: Generates a full project structure in seconds.
- Portable: A single executable or script for portable use.
Here’s an example of the output generated by RootSketch:
MyProject/
├── assets/
│ ├── fonts/
│ │ └── Rubik-Regular.ttf
│ ├── icon.ico
│ └── logo.png
├── components/
│ ├── backup_manager.py
│ ├── database_manager.py
│ ├── logger.py
│ └── scheduler.py
├── ui/
│ ├── add_task_dialog.py
│ └── edit_task_dialog.py
├── .gitignore
├── LICENSE
├── README.md
├── main.py
├── pybut_tasks.db
└── requirements.txt
To make things easier, we've provided a pre-packaged .exe
file. You can download it directly from the Releases section of this repository.
- Go to the Releases page.
- Download the latest
RootSketch.exe
. - Place the
.exe
in the root directory of your project. - Run it by double-clicking or via the terminal.
If you'd prefer to use the Python script:
-
Clone the repository:
git clone https://github.com/sargeschultz11/RootSketch.git cd RootSketch
-
Run the script:
python RootSketch.py
-
Open the generated
project_structure.txt
file in the same directory to view your project's folder structure.
If you want to customize RootSketch:
-
Excluding Items: Update the
ignore_list
in the script to add or remove directories/files from the output:ignore_list = {".git", "__pycache__", "RootSketch.py", "project_structure.txt", "RootSketch.exe"}
-
Formatting: Modify the indentation or tree symbols in the
write_structure
function.
If you want to package the script into an .exe
yourself:
-
Install PyInstaller:
pip install pyinstaller
-
Package the script:
pyinstaller --noconsole --onefile src/RootSketch.py
-
Find the executable in the
dist/
folder.
This project is licensed under the MIT License. See the LICENSE file for details.
Thanks to the Python Software Foundation.
Thank you for checking out RootSketch! If you find this tool helpful, feel free to star the repository and share it with others.
Enjoy your trees! 🌳