
from mani import Mani

import logging
logging.basicConfig(format='%(asctime)s %(message)s')


# create logger
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

# create console handler and set level to debug
ch = logging.StreamHandler()
# ch.setLevel(logging.DEBUG)

mani_log = logging.getLogger("mani")
mani_log.setLevel(logging.DEBUG)
mani_log.addHandler(ch)

redis_url = "redis://localhost:6379/"
mani = Mani(redis_url)

@mani.every(weeks=1, at="mon 19:00:00")
def foo():
    print 1 + 1

mani.start()

@@ -437,16 +437,85 @@
 s_url)%0A%0A
+@mani.every(hours=1, at=%2225:00%22)%0Adef foo():%0A    print %22running foo%22%0A%0A
 @mani.ev
@@ -542,35 +542,35 @@
  19:00:00%22)%0Adef 
-foo
+bar
 ():%0A    print 1 
@@ -571,13 +571,21 @@
 int 
-1 + 1
+%22running bar%22
 %0A%0Ama

add more examples