This is a small python project to schedule python function as cron like jobs, using a decorator syntax.
Currently only async function are executed as part of an asyncio event loop.
To install this project use
pip install pycronie
To schedule a async function one must import the cron decorator and use it on any async function:
from pycronie import Cron
cron = Cron()
@cron.cron("* * * * *")
async def cron_function():
pass
To run the eventloop use cron.run_cron():
crom pycronie import Cron
cron = Cron()
cron.run_cron()