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
pastree
command 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) or Ctrl+Z (Windows) to finish.
pastree
will create the following structure:
my_project/
├── LICENSE
├── README.md
├── setup.py
├── my_project/
│ ├── __init__.py
│ └── main.py
└── tests/
├── __init__.py
└── test_main.py
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 generating! 🌳
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file pastree-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pastree-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 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 | 30c231c522eb72f2837e49c954d4d9d6e552c096ce07e1f4ce1ff1aedaf28f8c |
|
MD5 | c41bd09119d39b4b4c2a33fdbfa9eece |
|
BLAKE2b-256 | fab8ee615f7d06409efa163099d96bf9f0410f14546ebe89dbfeffaea3743527 |