Threading for human.
Features
Some of main features:
- Support pause/unpause
- Support termination thread non-preemtively
Installation
You can install xthread from PyPi
$ pip install xthread
Usage
import time
from xthread import Thread
def target(executor):
print("Running...")
time.sleep(1)
thread = Thread(target)
# Running...
# Running...
thread.pause()
thread.unpause()
# Running...
# Running...
thread.stop()
Metadata
Release files for xthread 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xthread-0.0.2.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xthread-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / xthread-0.0.2.tar.gz
| Download URL | xthread-0.0.2.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
316a9c0d70a193532432f40d4c7d95045af2a4ac49b0de8bc081c7eb8c637f26
|
|
BLAKE2b-256 checksum How to use checksums |
193023c699dc85200972f8aa0c65c2f19307257f66ae2aea700c426a18c79476
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / xthread-0.0.2-py3-none-any.whl
| Download URL | xthread-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f77a28765f42f9f108757dff3e3308d88360290daf3d5d64184b020edb2b9b2c
|
|
BLAKE2b-256 checksum How to use checksums |
90b7c32f553812e59a3c505c9c9016596bdf80e64efb291f1815805d146e34c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|