Skip to main content

k3thread

Build Status Documentation Status Package

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)

Source distribution for k3thread 0.1.7
File Size Uploaded
k3thread-0.1.7.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for k3thread 0.1.7
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page