Skip to main content

Generate directory structures from tree-like input.

Project description

pastree 🥐 ˖ 🌴

pastree is a command-line tool for generating directory structures from tree-like input. Just paste your desired structure, and pastree creates all the necessary directories and files for you.


Features

  • Quickly scaffold complex directory structures.
  • Supports a tree-style input format for intuitive use.
  • Works cross-platform (Linux, macOS, Windows).

Installation

Install pastree using pip:

pip install pastree

Usage

After installation, run the pastree command:

pastree

Example

  1. Run the pastree command in your terminal.

  2. Paste your desired directory structure (in a tree-like format):

    my_project/
    ├── LICENSE
    ├── README.md
    ├── setup.py
    ├── my_project/
    │   ├── __init__.py
    │   └── main.py
    └── tests/
        ├── __init__.py
        └── test_main.py
    
  3. Press Ctrl+D (Linux/macOS), Ctrl+Z (Windows) or press enter twice to finish.

  4. pastree will create the corresponding directories and touch the files


Contributing

Contributions are welcome! To contribute:

  1. Fork this repository.
  2. Make your changes in a new branch.
  3. Submit a pull request with a detailed description of your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Feedback and Support

If you encounter any issues or have suggestions for improvement, feel free to open an issue on GitHub.

Happy pastree making! 🌳 🌲 🌴

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

pastree-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pastree-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pastree-0.1.1.tar.gz.

File metadata

  • Download URL: pastree-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pastree-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b8a3aa0b0ee2cced9109f1ec0a8e6bb0e2f2ed5e9eb68a74c4ac5d4a22e37df1
MD5 f92bccb7fa84cba51e76b779400d7f0c
BLAKE2b-256 c69512679fcafe220ba4366f6985ab99ba04a622e20bb6603cb88dec2c09aebe

See more details on using hashes here.

File details

Details for the file pastree-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pastree-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pastree-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12c45e43ec94985ae53572981654d581b05bc179dc6a4b6c49b1861ff6d4642a
MD5 3a0c82cac8d0a544c24427c10322cb11
BLAKE2b-256 8c7b10b84efb466398c4dbfc81e2773912c54f47985b2ef37da59de8ee089ce4

See more details on using hashes here.

Supported by

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