Skip to main content

Simple data flow with execution in separate threads and easy scheduling configuration.

Project description

Fluxo

Logo Fluxo

Simple data flow with execution in separate threads and easy scheduling configuration.

Installation

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

How to Use

1 - Create a folder in the project root:

First, create a folder named python_files at the root of your project. This folder will contain your Python files.

2 - Create a Python file within the python_files folder:

Now, create a Python file named fluxo1.py within the python_files folder. This is where you can write your Python code.

3 - Write the code:

Write the following code in the fluxo1.py file to create a basic flow with a task:

python_files/flow1.py:

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!')

4 - Finally, start the program with the command below:

python -m fluxo.init_schedule

5 - In another terminal, run the command below to start the web server::

python -m fluxo.init_server

6 - Open browser:

http://127.0.0.1:8080

Logo Fluxo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fluxo-0.14.1.tar.gz (261.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fluxo-0.14.1-py3-none-any.whl (283.0 kB view details)

Uploaded Python 3

File details

Details for the file fluxo-0.14.1.tar.gz.

File metadata

  • Download URL: fluxo-0.14.1.tar.gz
  • Upload date:
  • Size: 261.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for fluxo-0.14.1.tar.gz
Algorithm Hash digest
SHA256 d32c43a8ecf54c9226428b973cc7e441cb59e5c596075a0a70c7258aa8620110
MD5 e33103d3c741b2b3327ef7e50396c7d3
BLAKE2b-256 988a75840a9e4857a5eed304744b911015391c85c20a2d51b5664e1264a9b7fc

See more details on using hashes here.

File details

Details for the file fluxo-0.14.1-py3-none-any.whl.

File metadata

  • Download URL: fluxo-0.14.1-py3-none-any.whl
  • Upload date:
  • Size: 283.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for fluxo-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea668d294f66451e93cabcf3d9a1958f47de596086eb2b62e154e2986064810c
MD5 d134f06e82e532c3b15a2a7e52be59ee
BLAKE2b-256 d81138fe7e44f8972117e7bf651b04b614d50719e72210915dc131976fb8f29e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page