flowrunner package
Subpackages
- flowrunner.core package
- Subpackages
- Submodules
- flowrunner.core.base module
- flowrunner.core.decorators module
- flowrunner.core.helpers module
DAGGeneratorGraphValidatorGraphValidator.graphGraphValidator.check_step_not_included_next()GraphValidator.get_validation_suite()GraphValidator.graphGraphValidator.run_validations()GraphValidator.run_validations_raise_error()GraphValidator.validate_length_end_nodes()GraphValidator.validate_length_middle_nodes()GraphValidator.validate_length_start_nodes()GraphValidator.validate_middle_next_nodes()GraphValidator.validate_start_next_nodes()
- Module contents
- flowrunner.runner package
- flowrunner.system package
Submodules
flowrunner.cli module
Module for cli commands Usage: python -m flowrunner [OPTIONS] COMMAND [ARGS]…
Welcome to flowRunner! 🚀
flowRunner is a lightweight package to organize and represent Data Engineering/Science workflows. Its designed to be integrated with any pre- existing framework like pandas or PySpark
Main FeaturesEasy BaseFlow to use to build Flows off ofSimple decorators to convert methods to Flow methodsCommand Line Interface for running Flows
- Options:
- --help
Show this message and exit.
- Commands:
run Command to run a Flow show Command to show the order of iteration of a Flow validate Command to validate a Flow directory Command to visualize a directory
Module contents
Welcome to FlowRunner!
FlowRunner is a lightweight package to organize and represent Data Engineering/Science workflows. Its designed to be integrated with any pre-existing framework like pandas or PySpark
Main Features - Easy BaseFlow to use to build Flows off of - Simple decorators to convert methods to Flow methods - Command Line Interface for running Flows
```python # example.py from flowrunner import BaseFlow, step, start, end
- class ExampleFlow(BaseFlow):
@start @step(next=[‘method2’, ‘method3’]) def method1(self):
self.a = 1
@step(next=[‘method4’]) def method2(self):
self.a += 1
@step(next=[‘method4’]) def method3(self):
self.a += 2
@end @step def method4(self):
self.a += 3 print(self.a)
You can run the flow with the following command
`sh
$ python -m flowrunner example.py
7
`