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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file joplan-0.1.0.tar.gz.

File metadata

  • Download URL: joplan-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.13 Linux/5.13.0-1031-azure

File hashes

Hashes for joplan-0.1.0.tar.gz
Algorithm Hash digest
SHA256 38fd2b63fd94312a8b1e2c7e8d3f66e87c40e54690e35576c0ef3ec7f68821dc
MD5 515fa6a05adf1e68597ce3ced5e017a9
BLAKE2b-256 2c5833bb169d4daa50aa409f044399dc97b6f792eb1017fa883ae2ea8ebc160a

See more details on using hashes here.

File details

Details for the file joplan-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: joplan-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.13 Linux/5.13.0-1031-azure

File hashes

Hashes for joplan-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9375b2a09c5238d207c0bddf8e64186f0ffb2b3f7be9b6b804f8fa84d924583b
MD5 8951dc75b7e6778ef2bf5e79093fd6a7
BLAKE2b-256 af1351e74831c62c0abf3647214f27b288deb66c7bef58a3d3bee9b3785d819b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page