Skip to main content

A Python CLI tool to generate directory tree structures

Project description

# 🌳 treegenix

[![PyPI version](https://img.shields.io/pypi/v/treegenix?color=brightgreen)](https://pypi.org/project/treegenix/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Python](https://img.shields.io/badge/python-3.7%2B-blue.svg)](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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

treegenix-0.1.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for treegenix-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a97edf833efc3f4b563aa0c66ffba285cd9890ddf36a8c300fdaabc36aa3b7a9
MD5 6b8e9b6ed298801abda8b9f30315fa0a
BLAKE2b-256 d1e93f3eed3c88fea71ff6dd33469bcc651deb9a068d8a4ddbd99a5de2d4910c

See more details on using hashes here.

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

Hashes for treegenix-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9152c97473aad1ea975e510fcde264b7f90c56bca3adb0207a83cb0a4dd693c5
MD5 1fc6ddc7c420452963d6e1b76b11f1c1
BLAKE2b-256 b347fe3928111c8e90da27be1fa226dc5406470dda88e03bfb6c465a9e31eccb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page