k3thread
utility to create thread.
k3thread is a component of pykit3 project: a python3 toolkit set.
k3thread is utility to create and operate thread.
Start a daemon thread after 0.2 seconds::
>>> th = daemon(lambda :1, after=0.2)
Stop a thread by sending a exception::
import time
def busy():
while True:
time.sleep(0.1)
t = daemon(busy)
send_exception(t, SystemExit)
Install
pip install k3thread
Synopsis
>>> th = daemon(lambda :1, after=0.2)
Author
Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Copyright and License
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Metadata
Release files for k3thread 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| k3thread-0.1.10.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k3thread-0.1.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / k3thread-0.1.10.tar.gz
| Download URL | k3thread-0.1.10.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
625ebfce0450e970185c180bf422a659f202f568a4a2618f387185a908cda687
|
|
BLAKE2b-256 checksum How to use checksums |
2befd5c787ab48e8e46a32ef0cd06e22c721a45649536ef44db23ad1e1dda764
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / k3thread-0.1.10-py3-none-any.whl
| Download URL | k3thread-0.1.10-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c2505e6271d408ba5574408c576a93f111b3259c758a9c5d1e2c2c9ba9d881b
|
|
BLAKE2b-256 checksum How to use checksums |
9079183bab27397b6290e97d009ab6c0b088f196489b1d0bd0c508c0becd6537
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|