A simple timeout mechanism for Python functions
Project description
pipeline-utils-timeout
install
pip install pipeline-utils-timeout
usage
# case 1: should raise TimeoutException
@timeout_decorator(1)
def long_running_function():
time.sleep(2)
# case 2: should raise TimeoutException
with timeout_manager(1):
time.sleep(2)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pipeline_utils_timeout-0.1.1.tar.gz.
File metadata
- Download URL: pipeline_utils_timeout-0.1.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d705d03f051b5eee8f476160d24012ed412543feea6155d152e635bcbba10b72
|
|
| MD5 |
07e007918b0b6ba03763d288bd625fb0
|
|
| BLAKE2b-256 |
fb6c9bb93371d71b6bd4743f268dc3868288eda8b971f0ca57bbe3331ee8f455
|
Provenance
The following attestation bundles were made for pipeline_utils_timeout-0.1.1.tar.gz:
Publisher:
python-package.yml on pipeline-utils/timeout
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pipeline_utils_timeout-0.1.1.tar.gz -
Subject digest:
d705d03f051b5eee8f476160d24012ed412543feea6155d152e635bcbba10b72 - Sigstore transparency entry: 299283389
- Sigstore integration time:
-
Permalink:
pipeline-utils/timeout@87d2c3ad93161dba7739c0cae8283e65330d48f6 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/pipeline-utils
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@87d2c3ad93161dba7739c0cae8283e65330d48f6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pipeline_utils_timeout-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pipeline_utils_timeout-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37ba0fb2d92279279cb8fbbb7f7d0d06f110fbf638c091f2f6c05ca9027424f1
|
|
| MD5 |
dede6bc391cc5f2d01aa5073f1d331a6
|
|
| BLAKE2b-256 |
3b89bf952b23eab80a2409d6b097020e58f3c97efc3f87af08f2fb7da2a9fd3e
|
Provenance
The following attestation bundles were made for pipeline_utils_timeout-0.1.1-py3-none-any.whl:
Publisher:
python-package.yml on pipeline-utils/timeout
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pipeline_utils_timeout-0.1.1-py3-none-any.whl -
Subject digest:
37ba0fb2d92279279cb8fbbb7f7d0d06f110fbf638c091f2f6c05ca9027424f1 - Sigstore transparency entry: 299283401
- Sigstore integration time:
-
Permalink:
pipeline-utils/timeout@87d2c3ad93161dba7739c0cae8283e65330d48f6 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/pipeline-utils
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@87d2c3ad93161dba7739c0cae8283e65330d48f6 -
Trigger Event:
release
-
Statement type: