<s> from flask import Flask <EOL> import flask_profiler <EOL> app = Flask ( __name__ ) <EOL> app . config [ "<STR_LIT>" ] = True <EOL> app . config [ "<STR_LIT>" ] = { <EOL> "<STR_LIT>" : True , <EOL> "<STR_LIT>" : app . config [ "<STR_LIT>" ] , <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT>" : "<STR_LIT>" <EOL> } , <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT>" : True , <EOL> "<STR_LIT:username>" : "<STR_LIT>" , <EOL> "<STR_LIT:password>" : "<STR_LIT>" <EOL> } <EOL> } <EOL> @ app . route ( '<STR_LIT>' , methods = [ '<STR_LIT:GET>' ] ) <EOL> def getProduct ( id ) : <EOL> return "<STR_LIT>" + str ( id ) <EOL> @ app . route ( '<STR_LIT>' , methods = [ '<STR_LIT>' ] ) <EOL> def updateProduct ( id ) : <EOL> return "<STR_LIT>" . format ( id ) <EOL> @ app . route ( '<STR_LIT>' , methods = [ '<STR_LIT:GET>' ] ) <EOL> def listProducts ( ) : <EOL> return "<STR_LIT>" <EOL> flask_profiler . init_app ( app ) <EOL> @ app . route ( '<STR_LIT>' , methods = [ '<STR_LIT:GET>' ] ) <EOL> def doSomething ( ) : <EOL> return "<STR_LIT>" <EOL> @ app . route ( '<STR_LIT>' , methods = [ '<STR_LIT:GET>' ] ) <EOL> @ flask_profiler . profile ( ) <EOL> def doSomethingImportant ( ) : <EOL> return "<STR_LIT>" <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> app . run ( host = "<STR_LIT:127.0.0.1>" , port = <NUM_LIT> ) </s>
