Better Threads
A wrapper over threads that provides extended control. The module supports pausing, terminating and putting threads to sleep. The module also provides some additional tools to Pipe data between threads and a thread pool to keep track of threads.
Key features
- Pipe data between threads
- Pause, Resume and Stop threads
- Simple
Installing
Python 3.7 or higher is required
pip install better-threads
Quick example
More exmples https://github.com/ItsYasiru/Better-Threads/tree/master/examples
import time
from BetterThreads import ThreadPool
thread_pool = ThreadPool()
@thread_pool.thread()
def test_loop():
print("Loop running!")
time.sleep(1)
test_loop.start(test_loop)
time.sleep(5)
test_loop.terminate(test_loop)
Metadata
Release files for better-threads 2.0.7
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 |
|---|---|---|---|---|
| better-threads-2.0.7.tar.gz | 4.0 kB | Without provenance | Details for better-threads-2.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| better_threads-2.0.7-py3-none-any.whl | Python 3 | none | any | Details for better_threads-2.0.7-py3-none-any.whl |
Total release size: 8.7 kB
Release files / better-threads-2.0.7.tar.gz
| Download URL | better-threads-2.0.7.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
982d1432bf6e6faed2cb6c8fea253e6d995fa89fe0734da126d3cf71894c3345
|
|
BLAKE2b-256 checksum How to use checksums |
ceda23b688abeaf0cd45f1dfc17cd057d0b921cf426516752f08b92cdf3ecd67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / better_threads-2.0.7-py3-none-any.whl
| Download URL | better_threads-2.0.7-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a42a617f7335390a2e343f86642b6718aefe209cdcbb7f4f644a5efa801cb67f
|
|
BLAKE2b-256 checksum How to use checksums |
7de97c0c6dfb95c6e4d41309ea3be5a431b6b78ed75b163f0bad5e50ec073553
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Security for better-threads 2.0.7
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.