๐Ÿš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more โ†’
Socket
Sign inDemoInstall
Socket

treegenix

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

treegenix

A Python CLI tool to generate directory tree structures

0.1.2
PyPI
Maintainers
1
# ๐ŸŒณ 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


---


FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts