Skip to main content

Thread utilities for daemon threads and exception sending

Project description

k3thread

Build Status Python package 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.6.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.6-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: k3thread-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 704adce3b79bb9f8d36a2eef3e4c0ffe1f3efae15ee3bc87c17963a68dfbbb4e
MD5 772a79a023c7681607c5f8a5968146ac
BLAKE2b-256 8bb39d4c24509a6380a7096acd74ddf18aa0dc51725213afbbeae3c34a73de69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: k3thread-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e416dbd19558d0c1a86144d491ff82404d3895fa981cc791c7382bfdad1565e1
MD5 a8d3a8a0511bc311a746b51f7786d3fe
BLAKE2b-256 bbeb078a846d87986ec8945faf4976f8e53064423fab4c124eb7d41f27c41570

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