Skip to main content

Schedule with Docstrings

Project description

DocCron

Schedule with Docstrings

License Version
Travis CI Coverage
AppVeyor Supported versions
Wheel Implementation
Status Show your support

Installation

pip install DocCron

Description

Cron-based scheduler inspired by doctest

Example

Run hello() at every 2nd minute and 3rd minute:

import time


def hello():
    """
    */2 * * * *
    */3 * * * *
    """
    print(time.strftime('%Y-%m-%d %H:%M:%S'), "hello world")


if __name__ == '__main__':
    import doccron
    doccron.run_jobs()

Features

References

Author

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

DocCron-0.4.0.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

DocCron-0.4.0-py2.py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 2 Python 3

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