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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file runclock-1.1.1.tar.gz.
File metadata
- Download URL: runclock-1.1.1.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21fc3fc85b3b9eacc94adb8bc9c63cfae5f48e62b7735386b73b155cd02098b5
|
|
| MD5 |
f8fb681bc9f9c3f20f18b6a03a2ac07d
|
|
| BLAKE2b-256 |
b71b67044c4d173e07b1581dda537e8fabf633d0c8711cd4b9b2c0b7baa5ba6d
|
File details
Details for the file runclock-1.1.1-py3-none-any.whl.
File metadata
- Download URL: runclock-1.1.1-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dca9f3d9bb624e3c6aa5814f6812f0d15d875a12813a05cc0a9a47a534e660a4
|
|
| MD5 |
be0d415299b979b3376b803c569ce77a
|
|
| BLAKE2b-256 |
b0ae28af7a082bb4d29cc7a5adf8172dfae0455fb1c66524ad6ed869e91bf070
|