A thread manager for Python programs
Project description
threadmanager
A thread manager for Python programs
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.1.0.tar.gz
(30.3 kB
view details)
Built Distribution
File details
Details for the file threadmanager-0.1.0.tar.gz
.
File metadata
- Download URL: threadmanager-0.1.0.tar.gz
- Upload date:
- Size: 30.3 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 | b8ad9ed5ad7b203a900ec916bbe1459db19fd6205ecbffc263cd1317b9dd4a0b |
|
MD5 | 52f45cff224f8f6cf3e2ca0fb5d89d23 |
|
BLAKE2b-256 | 9829ea44978505fd95c52751ebff2928ea2f61e6cf67dc4cfcabac4dc2239246 |
File details
Details for the file threadmanager-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: threadmanager-0.1.0-py3-none-any.whl
- Upload date:
- Size: 34.9 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 | c140fd9611f10784167a6fcec3ecebef1221fe0e3985b0373d59ca8dd58b3597 |
|
MD5 | 4e216e35f90313bf631d1ad076c72235 |
|
BLAKE2b-256 | 82a39a56e8bb64aadb220269ef2c2f657d3433b45927637c38d8c629ca6b4f7a |