<< All versions
Skill v1.0.0
currentLLM-judged scan90/100legout/flowerpower-skill/flowerpower
──Details
PublishedOctober 23, 2026 at 11:34 PM
Content Hashsha256:8baef3bda509c9d6...
Git SHAebcb2d8be7ed
──Files
Files (1 file, 4.1 KB)
SKILL.md4.1 KBactive
SKILL.md · 175 lines · 4.1 KB
version: "1.0.0" name: flowerpower description: Create and manage data pipelines using the FlowerPower framework with Hamilton DAGs and uv. Use when users request creating flowerpower projects, pipelines, Hamilton dataflows, or ask about flowerpower configuration, execution, or CLI commands.
FlowerPower Pipeline Skill
Create and manage data processing pipelines using FlowerPower with Hamilton DAGs.
Quick Start
bash
# Install flowerpoweruv pip install flowerpower# Initialize projectflowerpower init --name my-project# Create pipelineflowerpower pipeline new my_pipeline# Run pipelineflowerpower pipeline run my_pipeline
Project Initialization
Use scripts/init_project.py or CLI:
bash
# CLIflowerpower init --name <project-name># Pythonfrom flowerpower import FlowerPowerProjectproject = FlowerPowerProject.init(name='my-project')
Creates structure:
my-project/├── conf/│ ├── project.yml│ └── pipelines/├── pipelines/└── hooks/
Creating Pipelines
Use scripts/create_pipeline.py or CLI:
bash
flowerpower pipeline new <name>
Creates:
pipelines/<name>.py- Hamilton functionsconf/pipelines/<name>.yml- Configuration
Pipeline Module Template
python
from hamilton.function_modifiers import parameterizefrom pathlib import Pathfrom flowerpower.cfg import ConfigPARAMS = Config.load(Path(__file__).parents[1], pipeline_name="my_pipeline").pipeline.h_params@parameterize(**PARAMS.input_config)def load_data(source: str) -> dict:"""Load data from source."""return {"source": source}def process_data(load_data: dict) -> dict:"""Process loaded data."""return {"processed": load_data}def final_result(process_data: dict) -> str:"""Return final result."""return str(process_data)
Pipeline Config Template
yaml
params:input_config:source: "data.csv"run:final_vars:- final_resultexecutor:type: threadpoolmax_workers: 4retry:max_retries: 3retry_delay: 1.0
Running Pipelines
bash
# Basic runflowerpower pipeline run my_pipeline# With inputsflowerpower pipeline run my_pipeline --inputs '{"key": "value"}'# With executorflowerpower pipeline run my_pipeline --executor threadpool --executor-max-workers 8# With retriesflowerpower pipeline run my_pipeline --max-retries 3 --retry-delay 2.0
Python API:
python
from flowerpower import FlowerPowerProjectproject = FlowerPowerProject.load('.')result = project.run('my_pipeline')# With RunConfigfrom flowerpower.cfg.pipeline.run import RunConfigconfig = RunConfig(inputs={"key": "value"}, final_vars=["output"])result = project.run('my_pipeline', run_config=config)
CLI Commands
| Command | Description | |
|---|---|---|
flowerpower init --name <name> | Initialize project | |
flowerpower pipeline new <name> | Create pipeline | |
flowerpower pipeline run <name> | Run pipeline | |
flowerpower pipeline show-pipelines | List pipelines | |
flowerpower pipeline show-dag <name> | Visualize DAG | |
flowerpower pipeline delete <name> | Delete pipeline |
Executor Types
| Type | Use Case | Config | |
|---|---|---|---|
synchronous | Default, sequential | - | |
threadpool | I/O-bound tasks | max_workers: N | |
processpool | CPU-bound tasks | max_workers: N | |
ray | Distributed computing | num_cpus: N | |
dask | Distributed computing | num_cpus: N |
Optional Dependencies
bash
uv pip install flowerpower[io] # I/O pluginsuv pip install flowerpower[ui] # Hamilton UIuv pip install flowerpower[all] # All extras
Resources
- references/overview.md - Key concepts, architecture, project structure
- references/configuration.md - Complete YAML configuration patterns
- references/hamilton-patterns.md - Hamilton function decorators and patterns
Scripts
- scripts/init_project.py - Initialize new flowerpower project
- scripts/create_pipeline.py - Create new pipeline with template
- scripts/run_pipeline.py - Execute pipeline with options
- scripts/list_pipelines.py - List available pipelines