Skip to main content

A pure-Python replacement for tree

Project description

RP Tree

RP Tree is a command-line tool to generate directory tree diagrams.

Installation

To install RP Tree, just run the following command:

$ pip install rptree

Usage

$ rptree /path/to/directory/

Note: The -h or --help option provides help on using RP Tree.

Sample Output

$ rptree hello/
./hello/
│
├── hello/
│   ├── __init__.py
│   └── hello.py
│
├── tests/
│   └── test_hello.py
│
├── LICENSE
├── README.md
├── requirements.txt
└── setup.py

That's it! You've generated a nice directory tree diagram.

Features

If you run RP Tree with a directory path as an argument, then you get a full directory tree diagram printed on your screen. The default input directory is your current directory.

RP Tree also provides the following options:

  • -v, --version shows the application version and exits
  • -h, --help show a usage message
  • -d, --dir-only generates a directory-only tree diagram
  • -o, --output-file generates a full directory tree diagram and save it to a file in markdown format

Release History

  • 0.1.1
    • Display the entries in alphabetical order
  • 0.1.0
    • A work in progress

About the Author

Leodanis Pozo Ramos - Email: leodanis@realpython.com

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

branches-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

branches-0.1.1-py3.8.egg (7.4 kB view details)

Uploaded Source

File details

Details for the file branches-0.1.1.tar.gz.

File metadata

  • Download URL: branches-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10

File hashes

Hashes for branches-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2908687eff3c87d3cd673999d0bf3906ca0253b069f44a15bc5ef0e668b2ddb4
MD5 40e46728cc2042bc4e69d390e889d471
BLAKE2b-256 be6baba752d443a181197bc4144f3dd9b9809c76a1a990655f900da859e0bd8e

See more details on using hashes here.

Provenance

File details

Details for the file branches-0.1.1-py3.8.egg.

File metadata

  • Download URL: branches-0.1.1-py3.8.egg
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10

File hashes

Hashes for branches-0.1.1-py3.8.egg
Algorithm Hash digest
SHA256 48d48a84595844713f2364b7ae539a404a35ac3d4ce03985f1d329e0ede94d34
MD5 93530a0eb5c1c5b9a87f20c9546626f6
BLAKE2b-256 9a5bb646854e2e51a092acd24c01072c13a7d45396691b28c4dfed1d436a3ce3

See more details on using hashes here.

Provenance

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