A Python package to generate ASCII tree representation of directory structures
Project description
PyGenTree
A Python package to generate ASCII tree representation of directory structures.
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
# 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
- Save output to file
- Handle permission errors gracefully
- Cross-platform compatibility
License
MIT License
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
pygentree-1.0.0.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for pygentree-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33481cf6c90f62b291f96c8bc0d6fa7c9a5d507df633cc604f409f5b221e2add |
|
MD5 | f781feddc2c2574e7e7f2b71933626ba |
|
BLAKE2b-256 | b0289b5e8cb33ffa0ccbbab2319ef42b3276b681d15eba63eee3710d4e1e983a |