Getting Started
You can write a flow in a few lines of code:
from xyzflow import Parameter
# Define parameters
x = Parameter(value=10, description="X")
y = Parameter(value=10, description="Y")
def main():
return x + y
if __name__ == "__main__":
print(main()()) # Execute flow and print the result
Note
- A flow consists out of:
Parameter definitions in the global scope
A main() method that returns the resulting Task
Optionally: A main if clause that executes your defined flow
To run the flow you can simple call it from the terminal:
$ python3 my_flow.py
20