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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for progress_runner-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fdfc187d52d5049fa5da51e9060d20335f4e555d02aee588a6e6bee8c76fd54 |
|
MD5 | ac8f578129f8001628dfb890005777e0 |
|
BLAKE2b-256 | cbb732408f773a25c5b8dc97effd333eaa259483f6c61ab536e0d0c9a19c53f2 |