Skip to main content

Command-line recursive pretty printer for directories.

Project description

DIRP

DirP (DIRectory Print) is a command-line utility for pretty printing directories. It generates a nice looking tree representation of its first argument, assuming a valid path.

For example, running dirp while in the root directory of my Akashic project, we see:

(base) trippdow@This-Computer Akashic % dirp .
Akashic/
│   Documents/
│   __pycache__/
│   │   └── __init__.cpython-311.pyc
│   │   └── chat.cpython-310.pyc
│   │   └── chat.cpython-311.pyc
│   │   └── chatbots.cpython-310.pyc
│   │   └── chatbots.cpython-311.pyc
│   │   └── chunkers.cpython-311.pyc
│   │   └── embedders.cpython-311.pyc
│   │   └── file_io.cpython-311.pyc
│   │   └── retrieval.cpython-311.pyc
│   │   └── text_utilities.cpython-311.pyc
│   templates/
│   │   └── chat.html
│   │   └── collections.html
│   │   └── index.html
│   └── .env
│   └── .gitignore
│   └── README.md
│   └── __init__.py
│   └── app.py
│   └── architect.py
│   └── chat.py
│   └── chatbots.py
│   └── chunkers.py
│   └── collections.txt
│   └── embedders.py
│   └── file_io.py
│   └── llama_chat_format.py
│   └── playground.py
│   └── retrieval.py
│   └── text_utilities.py
│   └── webscraper.py

This output is useful for communicating directory structures to others over text, or prompting a chatbot assistant.

Setup

From Github:

git clone https://github.com/prettytrippy/dirp

Edit your ~/.bashrc, ~/.zshrc or other to say: alias dirp = "path/to/dir_print.py"

From PyPI

pip install dirp

Usage

dirp path/to/directory/to/print

License

MIT License, see 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

dirp-0.0.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

dirp-0.0.1-py3-none-any.whl (2.8 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