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, 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


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 details)

Uploaded Source

Built Distribution

runclock-1.1.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

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

Hashes for runclock-1.1.1.tar.gz
Algorithm Hash digest
SHA256 21fc3fc85b3b9eacc94adb8bc9c63cfae5f48e62b7735386b73b155cd02098b5
MD5 f8fb681bc9f9c3f20f18b6a03a2ac07d
BLAKE2b-256 b71b67044c4d173e07b1581dda537e8fabf633d0c8711cd4b9b2c0b7baa5ba6d

See more details on using hashes here.

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

Hashes for runclock-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dca9f3d9bb624e3c6aa5814f6812f0d15d875a12813a05cc0a9a47a534e660a4
MD5 be0d415299b979b3376b803c569ce77a
BLAKE2b-256 b0ae28af7a082bb4d29cc7a5adf8172dfae0455fb1c66524ad6ed869e91bf070

See more details on using hashes here.

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