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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file progress_runner-0.0.3.tar.gz.

File metadata

  • Download URL: progress_runner-0.0.3.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

Hashes for progress_runner-0.0.3.tar.gz
Algorithm Hash digest
SHA256 42971d0145c74c07e621d641ad2ef3ab442c10c2fde6dfaeb68c7a3a34a2c7f9
MD5 f18267c31f82e2755a8358d96db8d2e5
BLAKE2b-256 de3ac1c71da7e407b82263e3c94c03afabad5f393bfdc5d8c112fd40e580e50c

See more details on using hashes here.

File details

Details for the file progress_runner-0.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for progress_runner-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4fdfc187d52d5049fa5da51e9060d20335f4e555d02aee588a6e6bee8c76fd54
MD5 ac8f578129f8001628dfb890005777e0
BLAKE2b-256 cbb732408f773a25c5b8dc97effd333eaa259483f6c61ab536e0d0c9a19c53f2

See more details on using hashes here.

Supported by

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