
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
# 🌳 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
After installation, run treegenix
from your terminal.
treegenix [path] [--exclude folder1 folder2 ...]
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.treegenix
treegenix ./my_project
venv
and __pycache__
:treegenix . --exclude venv __pycache__
Output:
my_project/
├── app/
│ ├── __init__.py
│ └── main.py
├── README.md
└── requirements.txt
If you'd like to contribute:
git clone https://github.com/sujal-1245/treegenix.git
cd treegenix
pip install -e .
python -m treegenix .
Licensed under the MIT License.
Sujal Bhagat 🔗 GitHub Profile
---
FAQs
A Python CLI tool to generate directory tree structures
We found that treegenix demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.