from pymindaemon import PyminDaemon
import config
-PyminDaemon(config.bind_addr, config.routes).run()
+PyminDaemon(config.routes, config.bind_addr).run()
>>> PyminDaemon(('', 9999), dict(test=test_handler)).run()
"""
- def __init__(self, bind_addr, routes):
+ def __init__(self, routes=dict(), bind_addr=('', 9999)):
r"""Initialize the PyminDaemon object.
See PyminDaemon class documentation for more info.
print 'echo:', message
return message
- PyminDaemon(('', 9999), dict(test=test_handler, echo=echo_handler)).run()
+ PyminDaemon(dict(test=test_handler, echo=echo_handler)).run()