Skip to main content

With this library you can set time for running your code

Project description

run-clock

With this little library you can set time for running your code.

Usage:

run_at:

This function takes 3 arguments in string type:

  1. hour
  2. minute
  3. second

For example, we have a script that we want to run at 11:30:00 :

from runclock import run_at

run_at('11','30','00')
print('time to run !')

And at 11:30:00 , it will print the text.

remember to use '00' instead of '0' or '05' instead of '5'

The defaule value for minute and second is '00' , so you can don't give minute or second argument:

run_at('11')
print('Hi')

It will print the text at 11:00:00

or

run_at('11', '30')

It will print the text at 11:30:00

Installation:

You can install with pip:

pip3 install runclock

or install from source:

git clone https://github.com/Ali-Hosseinverdi/run-clock
cd run-clock
python3 setup.py

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

runclock-1.0.0.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

runclock-1.0.0-py3-none-any.whl (14.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