A multiprocessing process manager for Python programs
Project description
processmanager
A multiprocessing process manager for Python programs
It provides:
- Simple offloading of work to other processor cores
- State management for the functions in those processes
- It is easy to cancel in-progress work, which can be useful if a user clicks 'Cancel' in a GUI
- Logging of exceptions while running offloaded functions
- Streaming of results to main process from generator functions
- This can help smooth out IPC load curve by avoiding an all-at-once result transfer
Original use case:
- GUI program that calls back-end functions for work
- GUI has a cancel button that should always work, so:
- the GUI mainloop should not be blocked
- the called functions should intermittently check if the user has pressed the cancel button
- Want to avoid running new work when the user wants to cancel
- Want to work with generators and multiprocessing
- e.g. send results constantly to main process instead of all at once
Installation:
- pip install processmanager
Documentation:
Tested for Python >=3.6.5 on Linux (Ubuntu) and Windows 7/10
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
processmanager-0.1.1.tar.gz
(31.4 kB
view details)
Built Distribution
File details
Details for the file processmanager-0.1.1.tar.gz
.
File metadata
- Download URL: processmanager-0.1.1.tar.gz
- Upload date:
- Size: 31.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48e01a1c85ee79cd41127c9230c54701dadacad73a30eb3d071020aae0e158f1 |
|
MD5 | 47c44b631345e13f273bdf9ca8e7b7c3 |
|
BLAKE2b-256 | 885edc1c0ec340a99aee107c80e39327e46f4b7bdd23bedc10066003015fd074 |
File details
Details for the file processmanager-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: processmanager-0.1.1-py3-none-any.whl
- Upload date:
- Size: 44.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91999ff77f23411c387395b696d2ae7356ae75a662b8fd3fc84756c233e06f18 |
|
MD5 | b6dfe211b340ea7fbec56ee94577e261 |
|
BLAKE2b-256 | 521596b23d057d847aa154378553a533fca3de7db430874f3a185f15e961a774 |