Skip to main content

A framework that exposes a simple set of APIs enabling multi-process integration with the curses screen painting library

Project description

The mpcurses provides a framework that enables a function to be executed at scale and its execution to be visualized on screen at runtime. It consists of a simple set of APIs that provide an abstraction for multiprocessing and the curses screen painting library. The main features:

  • Execute a function across one or more concurrent processes

  • Queue execution to ensure a predefined number of processes are running

  • Visualize function execution using curses screen

  • Define a screen layout using a Python dict

  • Leverage built-in directives for dynamically updating the screen * Keep numeric counts * Update text values * Update text colors * Maintain visual indicators * Update progress bars * Display tables

The framework can be used on any ordinary Python function. The only requirement for enabling function scale and execution visualization is to ensure the function implements logging and a to provide a screen layout definition. The framework takes care of setting up the multiprocessing, configuring the curses screen and the maintaining the thread-safe queues required for communication.

Refer to [How It Works](https://github.com/soda480/mpcurses/wiki/How-It-Works) for additional detail.

Refer to [API Reference](https://github.com/soda480/mpcurses/wiki/API-Reference) for description of the API methods and the screen layout directives.

For samples checkout our home page: https://github.com/soda480/mpcurses

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

mpcurses-0.1.3.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

mpcurses-0.1.3-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file mpcurses-0.1.3.tar.gz.

File metadata

  • Download URL: mpcurses-0.1.3.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.12

File hashes

Hashes for mpcurses-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e95999a641aa398053e3830fac4044bb0f825f0082aa4b0a87cfe1f1bb038c5c
MD5 b491ae4dcaac11b96174b2b086f47398
BLAKE2b-256 ca5dc2cd50c05b0dcd8b537f4b174851f2040e8741920b8571d54c708e14eebc

See more details on using hashes here.

Provenance

File details

Details for the file mpcurses-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: mpcurses-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.12

File hashes

Hashes for mpcurses-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a0ccaed97c2481c8669bdc6a683a7ea4412509c386cf41845f95ac2f37aec29f
MD5 5e4d0f784953e7102fbdb37127126ab1
BLAKE2b-256 dda28d076ac09a5af69da8e52df763f711c3fbfe7e3f7dfa547e16ca6168979c

See more details on using hashes here.

Provenance

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