Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 374 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 374 Bytes

ChronoTask

A Python function call scheduler that supports crontab-formatted time (also supports async functions).

example of usage:

from chronotask import ChronoTask
import time

task = ChronoTask()

# as a decorator
@task.schedule()
def hello():
    ...


# or by call
task.register(hello)


# start the scheduler
task.start()
time.sleep(10)
task.stop()