- Don't touch the
main.py(feel free to look at it though ;-)) - The application entry point is the
run()function of the Python file of each Flow:- Don't change the Python flow filename nor the function name
run() - Add your code to the
run()function - Feel free to organize your code inside multiple files and sub-folders
- Don't change the Python flow filename nor the function name
To run you script with the default parameters
python main.pyTo run you script with the another parameter set:
- First extract your parameters as JSON and edit the parameter values as needed
- Run your application providing the JSON file
# Extract and edit the generated file
onecode-extract my_parameters.json
# Run your application with the file
python main.py my_parameters.jsonTo run a specific flow
python main.py --flow flow_name