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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for cron_task-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a35e612e6c808d8e94b4f74acc3c2f6522ac7a4560f332ddabdfcf0dfcb893e |
|
MD5 | 0576f58bf6c5109110f2840100b0afff |
|
BLAKE2b-256 | a8ad5188d24d63f6605b62d1d108e66d6b14052df7cce3bfc8a08d5effae9cd9 |