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 details)
Built Distribution
File details
Details for the file pathtree-0.1.3.tar.gz
.
File metadata
- Download URL: pathtree-0.1.3.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 890ea8b48f36d689acf17fc4fe7931657e3e24429ac122d9e3172a12b4d43840 |
|
MD5 | 6c1b9e5374e33ae338d85dd9c7db3da4 |
|
BLAKE2b-256 | 3f39ae40dab9175a689e266bed2d9fd74c518746d366cdf94e66b690632f44ad |
File details
Details for the file pathtree-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pathtree-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aec5d97bad8c44fa81083aa99cdefe6bf556f8086efabc250fc133ed57ab4c54 |
|
MD5 | f8ffb164e1be43d3f7c38b82c84ab885 |
|
BLAKE2b-256 | de533a9a0f27cb2e1008597767fb0a6ff69e3fa24d558a9c48b77b479c8794a9 |