Skip to main content

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


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.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

imansur_tools-0.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file imansur_tools-0.2.0.tar.gz.

File metadata

  • Download URL: imansur_tools-0.2.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for imansur_tools-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2e3907564a745273444d28c89b7f7e3f6a24503cf3517776f8877fb133ad334b
MD5 6352bf1e50b5de76634cfb416b1cc145
BLAKE2b-256 3a0f712ff8e69db074f5030e06ce677877878d65fe77f04c6a4de36fbda47504

See more details on using hashes here.

File details

Details for the file imansur_tools-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: imansur_tools-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for imansur_tools-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f4d21ddc9ccc4ef6a848c07181f6c26c433baf95f44f4bd941ab75fccd67d23
MD5 cd988138ba92bf05c188c8171fcf9b7c
BLAKE2b-256 3f34ad73870aad5754b5e7a210f2fa983dd8fe2b7e1db874d3f67f2a5332f4b4

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