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
-
Run the
pastreecommand in your terminal. -
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
-
Press Ctrl+D (Linux/macOS), Ctrl+Z (Windows) or press enter twice to finish.
-
pastreewill create the corresponding directories and touch the files
Contributing
Contributions are welcome! To contribute:
- Fork this repository.
- Make your changes in a new branch.
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pastree-0.1.3.tar.gz.
File metadata
- Download URL: pastree-0.1.3.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99dced73915ed9f1743cbfb924a22b56d66c8343bf7fb3aa7f7f050ac33de137
|
|
| MD5 |
74fdd753a1f1ac84277f428f7cab5d83
|
|
| BLAKE2b-256 |
16da67a116b01eff542d6fb100ae5040ed6854faf06b52638e812ec0f8a8588a
|
File details
Details for the file pastree-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pastree-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
326db5fd352f5a344f1c8b91e18ecf8be8a5224b29554a13f78dab384636c78d
|
|
| MD5 |
7562049f7257380368de638bd91d9736
|
|
| BLAKE2b-256 |
2650a3163bb03edc1c07ff5df48922d1451122a357ce1d269fe1e8396dfc6d26
|