Skip to main content

Generate directory tree diagrams for Real Python articles

Project description

RP Tree

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


To install RP Tree, just run the following command:

$ pip install rptree


$ rptree /path/to/directory/

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

Sample Output

$ rptree hello/
├── hello/
│   ├──
│   └──
├── tests/
│   └──
├── requirements.txt

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


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:

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

rptree-0.1.1.tar.gz (4.3 kB view hashes)

Uploaded source

Built Distribution

rptree-0.1.1-py3-none-any.whl (5.0 kB view hashes)

Uploaded py3

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