Skip to main content

task_process_wrap

Encapsulate tasks safely using processes

install

pip install task_process_wrap

usage

from task_process_wrap import TaskProcessWrap
import time


tpw = TaskProcessWrap(["python", "-c", "import time; [(print(i, flush=True), time.sleep(1)) for i in range(100)]"])
tpw.start()


while True:
    print(tpw.info())
    time.sleep(0.5)
    if tpw.info()["status"] in ["done", "killed"]:
        break
    if tpw.info()["run_time"] > 10:
        tpw.kill()


print(tpw.info())

Metadata

Release files for task-process-wrap 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 task-process-wrap 0.1.0
File Size Uploaded Provenance Actions
task_process_wrap-0.1.0.tar.gz 2.8 kB Without provenance Details for task_process_wrap-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for task-process-wrap 0.1.0
File Interpreter ABI Platform Actions
task_process_wrap-0.1.0-py3-none-any.whl Python 3 none any Details for task_process_wrap-0.1.0-py3-none-any.whl

Total release size: 6.5 kB

Release files / task_process_wrap-0.1.0.tar.gz

Download URL task_process_wrap-0.1.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e5632a6fdf856c46b14f515e43e61edcea77bccc69435176750c28aa51f315f5
BLAKE2b-256 checksum
How to use checksums
f425edce17c26ee4f2ee9a989bdc7a703485d5efeff7f58398e8b7a7d31027d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.11.15 Windows/10

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

Download URL task_process_wrap-0.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a68ab6c84d5809edd0ba47228226698b226619f84f5250e6bb6bd971f66f47fa
BLAKE2b-256 checksum
How to use checksums
2f944d5855dae1f9fb989fb40a91663410173a6775a8ad1794e259bdbc4b0225
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.11.15 Windows/10

Security for task-process-wrap 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.

Release history Release notifications | RSS feed

This release

0.1.0 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