<s> from growler import ( App ) <EOL> from growler . middleware import ( <EOL> Logger , <EOL> CookieParser , <EOL> DefaultSessionStorage <EOL> ) <EOL> app = App ( '<STR_LIT>' ) <EOL> app . use ( Logger ( ) ) <EOL> app . use ( CookieParser ( ) ) <EOL> app . use ( DefaultSessionStorage ( ) ) <EOL> @ app . get ( '<STR_LIT:/>' ) <EOL> def index ( req , res ) : <EOL> """<STR_LIT>""" <EOL> req . session [ '<STR_LIT>' ] = int ( req . session . get ( '<STR_LIT>' , - <NUM_LIT:1> ) ) + <NUM_LIT:1> <EOL> print ( "<STR_LIT>" . format ( req . session [ '<STR_LIT:id>' ] , <EOL> req . session [ '<STR_LIT>' ] ) ) <EOL> msg = "<STR_LIT>" % ( req . session [ '<STR_LIT>' ] ) <EOL> res . send_text ( msg ) <EOL> req . session . save ( ) <EOL> app . create_server_and_run_forever ( host = '<STR_LIT:127.0.0.1>' , port = <NUM_LIT> ) </s>
