Stop a thread in a nasty way
Project description
stop-thread
Stop a thread in a nasty way
Install it
pip install stop-thread
# pip install git+https://github.com/ffreemt/stop-thread
# poetry add git+https://github.com/ffreemt/stop-thread
# git clone https://github.com/ffreemt/stop-thread && cd stop-thread
Use it
import threading
from stop_thread import stop_thread
ident = threading.current_thread().ident
stop_thread(ident)
# possibly follow up with some clean-up to properly terminate the thread
# e.g. thread.quit(); thread.wait()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stop-thread-0.1.0a1.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for stop_thread-0.1.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 888d168528bfd6b2d15f1ab5683d5b970a7718e52b2a56aa38fd58ef188f6115 |
|
MD5 | e0169b45ca1d9b42349a578c4ce262d2 |
|
BLAKE2b-256 | 9d322499abafae373b6dc261d71328d1ec2314f48d58fd3d1954e74b6f3fd8cd |