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.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for stop_thread-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb3bd7ef096c3d3b8d8424035e655b47bbdfac334a65afaf19adc0aeb4ce8801 |
|
MD5 | 492101dded8733308dffe02e5dcecf31 |
|
BLAKE2b-256 | 172de23b33ce317ce3036002855669ad311acebda5dd9fbf43773937c8c81ffb |