Skip to main content

Python command line tree printer

Project description

pathtree

PyPI

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)

Uploaded Source

Built Distribution

pathtree-0.1.3-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page