Skip to main content

A CLI tool to generate a customizable directory tree while ignoring specified files and folders.

Project description

Directree

Directree is a command-line tool for generating a customizable directory tree of your projects while ignoring unimportant files and folders. It is designed to help developers visualize their project structures in a clean and organized manner.

Features

  • Customizable Ignoring: Specify project types (frontend, backend, machine learning) to automatically ignore common unimportant files and folders.
  • User Input: Allows users to specify additional files and folders to ignore, tailoring the output to their specific needs.
  • Recursive Directory Traversal: Generates a tree structure that reflects the actual organization of files and directories.
  • Cross-Platform Compatibility: Works seamlessly on Windows, macOS, and Linux.

Installation

To install Directree, you can use pip:

pip install directree

Usage
Once installed, you can run the tool directly from your command line:

bash
Copy code
dirtree
Step-by-Step Instructions:
Project Type: Specify the type of your project (e.g., frontend, backend, ml, or skip).
Additional Folders: Optionally, provide a list of additional folders to ignore, separated by commas.
Additional Files: Optionally, provide a list of additional files to ignore, separated by commas.
Root Directory: Enter the path of the root directory for which you want to generate the tree. Press enter to use the current directory.
<!-- Replace with a relevant image link -->

Example Output
Here’s an example of how Directree generates a directory tree:

plaintext
Copy code
📂 project-root
  📂 src
    📄 main.py
    📄 utils.py
  📂 tests
    📄 test_main.py
Customizing Ignore Patterns
You can customize the files and folders that are ignored based on your project type and specific needs. For example, if your project is a frontend web application, you might want to ignore folders like node_modules, .firebase, and specific files like package-lock.json.

Contributing
Contributions are welcome! If you have suggestions or improvements, please feel free to submit a pull request or create an issue.

Fork the repository.
Create your feature branch (git checkout -b feature/AmazingFeature).
Commit your changes (git commit -m 'Add some AmazingFeature').
Push to the branch (git push origin feature/AmazingFeature).
Open a pull request.
License
Distributed under the MIT License. See LICENSE for more information.

Acknowledgements
Setuptools - For packaging the project
Twine - For uploading the package to PyPI
Python - The programming language used to create Directree
vbnet
Copy code

### Key Formatting Notes:
- Use Markdown syntax for headings, lists, and code blocks for clarity.
- Replace image URLs with actual links to images that showcase your project, if available.
- Ensure the document is structured with clear sections for ease of navigation.

This `README.md` file will serve as a comprehensive guide for users who want to understand and use your `directree` tool effectively.

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

directree-0.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

directree-0.2-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file directree-0.2.tar.gz.

File metadata

  • Download URL: directree-0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for directree-0.2.tar.gz
Algorithm Hash digest
SHA256 747fbfd27e1dd84eba0343fc0a598f79809440a4a728bf2ef92c34db50072c86
MD5 1f0d2e0646885024e7a36123b9b58f26
BLAKE2b-256 9ccacd53a7e4e4a0e16753766a4919736cf9561c4cc06f78ba267a65074c550a

See more details on using hashes here.

File details

Details for the file directree-0.2-py3-none-any.whl.

File metadata

  • Download URL: directree-0.2-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.12.1

File hashes

Hashes for directree-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d1a69102ad287851d059c24fa6086905505d56ffa39002bb8694e5f1dde0d68
MD5 3ee5fb04585713ee81c70e9f2efd52e8
BLAKE2b-256 4ce72ec76dc576bb518dbc09c64ba7ff2669344a73f305ed1893618bed042ef8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page