def get(path):
    "\n    Define decorator @get('/path')\n    "

    def decorator(func):

        @functools.wraps(func)
        def wrapper(*args, **kw):
            return func(*args, **kw)
        wrapper.__method__ = 'GET'
        wrapper.__route__ = path
        return wrapper
    return decorator
Define decorator @get('/path')
def get(path):
    "\n    \n    "

    def decorator(func):

        @functools.wraps(func)
        def wrapper(*args, **kw):
            return func(*args, **kw)
        wrapper.__method__ = 'GET'
        wrapper.__route__ = path
        return wrapper
    return decorator