Skip to main content

cron-schedule

Package version Supported Python versions

Installation

pip install cron-schedule 

Usage

from datetime import datetime
import time

from schedule import schedule


def do_some_job():
    print('do_some_job...', datetime.now())


schedule.add_job(do_some_job, "* * * * * 15,25")

while True:
    schedule.run_pending()
    time.sleep(1)
do_some_job... 2022-09-23 15:35:15.152107
do_some_job... 2022-09-23 15:35:25.193932

thanks

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cron-schedule-1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

cron_schedule-1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file cron-schedule-1.1.tar.gz.

File metadata

  • Download URL: cron-schedule-1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.6 Darwin/21.4.0

File hashes

Hashes for cron-schedule-1.1.tar.gz
Algorithm Hash digest
SHA256 b69da731ed30398a6bb88b4e76fb9fb18931a19fcc439ff4d9299ed4390c405e
MD5 0418df9d6b7f6ce88a84a4b1205b4aba
BLAKE2b-256 e92c849b750973edf4a2299e2835f0d1c534ae6465cbc5b69ae8df42f7c550f7

See more details on using hashes here.

File details

Details for the file cron_schedule-1.1-py3-none-any.whl.

File metadata

  • Download URL: cron_schedule-1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.6 Darwin/21.4.0

File hashes

Hashes for cron_schedule-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e55e928cf9c472aee6d046f05fb2ac7dc78be0a8c3fffa52a6ef2fab3a2d9a48
MD5 4e9fbd07aab10c27d1c803a459f16125
BLAKE2b-256 8b0e70d464587c9e74e65421baebbced6d1fc250f6e44dcf4e142dd2e5ecd5ab

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1 This release

2 files

0.1.0

2 files

Supported by

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