Skip to main content

A Python CLI to generate a tree structured diagram for any directory

Project description

gendia

A Python CLI to generate a tree structured diagram for any directory!


Imagine this: you are on Discord and is request help from someone about a project you are working on. You want to show the structure of your project directory to the person. You can't just send a screenshot of the directory because it's too big and the person won't be able to see the whole structure. You can't just send a text file with the structure because it's too boring and the person won't be able to understand it easily. What do you do? You use gendia!

Heres an example of a tree structured diagram generated by gendia:

project
├── src
│   ├── main.py
│   ├── utils
│   │   ├── __init__.py
│   │   ├── helper.py
│   │   └──  helper2.py
│   ├── tests
│   │   ├── __init__.py
│   │   ├── test_main.py
│   │   └──  test_helper.py
│   └── README.md
├── LICENSE
└── .gitignore

Not just that, it is color coded! The directories are in blue, and different file types are in different colors. This makes it easier to understand the structure of the directory.

Installation

To add gendia to your project, run:

pip install gendia

This should install gendia to your project. You can now use it to generate tree structured diagrams for your directories.

Usage

To use gendia, run:

gendia path/to/directory

This should generate a tree structured diagram for the directory you specified. You can also specify the output file by using the -o flag:

gendia path/to/directory -o output.txt

This should generate a tree structured diagram for the directory you specified and save it to output.txt.

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

gendia-0.2.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

gendia-0.2.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file gendia-0.2.2.tar.gz.

File metadata

  • Download URL: gendia-0.2.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for gendia-0.2.2.tar.gz
Algorithm Hash digest
SHA256 bcf3f25a1a25a26e0917d10a219ce4f9dbbe81a42ed3268137f6351e3ef9e0c2
MD5 707604d9171c6a0b6674a69f2036f547
BLAKE2b-256 5d8d067dd59d3faf1a02a2dfe46bee4971445d342541fff3f05d33c242f7af11

See more details on using hashes here.

File details

Details for the file gendia-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: gendia-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for gendia-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ebce4d82b3b1529edb8f64b6e85f1946d8112c57dc592aee1c081808d434954b
MD5 6c96bef44b176e3e33f956c8cd21d795
BLAKE2b-256 1a6403bb9b9c4b68de00fbb6a2e3024cf37713d3bb75afe4c05eaf420e9785aa

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