fluxo


Namefluxo JSON
Version 0.14.1 PyPI version JSON
download
home_page
SummarySimple data flow with execution in separate threads and easy scheduling configuration.
upload_time2023-12-28 23:38:09
maintainer
docs_urlNone
author
requires_python>=3.11
licenseMIT
keywords fluxo data scheduler
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Fluxo

![Logo Fluxo](https://firebasestorage.googleapis.com/v0/b/teste-nascin-cripto.appspot.com/o/icon-192.png?alt=media&token=ab503840-b47d-4555-8bf4-16347df27d55)

### 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](https://firebasestorage.googleapis.com/v0/b/teste-nascin-cripto.appspot.com/o/fluxo-v0.14.0.png?alt=media&token=c6ac9ac9-d272-4312-be1b-219f409095e1)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "fluxo",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "",
    "keywords": "fluxo,data,scheduler",
    "author": "",
    "author_email": "Mailson N\u00e1scin <mailson.nascin@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/98/8a/75840a9e4857a5eed304744b911015391c85c20a2d51b5664e1264a9b7fc/fluxo-0.14.1.tar.gz",
    "platform": null,
    "description": "# Fluxo\r\n\r\n![Logo Fluxo](https://firebasestorage.googleapis.com/v0/b/teste-nascin-cripto.appspot.com/o/icon-192.png?alt=media&token=ab503840-b47d-4555-8bf4-16347df27d55)\r\n\r\n### Simple data flow with execution in separate threads and easy scheduling configuration.\r\n\r\n# Installation\r\n\r\nTo use the `fluxo` library, you can install it using the pip command. Make sure you have Python and pip installed before proceeding.\r\n\r\n```\r\npip install fluxo\r\n```\r\n\r\n# How to Use\r\n\r\n### 1 - Create a folder in the project root:\r\n\r\nFirst, create a folder named `python_files` at the root of your project. This folder will contain your Python files.\r\n\r\n### 2 - Create a Python file within the python_files folder:\r\n\r\nNow, create a Python file named fluxo1.py within the python_files folder. This is where you can write your Python code.\r\n\r\n### 3 - Write the code:\r\n\r\nWrite the following code in the fluxo1.py file to create a basic flow with a task:\r\n\r\n#### python_files/flow1.py:\r\n\r\n```\r\nfrom fluxo import Flow, Task, Minutes\r\n\r\ninterval = Minutes(1, 30).format()\r\nflow = Flow(name='My Flow 1', interval=interval)\r\n\r\n@Task('My Task 1', flow=flow)\r\nasync def My_func():\r\n    print('My_func executed!')\r\n```\r\n\r\n### 4 - Finally, start the program with the command below:\r\n\r\n```\r\npython -m fluxo.init_schedule\r\n```\r\n\r\n### 5 - In another terminal, run the command below to start the web server::\r\n\r\n```\r\npython -m fluxo.init_server\r\n```\r\n\r\n### 6 - Open browser:\r\n\r\n```\r\nhttp://127.0.0.1:8080\r\n```\r\n\r\n![Logo Fluxo](https://firebasestorage.googleapis.com/v0/b/teste-nascin-cripto.appspot.com/o/fluxo-v0.14.0.png?alt=media&token=c6ac9ac9-d272-4312-be1b-219f409095e1)\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Simple data flow with execution in separate threads and easy scheduling configuration.",
    "version": "0.14.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/nascin/fluxo/issues",
        "Homepage": "https://github.com/nascin/fluxo",
        "Source Code": "https://github.com/nascin/fluxo"
    },
    "split_keywords": [
        "fluxo",
        "data",
        "scheduler"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d81138fe7e44f8972117e7bf651b04b614d50719e72210915dc131976fb8f29e",
                "md5": "d134f06e82e532c3b15a2a7e52be59ee",
                "sha256": "ea668d294f66451e93cabcf3d9a1958f47de596086eb2b62e154e2986064810c"
            },
            "downloads": -1,
            "filename": "fluxo-0.14.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d134f06e82e532c3b15a2a7e52be59ee",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 283029,
            "upload_time": "2023-12-28T23:38:07",
            "upload_time_iso_8601": "2023-12-28T23:38:07.500978Z",
            "url": "https://files.pythonhosted.org/packages/d8/11/38fe7e44f8972117e7bf651b04b614d50719e72210915dc131976fb8f29e/fluxo-0.14.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "988a75840a9e4857a5eed304744b911015391c85c20a2d51b5664e1264a9b7fc",
                "md5": "e33103d3c741b2b3327ef7e50396c7d3",
                "sha256": "d32c43a8ecf54c9226428b973cc7e441cb59e5c596075a0a70c7258aa8620110"
            },
            "downloads": -1,
            "filename": "fluxo-0.14.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e33103d3c741b2b3327ef7e50396c7d3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 261744,
            "upload_time": "2023-12-28T23:38:09",
            "upload_time_iso_8601": "2023-12-28T23:38:09.373975Z",
            "url": "https://files.pythonhosted.org/packages/98/8a/75840a9e4857a5eed304744b911015391c85c20a2d51b5664e1264a9b7fc/fluxo-0.14.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-28 23:38:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nascin",
    "github_project": "fluxo",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "fluxo"
}
        
Elapsed time: 0.16611s