Python command line tree printer
Project description
pathtree
Installation
pip install pathtree
Example
- Use in Shell
Run command find pathtree | python pathtree
will print this:
pathtree
├── pathtree.py
├── __main__.py
├── __pycache__
│ ├── pathtree.cpython-36.pyc
│ └── __main__.cpython-36.pyc
└── __init__.py
- Use Programmatically
from pathtree import Tree
# Init
tree = Tree()
# Add path
tree.add_path(<path>)
# Print tree
print(tree.dump())
License
The 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
pathtree-0.1.3.tar.gz
(2.3 kB
view hashes)