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.11
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.11.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k3thread-0.1.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / k3thread-0.1.11.tar.gz
| Download URL | k3thread-0.1.11.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88501aef68606036448e6bad3b2a6efe88350255c1bc52510bff501e0048e838
|
|
BLAKE2b-256 checksum How to use checksums |
214d54ca900748e0cb77326bbe35dd261f7474509ab6eac96212b9d96bb1997c
|
| 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.11-py3-none-any.whl
| Download URL | k3thread-0.1.11-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9dab3f329ec94ee9e169b058bc88b43507408501aee8146de33550769b3cc340
|
|
BLAKE2b-256 checksum How to use checksums |
ac4ade9545eca6e8232f0428727170729011b61c63684ee02092f08ecb6d07a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|