PyGenTree
A Python package to generate ASCII tree representation of directory structures.
Requirements
- Python 3.6 or higher
Installation
pip install pygentree
Usage
# Basic usage (current directory)
pygentree
# Specify a directory
pygentree /path/to/directory
# Limit depth level
pygentree -l 2
# Sort files and folders
pygentree -s asc # ascending order
pygentree -s desc # descending order
pygentree -s standard # default: folders first, then files
# Show only directories
pygentree -d
# Ignore hidden files and directories, e.g. .git, .env, etc.
pygentree --ignore-hidden
# Exclude specific files or directories (comma-separated)
pygentree -e "node_modules,venv,dist"
# Save output to file
pygentree -o tree.txt
# Show version
pygentree -v
# Show help
pygentree -h
Features
- Generate ASCII tree representation of directory structures
- Customize maximum depth level
- Multiple sorting options
- Option to show only directories
- Option to ignore hidden files and directories
- Exclude specific files and directories
- Save output to file
- Handle permission errors gracefully
- Cross-platform compatibility
Supported Python Versions
- Python 3.6
- Python 3.7
- Python 3.8
- Python 3.9
- Python 3.10
- Python 3.11
- Python 3.12
License
MIT License
Metadata
Release files for pygentree 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygentree-1.0.4.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygentree-1.0.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 14.2 kB
Release files / pygentree-1.0.4.tar.gz
| Download URL | pygentree-1.0.4.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b641a8a075eaef2c353102f0707575ca620356165726000d884a40216708266d
|
|
BLAKE2b-256 checksum How to use checksums |
97578e081d9d5676937509c059bd69735ec5bb23982006768a8bec9e297621a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / pygentree-1.0.4-py2.py3-none-any.whl
| Download URL | pygentree-1.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
381442c30e253d185f10a05e87305c1e9b42ca1caf8100eea28c7abe1cd1d43f
|
|
BLAKE2b-256 checksum How to use checksums |
4f327a35bf049f791d697c412b6329261a6706979bc78a29ec9e3c899212ee2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|