Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipeline_utils_timeout-0.1.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipeline_utils_timeout-0.1.1-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

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

Hashes for pipeline_utils_timeout-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d705d03f051b5eee8f476160d24012ed412543feea6155d152e635bcbba10b72
MD5 07e007918b0b6ba03763d288bd625fb0
BLAKE2b-256 fb6c9bb93371d71b6bd4743f268dc3868288eda8b971f0ca57bbe3331ee8f455

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipeline_utils_timeout-0.1.1.tar.gz:

Publisher: python-package.yml on pipeline-utils/timeout

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pipeline_utils_timeout-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pipeline_utils_timeout-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37ba0fb2d92279279cb8fbbb7f7d0d06f110fbf638c091f2f6c05ca9027424f1
MD5 dede6bc391cc5f2d01aa5073f1d331a6
BLAKE2b-256 3b89bf952b23eab80a2409d6b097020e58f3c97efc3f87af08f2fb7da2a9fd3e

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page