def make_action(app_factory, hostname='localhost', port=5000, threaded=False, processes=1, stream=None, sort_by=('time', 'calls'), restrictions=()):
 def action(hostname=('h', hostname), port=('p', port), threaded=threaded, processes=processes):
  'Start a new development server.'
  from werkzeug.serving import run_simple
  app = ProfilerMiddleware(app_factory(), stream, sort_by, restrictions)
  run_simple(hostname, port, app, False, None, threaded, processes)
 return action

def make_action ( app_factory , hostname = 'localhost' , port = 5000 , threaded = False , processes = 1 , stream = None , sort_by = ( 'time' , 'calls' ) , restrictions = ( ) ) : def action ( hostname = ( 'h' , hostname ) , port = ( 'p' , port ) , threaded = threaded , processes = processes ) : from werkzeug . serving import run_simple app = ProfilerMiddleware ( app_factory ( ) , stream , sort_by , restrictions ) run_simple ( hostname , port , app , False , None , threaded , processes ) return action
return a new callback for :mod:werkzeug .