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 hashes)

Uploaded Source

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