which is a library that will map URLS is classes in python like web.py does? like:
URLS = (
'/', 'index',
'/browser/set/(.*)', 'browser_set',
'/captcha', 'captcha',
'/product', 'product',
'/lang/set/(.*)', 'lang_set',
'/(.*)', 'redir',
)
i looked on web.py's code to find the part that does that exact thing to extract it and use it as a standalone library but couldn't find it.