Skip to main content

Thread utilities for daemon threads and exception sending

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

k3thread-0.1.7.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

k3thread-0.1.7-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file k3thread-0.1.7.tar.gz.

File metadata

  • Download URL: k3thread-0.1.7.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for k3thread-0.1.7.tar.gz
Algorithm Hash digest
SHA256 21c6084d4d69cc133651d676ad81afdd6139a72aeb6b8bf1138c75cb5824385e
MD5 5f6a751366dfaf9fe132d38a2a757697
BLAKE2b-256 0cacd8be463874dc3fd75bb6aa7a326b15a2357da9ee3a72cd378fd86a8de6e1

See more details on using hashes here.

File details

Details for the file k3thread-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: k3thread-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for k3thread-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 285e2e8a149edfde9d400c793c55dd70970554411559b2fbc5ed2c76ffaff99f
MD5 72c5e92ca41f25a8c0cd50a5d6709280
BLAKE2b-256 ba0b13094afa1a9dfa929574aa2320b6d14050ba1bb56bf8ced39517128ff1f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page