Skip to main content

xthread

Threading for human.

Build Status Download PyPi MIT Py version PyPi version

Features

Some of main features:

  • Support pause/unpause
  • Support termination thread non-preemtively

Installation

You can install xthread from PyPi

$ pip install xthread

Usage

import time
from xthread import Thread

def target(executor):
    print("Running...")
    time.sleep(1)

thread = Thread(target)

# Running...
# Running...

thread.pause()

thread.unpause()

# Running...
# Running...

thread.stop()

Metadata

Release files for xthread 0.0.2

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

Source distribution (sdist)

Source distribution for xthread 0.0.2
File Size Uploaded Provenance Actions
xthread-0.0.2.tar.gz 6.5 kB Without provenance Details for xthread-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xthread 0.0.2
File Interpreter ABI Platform Actions
xthread-0.0.2-py3-none-any.whl Python 3 none any Details for xthread-0.0.2-py3-none-any.whl

Total release size: 10.0 kB

Release files / xthread-0.0.2.tar.gz

Download URL xthread-0.0.2.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
316a9c0d70a193532432f40d4c7d95045af2a4ac49b0de8bc081c7eb8c637f26
BLAKE2b-256 checksum
How to use checksums
193023c699dc85200972f8aa0c65c2f19307257f66ae2aea700c426a18c79476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / xthread-0.0.2-py3-none-any.whl

Download URL xthread-0.0.2-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f77a28765f42f9f108757dff3e3308d88360290daf3d5d64184b020edb2b9b2c
BLAKE2b-256 checksum
How to use checksums
90b7c32f553812e59a3c505c9c9016596bdf80e64efb291f1815805d146e34c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Security for xthread 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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