threadman
A simple, type-annotated thread manager for Python. Easily manage and execute tasks concurrently using a configurable thread pool, with progress bar and logging support.
Features
- Simple API for concurrent task execution
- Configurable thread pool size
- Progress bar (via
tqdm) - Logging support (uses Python's
loggingmodule) - Type annotations for better IDE and type checker support
Installation
pip install threadman
Or install from source:
git clone https://github.com/your-username/threadman.git
cd threadman
uv build
pip install dist/threadman-*.whl
Usage Example
from threadman import ThreadManager
def my_task(item):
print(f"Processing {item}")
items = [1, 2, 3, 4, 5]
opts = {
"work_params": items,
"max_threads": 3,
"progress_bar_title": "Processing Items",
"output_status": True,
}
manager = ThreadManager(opts)
manager.run(my_task)
Options
work_params: List of tasks to executemax_threads: Maximum number of concurrent threads (default: 10)progress_bar_title: Title for the progress bar (optional)output_status: Enable logging/progress output (default: True if more than one task)update_seconds: Progress/log update interval (default: 60)queue_timeout: Timeout for queue operations (default: None)
License
MIT
For more details, see the code and docstrings in the threadman package.
Metadata
Release files for threadman 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| threadman-0.1.0.tar.gz | 6.2 kB | With provenance | Details for threadman-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| threadman-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for threadman-0.1.0-py3-none-any.whl |
Total release size: 12.0 kB
Release files / threadman-0.1.0.tar.gz
| Download URL | threadman-0.1.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc33d79ee7f582ca146db29bd5db8990bc685d0c33f891cfc92b9d472e813e40
|
|
BLAKE2b-256 checksum How to use checksums |
de9cfae7da1ea97347afd914049eb881c83ddfc6157167aded42de9da1aa27df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2025.
Transparency logRelease files / threadman-0.1.0-py3-none-any.whl
| Download URL | threadman-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eada384b7416d5003f3ced52169483d57ec3019eee8fbe23f26d7ba73b4ceb99
|
|
BLAKE2b-256 checksum How to use checksums |
1b96f5d1725c89f4651b161ff57625c0131ad676a94d9e2950ab6da2298d51bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2025.
Transparency logSecurity for threadman 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for threadman-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.