To use the fluxo
library, you can install it using the pip command. Make sure you have Python and pip installed before proceeding.
pip install fluxo
First, create a folder named python_files
at the root of your project. This folder will contain your Python files.
Now, create a Python file named fluxo1.py within the python_files folder. This is where you can write your Python code.
Write the following code in the fluxo1.py file to create a basic flow with a task:
from fluxo import Flow, Task, Minutes
interval = Minutes(1, 30).format()
flow = Flow(name='My Flow 1', interval=interval)
@Task('My Task 1', flow=flow)
async def My_func():
print('My_func executed!')
python -m fluxo.init_schedule
python -m fluxo.init_server
http://127.0.0.1:8080