Skip to main content

Random timeout between minimum and maximum values

Project description

Timeout

Random timeout between minimum and maximum values

Installation: pip install python-timeout

Usage:

from timeout import timeout

timeout(10, 20) # Random timeout between 10 and 20 seconds
timeout(60, 120) # Random timeout between one minute (60 seconds) and two minutes (120 seconds)

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

python-timeout-2.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file python-timeout-2.tar.gz.

File metadata

  • Download URL: python-timeout-2.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.9

File hashes

Hashes for python-timeout-2.tar.gz
Algorithm Hash digest
SHA256 2a76050b7a6d866403984a9b60977d6d24f6d7ce73647c90ea85cd1da576f8b2
MD5 03546f15f493cc0f29b68be0da8392d9
BLAKE2b-256 39f30727cd4c92df920ee489a057703e5a895162e0a4debc041778f37abd8d4e

See more details on using hashes here.

Supported by

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