Skip to main content

A simple concurrent tasks runner with progress bar

Project description

Tasks Runner

Wrapper for ThreadPoolExecutor to run tasks concurrently step by step.

Installation

pip install tasks-runner

Usage Example

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]

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

tasks_runner-0.1.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

tasks_runner-0.1.4-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file tasks_runner-0.1.4.tar.gz.

File metadata

  • Download URL: tasks_runner-0.1.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for tasks_runner-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cae1460f9c3f2fad6423dbfe32c20cfc17a7f52256788c3dcb1c5b14234dbe13
MD5 58743bc440e0d3d6d95b9b1c4b3c78b4
BLAKE2b-256 1d68a5353b0ebbbf32803e560c8e172a0463eb13e69aa608550d4989efa01328

See more details on using hashes here.

File details

Details for the file tasks_runner-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for tasks_runner-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 25b7f8e456de15b9796000e39f1eb9ad1b4db12f22d1814f69629edbf2aed833
MD5 1f67ebbe4550f261b8c926728a8d97a7
BLAKE2b-256 84b6c8bd67c7aa9c8e3de9379678f91b5a1c551787092f4312aa66d7fc3daf09

See more details on using hashes here.

Supported by

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