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.2.0.tar.gz (40.2 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.2.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fsblueprint-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ad25784cc4a1b3dd0398ba9ced4eacc69bfc62087071e01112d31533bdcddc79
MD5 73b7cd89da8541677c8eceb64c6f1b57
BLAKE2b-256 f4ae24647bcc70541880bd435b3be3c552be11dce0299d347403873fee8d4b6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fsblueprint-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfa4f59f1feef824e7f7f22eba0d0efe53d6df0b78e7ea031d1a457ad0db8243
MD5 bdbfd2ab047cfbcf83e7657805bc9965
BLAKE2b-256 555bd374c0ee35200d2c274ddb86a99f4c8bd0eeda058bc24345cf64c90cb625

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