A thread manager for Python programs
Project description
threadmanager
A thread manager for Python programs
Current state: Under development (beta - used in production, but new features are planned)
It provides:
- Centralization of starting and monitoring threads
- State management for the functions in the threads
- Logging for exceptions and excessive runtime
Original use case:
- GUI program that calls back-end functions for IO-bound 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
- Avoid running new work threads when the user wants to cancel
- Allow running callback functions when the program starts working or goes idle.
- e.g. update a status bar with certain text
Installation:
- pip install threadmanager
Tested for Python >=3.6.5 on Linux (Ubuntu) and Windows 7/10
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
threadmanager-0.0.5.tar.gz
(30.6 kB
view hashes)
Built Distribution
Close
Hashes for threadmanager-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a914e3b4b69ef194f4183d5c1d60531dce468e7639993a308f82dce1e131446 |
|
MD5 | 4de7f35ef2f68e2040c37706ab6b8014 |
|
BLAKE2b-256 | b981173e87679297632ddf95c22bef644ea08fb5ed40507805d8398be560a446 |