Skip to main content

Python Simple Job Scheduling.

Project description

JoPlan - Arrange Jobs as Plan

Installation

$ pip install joplan

Usage

Demo 1

import logging

from joplan import take, do, every

logging.basicConfig(level=logging.INFO)

def f1():
    print('Making F1')

def f2():
    print('Making F2')

take(
    every('2s').do(f1),
    every('3s').do(f2),
).run()

Demo 2

from joplan import take, do, every

take(
    do('pkg.mod.func1').every('5s'),
    do('pkg.mod.func2').every('3m'),
).run()

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

joplan-0.1.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

joplan-0.1.0-py3-none-any.whl (4.0 kB view hashes)

Uploaded 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