A simple small module for Pythonista (http://omz-software.com/pythonista) which aims to make an easy callback URL handling & argument passing system.
import callback
- Create a handler instance
handler = callback.InfoHandler(sys.argv)
- Decorate command handlers with
@handler.cmd(cmdname)
- Call
handler.handle()
(and if it returns False, there was nothing to handle!)