Skip to main content

Job scheduling for humans.

Project description

https://api.travis-ci.org/dbader/schedule.svg?branch=master https://coveralls.io/repos/dbader/schedule/badge.svg?branch=master https://img.shields.io/pypi/v/schedule.svg

Python job scheduling for humans.

An in-process scheduler for periodic jobs that uses the builder pattern for configuration. Schedule lets you run Python functions (or any other callable) periodically at pre-determined intervals using a simple, human-friendly syntax.

Inspired by Adam Wiggins’ article “Rethinking Cron” and the clockwork Ruby module.

Features

  • A simple to use API for scheduling jobs.

  • Very lightweight and no external dependencies.

  • Excellent test coverage.

  • Tested on Python 2.7 and 3.5

Usage

$ pip install schedule
import schedule
import time

def job():
    print("I'm working...")

schedule.every(10).minutes.do(job)
schedule.every().hour.do(job)
schedule.every().day.at("10:30").do(job)
schedule.every().monday.do(job)
schedule.every().wednesday.at("13:15").do(job)

while True:
    schedule.run_pending()
    time.sleep(1)

Documentation

Schedule’s documentation lives at schedule.readthedocs.io.

Please also check the FAQ there with common questions.

Meta

Daniel Bader - @dbader_org - mail@dbader.org

Distributed under the MIT license. See LICENSE.txt for more information.

https://github.com/dbader/schedule

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

schedule-0.4.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distributions

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

schedule-0.4.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

schedule-0.4.1-py2-none-any.whl (8.2 kB view details)

Uploaded Python 2

File details

Details for the file schedule-0.4.1.tar.gz.

File metadata

  • Download URL: schedule-0.4.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for schedule-0.4.1.tar.gz
Algorithm Hash digest
SHA256 9e331fa35d7b24dfbe9414232860ad49bf285ae50dcfddaacfb9d1ed6bc6939d
MD5 3507d08da3b97e45829b4c7b18c66ace
BLAKE2b-256 431511b3f21d2168bbbaeb5fb456dd0590bad82f95439b0d1cab69b1fe7d474c

See more details on using hashes here.

File details

Details for the file schedule-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for schedule-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6be3b191159b3ebebba11292731a65e622952df362f13dfffc11d31a560d270
MD5 2ad8d5aebfa839f68a6f980108abe615
BLAKE2b-256 bdd6d6e00f7996b75b9c4f48d942358b5c21ed69437554e6d58240442b58ca44

See more details on using hashes here.

File details

Details for the file schedule-0.4.1-py2-none-any.whl.

File metadata

File hashes

Hashes for schedule-0.4.1-py2-none-any.whl
Algorithm Hash digest
SHA256 9b3d254ebbc79d5d6172feee0946265288ccce22a6214563ebb2ec7a11af98d2
MD5 26be233cb1c0c69b80ecd18f109c1d07
BLAKE2b-256 1f8546347a646bcd15c2963053576386448c9d3ea70e5d875e00d74b5f01defa

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