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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file progress_runner-0.0.2.tar.gz.
File metadata
- Download URL: progress_runner-0.0.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e59b414e308a9768f5c67b24bcfbc916692a387698b002e0fe5a33adc0705f3
|
|
| MD5 |
8e8f34bf09d7b044749223e06ea99cc1
|
|
| BLAKE2b-256 |
7780540d5a1ae0f0ec2013e2baad576bd0cd0268bb3478ab5e183a4fefccbee7
|
File details
Details for the file progress_runner-0.0.2-py2.py3-none-any.whl.
File metadata
- Download URL: progress_runner-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a13709cfd94f418147ffaf0e6a78fcd538f502f97f68fa33a291270be17934c1
|
|
| MD5 |
144ba5a410f4d4dc3acf97ec13586078
|
|
| BLAKE2b-256 |
42bda6966638d95149f4477a84dee66447d70d331c1d41d1ed99049882cacd38
|