Skip to main content

A simple scheduling package.

Project description

image logo

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dott, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size dott-1.1.1-py2.py3-none-any.whl (4.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size dott-1.1.1.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page