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
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 fsblueprint-0.1.0.tar.gz.
File metadata
- Download URL: fsblueprint-0.1.0.tar.gz
- Upload date:
- Size: 39.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d40874a33ff4b50494a4b51bf4be19b6cbbdaea2e1ee20f3ea2a0ce173d0b6bb
|
|
| MD5 |
86471fe6e353b071669309078e8d42f4
|
|
| BLAKE2b-256 |
97cd5892314acdf10ff34f5a024a90d92ab9d5ece5212f3aaba15aca64291c2b
|
File details
Details for the file fsblueprint-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fsblueprint-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c23ce09900e0b91fc4e97db828696b91a93061a5447871e932088d94370ab7cf
|
|
| MD5 |
aee338c21f2973f443c01f56cbfa6864
|
|
| BLAKE2b-256 |
9032755885c70960772a307022a98f2283e7ac7b4e4d07ffc7b2d46778dfbbbc
|