Skip to main content

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

Project description

Fluxo

Texto Alternativo da Imagem

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/fluxo1.py:

from fluxo.fluxo_core.fluxo import Fluxo
from fluxo.fluxo_core.task import Task

fluxo = Fluxo(
    name='Fluxo 1',
    interval={'minutes': 1, 'at': ':10'})


@Task('Tarefa 1', fluxo=fluxo)
async def my_func():
    print('my_func being 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

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.7.1.tar.gz (13.5 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.7.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fluxo-0.7.1.tar.gz
Algorithm Hash digest
SHA256 e4ca809c83f1b376317a7d0c43f82f7e44cbafdf16b3b6621dbdebfcb308f171
MD5 4856337535c49bcfd6c35c18e56a4ecc
BLAKE2b-256 5f2c258d1f1caa40cbaa6171891a7e5246c79db981041b753fb01c9767f12ba8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fluxo-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 17.8 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.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f7d991eef4a677fd9fa3cea8b95f0541e143001b3f1931b8ece87abff240c724
MD5 d3274d140d24a9843ae0ee59ca42f5e7
BLAKE2b-256 ed729fadb28a3e0d2b7c699659b347140d430fa799c4a0580676d089e1e649bf

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