Project Architecture¶
Overview¶
The Agnostic Project Seeder is a tool for generating project structures from YAML configurations. It provides a general-purpose seeder script that can create directories and files based on external configuration files.
Directory Structure¶
agnostic-project-seeder/
├── core/ # Core implementation
│ └── seeder.py # Main seeder script
├── data/ # Data directory (placeholder)
├── docs/ # Documentation
│ ├── architecture.md # This file
│ └── usage.md # Usage guide
├── planning/ # Planning and todos
│ └── todos.md # TODO list
├── projects/ # Project configurations
│ └── example/ # Example project config
│ ├── config.yaml # YAML configuration
│ └── templates/ # Optional templates
├── Makefile # Build script using makeself
└── README.md # Main readme
Components¶
1. Core Seeder (core/seeder.py)¶
- Reads YAML configuration files
- Creates directory structures recursively
- Generates files with placeholder content
- Supports templates and parameters
2. Project Configurations (projects/)¶
- Each subdirectory contains a project's configuration
config.yaml: Defines the structure to be created- Optional
templates/directory for file templates
3. Makefile¶
- Uses makeself to create self-extracting installers
- Builds onelineinstallers for each project seeder
- Parameters specify which project to package
Data Flow¶
- User provides absolute root directory
- Makefile builds onelineinstaller for specific project
- Onelineinstaller extracts and runs seeder.py
- seeder.py reads YAML config and creates structure
Configuration Format (YAML)¶
# Directories: null value
subdir1: null
# Files: string content
file1.txt: "content"
# Nested structures: dictionaries
subdir2:
file2.md: "# Title\nContent"
subsubdir:
file3.txt: "more content"
Extensions (Future)¶
- Template engine integration
- Hook system for custom processing
- Parameter substitution
- File copying capabilities