Skip to main content

Sleeps in chunks of 0.05 seconds (with status bar) / ctrl+c to exit without throwing an Exception

Project description

Sleeps in chunks of 0.05 seconds / ctrl+c to exit without throwing an Exception / status bar

# Tested with:
# Python 3.9.13
# Windows 10

pip install sleepchunk

from sleepchunk import sleep, sleep_with_statusbar, sleep_random
sleep(secs=3)
sleep_with_statusbar(maxrange=10) # [======] 6 / 10
sleep_random(start=2, end=3, with_statusbar=False)
sleep_random(start=2, end=3, with_statusbar=True)
sleep(secs=0)

Project details


Release history Release notifications | RSS feed

This version

0.10

Download files

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

Source Distribution

sleepchunk-0.10.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

sleepchunk-0.10-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

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