Directory and file tree creator from string or YAML
Project description
imansur-tools
A professional utility to build directory structures and files from indentation patterns or YAML files.
Features
- Smart Routing: Automatically distinguishes between files and directories.
- Target Destination: Specify exactly where you want your tree to be built.
- Special Files Support: Recognizes
Dockerfile,LICENSE,README, etc. - Multi-format: Supports both Indented Strings and YAML files.
Installation
pip install imansur-tools
Usage
1. Specify Output Directory
You can define where the tree should be created by providing the output_dir parameter. If omitted, it defaults to the current directory (.).
from imansur_tools import build_tree
# This will create the structure inside '/Users/ilkermansur/proyectos/new_app'
build_tree("structure.yaml", output_dir="/Users/name/projects/my_app", is_yaml=True)
2. From Indented String (Default Directory)
from imansur_tools import build_tree
structure = """
project/
src/
main.py
README
"""
# Will be created in the current working directory
build_tree(structure)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
imansur_tools-0.2.1.tar.gz
(3.8 kB
view details)
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 imansur_tools-0.2.1.tar.gz.
File metadata
- Download URL: imansur_tools-0.2.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e887935f347ff64ca2685c607cf24cd3277e977a8ca07055c462629516384c4
|
|
| MD5 |
177c1ef9b0cd9f4ec6eed2e19bcd0013
|
|
| BLAKE2b-256 |
2dc72493141eb4a9260076d9b8d2d417761ec21c22ccebb9335b5373e76b7c74
|
File details
Details for the file imansur_tools-0.2.1-py3-none-any.whl.
File metadata
- Download URL: imansur_tools-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df903aea1ea73d628e9d0918c3e3da29e11bfddf56353c4c61687b3c892f1a52
|
|
| MD5 |
ffcd8ce055c5f29cde052130be801c2e
|
|
| BLAKE2b-256 |
439df463c6db93000475bb11fdce26bed11ecd0d88fb67ef62bdc2c21a9f907c
|