Skip to main content

stop-thread

pytestpythonCode style: blackLicense: MITPyPI version

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()

Metadata

Release files for stop-thread 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stop-thread 0.1.0
File Size Uploaded
stop-thread-0.1.0.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stop-thread 0.1.0
File Interpreter ABI Platform
stop_thread-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / stop-thread-0.1.0.tar.gz

Download URL stop-thread-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3d1ddaddeb4cc9b09d4562e2a5516e027ce3df960d21bc0444bbd0b327597b3c
BLAKE2b-256 checksum
How to use checksums
5da58dd1d40b4e0217218b12e1dfe73ec9107bd2694503d362696cbe8eec6658
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.5 Windows/10

Release files / stop_thread-0.1.0-py3-none-any.whl

Download URL stop_thread-0.1.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb3bd7ef096c3d3b8d8424035e655b47bbdfac334a65afaf19adc0aeb4ce8801
BLAKE2b-256 checksum
How to use checksums
172de23b33ce317ce3036002855669ad311acebda5dd9fbf43773937c8c81ffb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.5 Windows/10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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