from werkzeug.routing import Map, Rule # url_join from os.path import join def rule (string, endpoint, **opts) : return Rule(string, endpoint=endpoint, defaults=opts)