Skip to main content

Schedule with Docstring

Project description

DocCron

Schedule with Docstring

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

Installation

pip install DocCron

Description

Cron scheduler inspired by doctest

Example

Run hello() at every 2nd minute.

import time

import doccron


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


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

TODO

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.1.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

DocCron-0.1.0-py2.py3-none-any.whl (6.0 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