Skip to main content

an ncurses process runner with progress display

Project description

Progress Runner

progress_runner is an ncurses display for batch-processing.

Installation:

$ pip3 install progress_runner

Usage from shell:

Create a python file with a work function in it. Ex:

async def work(param):
	return True

The function must be async, take one parameter, and return bool.

$ progress_runner test.py test_params.txt

When using the shell command, the params file will be parsed as newline-delimited-text, and each line will be passed into your custom work function.

Usage in python:

import progress_runner

async def work(param):
	return True

params = [
	(1,2,3),
	(4,5,6),
	(7,8,9)
]

progress_runner.run(work, params, nthreads=5)

# or:

p = progress_runner.ProgressRunner(work, params, nthreads=5)
p.run()

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

progress_runner-0.0.3.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

progress_runner-0.0.3-py2.py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 2 Python 3

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