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:
- hour
- minute
- 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