Skip to content

Easy mechanism to create a daemon which loops over a function

License

Notifications You must be signed in to change notification settings

jacobmsft/looper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

'''

About

Easy mechanism to create a daemon which loops over a function

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages