tasks-runner


Nametasks-runner JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://github.com/sebastianguerra/tasks-runner
SummaryA simple concurrent tasks runner with progress bar
upload_time2024-10-08 05:37:16
maintainerNone
docs_urlNone
authorSebastian Guerra
requires_python<4.0,>=3.12
licenseMIT
keywords tasks jobs concurrent progress bar runner
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Tasks Runner

Wrapper for `ThreadPoolExecutor` to run tasks concurrently step by step.

## Installation

```bash
pip install tasks-runner
```

## Usage Example

```python
from tasks_runner import TasksRunner

def add1(x):
    return x + 1

def mul2(x):
    return x * 2

def sub3(x):
    return x - 3

steps = [add1, mul2, sub3]
data = [1, 2, 3]

runner = TasksRunner(data, steps)

runner = runner.run()

print(runner.collect())
# [1, 3, 5]
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sebastianguerra/tasks-runner",
    "name": "tasks-runner",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.12",
    "maintainer_email": null,
    "keywords": "tasks, jobs, concurrent, progress, bar, runner",
    "author": "Sebastian Guerra",
    "author_email": "spguerraespinoza@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1d/68/a5353b0ebbbf32803e560c8e172a0463eb13e69aa608550d4989efa01328/tasks_runner-0.1.4.tar.gz",
    "platform": null,
    "description": "# Tasks Runner\n\nWrapper for `ThreadPoolExecutor` to run tasks concurrently step by step.\n\n## Installation\n\n```bash\npip install tasks-runner\n```\n\n## Usage Example\n\n```python\nfrom tasks_runner import TasksRunner\n\ndef add1(x):\n    return x + 1\n\ndef mul2(x):\n    return x * 2\n\ndef sub3(x):\n    return x - 3\n\nsteps = [add1, mul2, sub3]\ndata = [1, 2, 3]\n\nrunner = TasksRunner(data, steps)\n\nrunner = runner.run()\n\nprint(runner.collect())\n# [1, 3, 5]\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple concurrent tasks runner with progress bar",
    "version": "0.1.4",
    "project_urls": {
        "Homepage": "https://github.com/sebastianguerra/tasks-runner",
        "Repository": "https://github.com/sebastianguerra/tasks-runner"
    },
    "split_keywords": [
        "tasks",
        " jobs",
        " concurrent",
        " progress",
        " bar",
        " runner"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "84b6c8bd67c7aa9c8e3de9379678f91b5a1c551787092f4312aa66d7fc3daf09",
                "md5": "1f67ebbe4550f261b8c926728a8d97a7",
                "sha256": "25b7f8e456de15b9796000e39f1eb9ad1b4db12f22d1814f69629edbf2aed833"
            },
            "downloads": -1,
            "filename": "tasks_runner-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1f67ebbe4550f261b8c926728a8d97a7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.12",
            "size": 5623,
            "upload_time": "2024-10-08T05:37:14",
            "upload_time_iso_8601": "2024-10-08T05:37:14.827141Z",
            "url": "https://files.pythonhosted.org/packages/84/b6/c8bd67c7aa9c8e3de9379678f91b5a1c551787092f4312aa66d7fc3daf09/tasks_runner-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1d68a5353b0ebbbf32803e560c8e172a0463eb13e69aa608550d4989efa01328",
                "md5": "58743bc440e0d3d6d95b9b1c4b3c78b4",
                "sha256": "cae1460f9c3f2fad6423dbfe32c20cfc17a7f52256788c3dcb1c5b14234dbe13"
            },
            "downloads": -1,
            "filename": "tasks_runner-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "58743bc440e0d3d6d95b9b1c4b3c78b4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.12",
            "size": 4193,
            "upload_time": "2024-10-08T05:37:16",
            "upload_time_iso_8601": "2024-10-08T05:37:16.281558Z",
            "url": "https://files.pythonhosted.org/packages/1d/68/a5353b0ebbbf32803e560c8e172a0463eb13e69aa608550d4989efa01328/tasks_runner-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-08 05:37:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sebastianguerra",
    "github_project": "tasks-runner",
    "github_not_found": true,
    "lcname": "tasks-runner"
}
        
Elapsed time: 0.34178s