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.2.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.2-py2.py3-none-any.whl (3.8 kB view details)

Uploaded Python 2Python 3

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

Hashes for progress_runner-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7e59b414e308a9768f5c67b24bcfbc916692a387698b002e0fe5a33adc0705f3
MD5 8e8f34bf09d7b044749223e06ea99cc1
BLAKE2b-256 7780540d5a1ae0f0ec2013e2baad576bd0cd0268bb3478ab5e183a4fefccbee7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for progress_runner-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a13709cfd94f418147ffaf0e6a78fcd538f502f97f68fa33a291270be17934c1
MD5 144ba5a410f4d4dc3acf97ec13586078
BLAKE2b-256 42bda6966638d95149f4477a84dee66447d70d331c1d41d1ed99049882cacd38

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