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.9

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.9
File Size Uploaded
k3thread-0.1.9.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for k3thread 0.1.9
File Interpreter ABI Platform
k3thread-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / k3thread-0.1.9.tar.gz

Download URL k3thread-0.1.9.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cd6926913af01c8222dd06d95a49033bd96ec8b4c6882e121a00557ce21298a1
BLAKE2b-256 checksum
How to use checksums
795209da1a82fc0cf0d30fa926a5f531c5ffb7c19e6f6ea5dfedb6276b896aef
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.9-py3-none-any.whl

Download URL k3thread-0.1.9-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0e9e4f22184e855cc42fbf5c6f48d8ea92019507ff1518032b87007901a6290
BLAKE2b-256 checksum
How to use checksums
e53427c9b0911c11292dbe1b00d44a5e5a5a142529f79b7998b473769c385cc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release history Release notifications | RSS feed

0.1.11

2 release files

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

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