π Overview
π Core API Reference
Complete reference for FlowyML's foundational classes and functions.
π’ Pipeline π£ Step π Context π¦ Assets
Overview
The flowyml.core module contains the fundamental building blocks for creating ML pipelines:
| Class | Purpose | Import |
|---|---|---|
Pipeline |
Orchestrates steps into a directed acyclic graph (DAG) | from flowyml import Pipeline |
step |
Decorator that converts functions into pipeline steps | from flowyml import step |
context |
Creates a configuration context for parameter injection | from flowyml import context |
Model |
First-class model artifact with metadata and lineage | from flowyml import Model |
Dataset |
First-class dataset artifact | from flowyml import Dataset |
Metrics |
First-class metrics artifact | from flowyml import Metrics |
Quick Import Reference
# Core imports β everything you need for basic pipelines
from flowyml import Pipeline, step, context, Model
# Extended imports for advanced use cases
from flowyml import Dataset, Metrics
from flowyml import map_task, dynamic
from flowyml.core.pipeline import PipelineResult, SubPipelineStep
from flowyml.core.step import StepConfig
from flowyml.core.context import Context
Architecture
graph TB
subgraph "flowyml.core"
P[Pipeline] --> S[Step]
P --> C[Context]
S --> A[Assets]
A --> M[Model]
A --> D[Dataset]
A --> MT[Metrics]
end
subgraph "flowyml.plugins"
P -.-> PL[Plugin Registry]
PL --> AS[Artifact Store]
PL --> MS[Metadata Store]
PL --> O[Orchestrator]
end
Module Hierarchy
The core module is designed as a layered architecture. Pipeline orchestrates Steps, which consume and produce Assets. The Context provides runtime configuration that flows through the entire graph. Plugins extend behavior without touching core logic.
Detailed References
Each core class has its own detailed API page:
| Page | Key Methods | Common Use Case |
|---|---|---|
| Pipeline | add_step(), run(), build(), schedule() |
Orchestrating ML workflows |
| Step | @step() decorator, inputs, outputs, cache |
Defining pipeline operations |
| Context | context(), parameter injection, env overrides |
Configuring pipeline behavior |
| Assets | Model(), Dataset(), Metrics(), lineage |
Managing ML artifacts |
Start Here
If you're new to FlowyML, start with the Getting Started Guide before diving into the API reference.
Related Modules
Beyond the core module, FlowyML provides additional API surface for advanced use cases:
| Module | Description |
|---|---|
| Plugins | Plugin registry, artifact stores, metadata stores, orchestrators |
| Decorators | @step, @pipeline, @dynamic β all decorator variants |
| Types | Type annotations for step inputs/outputs |
| Exceptions | Error classes and exception hierarchy |
| Utils | Helper functions, logging, and configuration utilities |
π What's Next?
π’ Pipeline API
Full reference for Pipeline construction, execution, and lifecycle methods.
π£ Step API
Decorator configuration, inputs/outputs, caching strategies, and resource requirements.
π¦ Assets API
Model, Dataset, and Metrics artifacts with lineage tracking and type-based routing.