Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 303 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 303 Bytes

looper

Easy mechanism to create a daemon which loops over a function

'''

from looper import Looper

looper = Looper()
looper.capture_signals()

sleep_interval = 15 # seconds
looper.loop(sleep_interval, run_once) 

def run_once():
    # do stuff

'''