A Python CLI tool to generate directory tree structures
Project description
# 🌳 treegenix
[](https://pypi.org/project/treegenix/)
[](LICENSE)
[](https://www.python.org/)
**treegenix** is a lightweight Python CLI tool to beautifully display the directory structure of any folder — like the classic `tree` command, but written in Python, with customization and clean output.
---
## ✨ Features
- 📁 Visualize any folder's file structure in a clean tree format
- ❌ Easily exclude folders/files (e.g., `venv`, `__pycache__`, `.git`)
- 💻 Command-line interface
- 🙈 Ignores hidden files/folders by default
- 🐍 Pure Python, no external dependencies
---
## 📦 Installation
Install via [PyPI](https://pypi.org/project/treegenix/):
```bash
pip install treegenix
🚀 Usage
After installation, run treegenix from your terminal.
treegenix [path] [--exclude folder1 folder2 ...]
📌 Arguments
path(optional): Path to the directory you want to scan. Defaults to the current directory.--exclude: List of folder or file names to exclude from the tree.
🔍 Examples
1. Show structure of current directory:
treegenix
2. Show structure of a specific directory:
treegenix ./my_project
3. Exclude folders like venv and __pycache__:
treegenix . --exclude venv __pycache__
Output:
my_project/
├── app/
│ ├── __init__.py
│ └── main.py
├── README.md
└── requirements.txt
🧪 Development Setup
If you'd like to contribute:
git clone https://github.com/sujal-1245/treegenix.git
cd treegenix
pip install -e .
python -m treegenix .
📄 License
Licensed under the MIT License.
👤 Author
Sujal Bhagat 🔗 GitHub Profile
---
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
treegenix-0.1.2.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file treegenix-0.1.2.tar.gz.
File metadata
- Download URL: treegenix-0.1.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a97edf833efc3f4b563aa0c66ffba285cd9890ddf36a8c300fdaabc36aa3b7a9
|
|
| MD5 |
6b8e9b6ed298801abda8b9f30315fa0a
|
|
| BLAKE2b-256 |
d1e93f3eed3c88fea71ff6dd33469bcc651deb9a068d8a4ddbd99a5de2d4910c
|
File details
Details for the file treegenix-0.1.2-py3-none-any.whl.
File metadata
- Download URL: treegenix-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9152c97473aad1ea975e510fcde264b7f90c56bca3adb0207a83cb0a4dd693c5
|
|
| MD5 |
1fc6ddc7c420452963d6e1b76b11f1c1
|
|
| BLAKE2b-256 |
b347fe3928111c8e90da27be1fa226dc5406470dda88e03bfb6c465a9e31eccb
|