## pipeline.Pipeline


Steps placed by name, run in order, each through its adapter.


Usage

``` python
pipeline.Pipeline(
    steps=DEFAULT_STEPS,
    *,
    registry=None,
    adapters=None,
)
```


Steps never see each other: the pipeline passes an earlier result to a later step through the later step's adapter.


## Parameters


`steps: Sequence[str] = DEFAULT_STEPS`  
Step names in the order they run, each registered in [registry](steps.registry.md#dazflow.steps.registry). Defaults to [DEFAULT_STEPS](pipeline.DEFAULT_STEPS.md#dazflow.pipeline.DEFAULT_STEPS).

`registry: Registry | None = None`  
Where steps are looked up; [dazflow.steps.registry](steps.registry.md#dazflow.steps.registry) by default.

`adapters: Registry | None = None`  
How each step is called; [dazflow.pipeline.adapters](pipeline.adapters.md#dazflow.pipeline.adapters) by default. A step with no adapter is called as `run(dataset, config)` with the latest dataset.


## Methods

| Name | Description |
|----|----|
| [config()](#config) | `value` validated as the step's [Config](Config.md#dazflow.Config), every default filled in. |
| [run()](#run) | Run the steps from `start` to `stop`. Prints nothing and writes no files. |
| [select()](#select) | The steps from `start` to `stop`, both included, in pipeline order. |
| [step()](#step) | The step module registered under `name`. |

------------------------------------------------------------------------


#### config()


`value` validated as the step's [Config](Config.md#dazflow.Config), every default filled in.


Usage

``` python
config(name, value)
```


------------------------------------------------------------------------


#### run()


Run the steps from `start` to `stop`. Prints nothing and writes no files.


Usage

``` python
run(
    configs=None,
    *,
    root=None,
    data=None,
    previous=None,
    start=None,
    stop=None,
    earlier=None,
    earlier_configs=None,
    earlier_record=None,
    seed=None,
    project=None,
    environment=None
)
```


[configs](project.Project.md#dazflow.project.Project.configs) maps step names to configurations (a missing one takes the step's defaults). `root` is the folder relative input paths are read from. `data` holds frames for ingest's inputs by name. `previous` is the previous data vintage for clean's revisions check: a [Dataset](Dataset.md#dazflow.Dataset), or a [ReadSpec](readers.ReadSpec.md#dazflow.readers.ReadSpec) read from `root`. A run that starts after the first step needs the earlier steps' results in `earlier` (with their datasets), and their configurations in `earlier_configs`. `seed` is passed to every step's adapter for the step's random draws (`project.yaml: seed`). `project` is the project configuration a step's [StepInputs.record()](pipeline.StepInputs.md#dazflow.pipeline.StepInputs.record) carries; [environment](pipeline.environment.md#dazflow.pipeline.environment) the environment it records (default: the running one; a replay passes the recorded one).


------------------------------------------------------------------------


#### select()


The steps from `start` to `stop`, both included, in pipeline order.


Usage

``` python
select(start=None, stop=None)
```


------------------------------------------------------------------------


#### step()


The step module registered under `name`.


Usage

``` python
step(name)
```
