runclock

With this library you can set time for running your code


License
GPL-3.0
Install
pip install runclock==1.1.1

Documentation

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, 0)
print('time to run !')

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

The defaule value for minute and second is 0 , so you can skip giving 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