Skip to main content

Script runner based on interval

Project description

cron-task

Simple task runner for pythonista

Usage

from cron_task import Executor

def task():
    print('some task')

worker = Executor()
worker.every(1).seconds.execute(task)

# Start task runner
worker.start()

# Stop task runner
worker.stop()

# Manually run executor
while True:
    worker.run_scheduled()

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

cron_task-0.1.1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

cron_task-0.1.1-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file cron_task-0.1.1.tar.gz.

File metadata

  • Download URL: cron_task-0.1.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for cron_task-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2991e3d475b727ffc0cd50331fd7437685d5217bb594058dfef905ecf9ba5c6f
MD5 c6108bf03d862d4bfc4b36cf603fbece
BLAKE2b-256 3b8a1c77328f3eaf5ba9241745ba9c50bfac98d75c8ddade72af03e5b13839a3

See more details on using hashes here.

File details

Details for the file cron_task-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cron_task-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for cron_task-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a35e612e6c808d8e94b4f74acc3c2f6522ac7a4560f332ddabdfcf0dfcb893e
MD5 0576f58bf6c5109110f2840100b0afff
BLAKE2b-256 a8ad5188d24d63f6605b62d1d108e66d6b14052df7cce3bfc8a08d5effae9cd9

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