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.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 | |
|---|---|---|---|
| k3thread-0.1.7.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k3thread-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / k3thread-0.1.7.tar.gz
| Download URL | k3thread-0.1.7.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21c6084d4d69cc133651d676ad81afdd6139a72aeb6b8bf1138c75cb5824385e
|
|
BLAKE2b-256 checksum How to use checksums |
0cacd8be463874dc3fd75bb6aa7a326b15a2357da9ee3a72cd378fd86a8de6e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / k3thread-0.1.7-py3-none-any.whl
| Download URL | k3thread-0.1.7-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
285e2e8a149edfde9d400c793c55dd70970554411559b2fbc5ed2c76ffaff99f
|
|
BLAKE2b-256 checksum How to use checksums |
ba0b13094afa1a9dfa929574aa2320b6d14050ba1bb56bf8ced39517128ff1f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|