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 details)

Uploaded Source

Built Distribution

dirp-0.0.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file dirp-0.0.1.tar.gz.

File metadata

  • Download URL: dirp-0.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for dirp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 001a360b2cda9a8b949b8197304825a8e6bff5abdf6aacd0963b9e0e424d3ec1
MD5 0aa6032f4fe051671fc806cb5ae777ca
BLAKE2b-256 f1d304185ad56f8e9245e0d7d00b48c8acc3fc237918e33c2e4ada8ec8e442e4

See more details on using hashes here.

File details

Details for the file dirp-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dirp-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for dirp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ead88cb17f94cfe378fe566d59673c83ad3a522bff8f86334d5355d6404d5db3
MD5 b274a8d37fd46228823180f13396af63
BLAKE2b-256 fe0222260c6a72bd2378550a55fc41572f242e0698e14f4d02dc7d5b1d293c24

See more details on using hashes here.

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