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:
- 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
Project details
Release history Release notifications | RSS feed
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.1.1.tar.gz
(14.4 kB
view hashes)
Built Distribution
runclock-1.1.1-py3-none-any.whl
(14.6 kB
view hashes)