A simple scheduling package.
Project description
dott is a simple scheduling package written in Python 3.7.
Install
With pip;
> pip install dott
With git;
> pip install git+https://github.com/alexmacniven/dott.git#egg=dott
Usage
Use dott in your code to schedule invoking a function at a given time(s) or periodically.
dott has just two functions; hourly
and daily
.
Here's some examples:
import dott
def say_hello():
"""Displays 'hello world'."""
print("hello world")
# Invoke `say_hello` every 2 hours.
dott.hourly(say_hello, 2)
# Invoke 'say_hello` daily at 14:00 and 21:00.
dott.daily(say_hello, ["14:00", "21:00"])
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
dott-1.1.1.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file dott-1.1.1.tar.gz
.
File metadata
- Download URL: dott-1.1.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de7a58041fee1d5a1cd5f7fe357bc5d72fff0a7ce1b8672dc501b45b7cd1d57 |
|
MD5 | 2b996471b6c1fbc74a3c78bc58afc758 |
|
BLAKE2b-256 | d7c7bc4e2208ea986b45879403308496f2a18ba228a0a0c4c25a93741df4b20b |
File details
Details for the file dott-1.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: dott-1.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ade5c5793e99aebb38dc7a0d04e28db5bac4e59af463f134370acc07b12724af |
|
MD5 | df544d0764e3e32642a301f067ed2679 |
|
BLAKE2b-256 | 9ad1e3db0efe33bc6254564835503560a8d6fd873ad5b39b3a9134c45219abd4 |