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.0.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.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file pipeline_utils_timeout-0.1.0.tar.gz.

File metadata

  • Download URL: pipeline_utils_timeout-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 432bafb5ca0386914cc6b77080b5124c2f119b9c14f87830c4877ed896241ee3
MD5 8fe8e828d24bb365e6c8a3fc3ea5cc7d
BLAKE2b-256 3b1a11d1e8390089c691f6e49ba9064250cf81538c992446a1c8c178e235dd4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipeline_utils_timeout-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pipeline_utils_timeout-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f43ff38877bd2c923fb1bdbc8c74c95eb384b72804204bf43ffaaec7c55d8dc4
MD5 5f1b2b2087dd20c6a3753c51765067c1
BLAKE2b-256 9e077140d90a72c63242f28bde467a4490d04e5c1da586e46e2a66fdd0ceafbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipeline_utils_timeout-0.1.0-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