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 Provenance Actions
stop-thread-0.1.0.tar.gz 4.1 kB Without provenance Details for stop-thread-0.1.0.tar.gz

Built distribution (wheel)

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

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

Security for stop-thread 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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