hyfi.pipeline
BaseRun
Bases: BaseModel
Run Configuration
Source code in hyfi/pipeline/config.py
PIPELINEs
A class to run a pipeline.
Source code in hyfi/pipeline/pipeline.py
pipe(**kwargs)
staticmethod
Return the PipeConfig.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
**kwargs
|
Additional keyword arguments to pass to the PipeConfig constructor. |
{}
|
Returns:
Name | Type | Description |
---|---|---|
PipeConfig |
Pipe
|
An instance of the PipeConfig class. |
Source code in hyfi/pipeline/pipeline.py
run_pipe(obj, config)
staticmethod
Run a pipe on an object
Parameters:
Name | Type | Description | Default |
---|---|---|---|
obj
|
Any
|
The object to pipe on |
required |
config
|
Union[Dict, Pipe]
|
The configuration for the pipe |
required |
Returns:
Type | Description |
---|---|
Any
|
The result of the pipe |
Source code in hyfi/pipeline/pipeline.py
run_pipeline(config, initial_object=None, task=None)
staticmethod
Run a pipeline given a config
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config
|
Union[Dict, Pipeline]
|
PipelineConfig to run the pipeline |
required |
initial_obj
|
Object to use as initial value |
required | |
task
|
Optional[Task]
|
TaskConfig to use as task |
None
|
Returns:
Type | Description |
---|---|
Any
|
The result of the pipeline |
Source code in hyfi/pipeline/pipeline.py
run_task(task, dryrun=False)
staticmethod
Run pipelines specified in the task
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task
|
Task
|
TaskConfig to run pipelines for |
required |
project
|
ProjectConfig to run pipelines |
required |
Source code in hyfi/pipeline/pipeline.py
run_workflow(workflow, dryrun=False)
staticmethod
Run the tasks specified in the workflow
Parameters:
Name | Type | Description | Default |
---|---|---|---|
workflow
|
Workflow
|
WorkflowConfig object to run |
required |
Source code in hyfi/pipeline/pipeline.py
Pipe
Bases: BaseRun
Pipe Configuration
Source code in hyfi/pipeline/config.py
Pipeline
Bases: BaseRun
Pipeline Configuration
Source code in hyfi/pipeline/config.py
get_pipes()
Get all pipes that this task is aware of
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task
|
The task to use for the pipe |
required |
Returns:
Type | Description |
---|---|
Pipes
|
A list of : class : |
Source code in hyfi/pipeline/config.py
steps_to_list(v)
Convert a list of steps to a list
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cls
|
class to use for conversion |
required | |
v
|
list of steps to convert |
required |
Returns:
Type | Description |
---|---|
list of steps converted to |
Source code in hyfi/pipeline/config.py
update_configs(rc)
Update running config with values from another config
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rc
|
Union[Dict, Running]
|
RunningConfig to update from |
required |