Skip to main content

Job scheduling for humans.

Project description

Python job scheduling for humans. Inspired by Adam Wiggins’ clockwork.

Installation

$ pip install schedule

Usage

import schedule

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)

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

Meta

Daniel Bader – @dbader_orgmail@dbader.org

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

https://github.com/dbader/schedule

History

0.1.8 (2013-05-21)

  • Change default delay_seconds for schedule.run_all() to 0 (from 60)

  • Added more unit tests.

0.1.7 (2013-05-20)

  • API change: renamed schedule.run_all_jobs() to schedule.run_all()

  • API change: renamed schedule.run_pending_jobs() to schedule.run_pending()

  • API change: renamed schedule.clear_all_jobs() to schedule.clear()

  • Added schedule.jobs

0.1.6 (2013-05-20)

  • Fix packaging

  • README fixes

0.1.4 (2013-05-20)

  • API change: renamed schedule.tick() to schedule.run_pending_jobs()

  • Updated README and setup.py packaging

0.1.0 (2013-05-19)

  • Initial release

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.1.8.tar.gz (5.2 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for schedule-0.1.8.tar.gz
Algorithm Hash digest
SHA256 a1d9823d569aab56a53cf010657978b08c70e553c9c44ff95a5f204919e4dda7
MD5 1af1877e50b6229cf03c98b8ca510615
BLAKE2b-256 bcc870bb6d40683d73725e9a6aec8e0993b90d817a28aa1e467bab2254ac95a6

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