Skip to main content

Bidirectional YAML ↔ Directory Structure Tool

Project description

FSBlueprint

FSBlueprint is a Python tool for bidirectional conversion between YAML blueprints and directory structures. Effortlessly scaffold complex projects from a single YAML file, or generate a reproducible YAML blueprint from any existing folder tree—including file contents.

Features

  • Scaffold entire directory trees (with files and contents) from YAML
  • Generate a YAML blueprint from any existing directory structure
  • Supports nested folders, empty files, and multi-line file contents
  • Simple CLI and Python API

Installation

Install from PyPI:

pip install fsblueprint

Usage

Create a directory structure from YAML

fsblueprint scaffold project.yaml ./my_project

Generate a YAML blueprint from an existing directory

fsblueprint blueprint ./existing_project blueprint.yaml

Or use the Python API:

from fsblueprint.core import create_from_yaml, create_yaml_from_structure

# Create structure from YAML
create_from_yaml('project.yaml', 'my_project')

# Generate YAML from directory
create_yaml_from_structure('existing_project', 'blueprint.yaml')

Example YAML

my_project:
  README.md: |
    # My Project
    Hello world!
  src:
    main.py: |
      def main():
          print("Hello!")
    utils:
      helper.py: ""
  tests:
    test_main.py: ""

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

fsblueprint-0.3.0.tar.gz (40.4 kB view details)

Uploaded Source

Built Distribution

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

fsblueprint-0.3.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file fsblueprint-0.3.0.tar.gz.

File metadata

  • Download URL: fsblueprint-0.3.0.tar.gz
  • Upload date:
  • Size: 40.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for fsblueprint-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a58c3ab035610a094b2be284643387fdbc685acd7db64331a8b7c680db3544be
MD5 b34c62637a7101e6489a76b095bfa5ab
BLAKE2b-256 44eb69b69165d61c61099af5e9f5ab656d6cb48a710f4417b372efbfa0d70f15

See more details on using hashes here.

File details

Details for the file fsblueprint-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: fsblueprint-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for fsblueprint-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca3bcaf0ff85d34f3ccfedc0ab030f9862e1b7a7867076aa26f6d0f802cb45ce
MD5 e8ec46b495753524d1d57afdb47abde8
BLAKE2b-256 04de757a93b907a697d263cc86a923f4234ae0b295b381d6c8cb819674aa04e5

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