<s> from wsgiref . simple_server import make_server <EOL> from pyramid . config import Configurator <EOL> from pyramid . response import Response <EOL> def hello_world ( request ) : <EOL> print ( '<STR_LIT>' ) <EOL> return Response ( '<STR_LIT>' % request . matchdict ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> config = Configurator ( ) <EOL> config . add_route ( '<STR_LIT:hello>' , '<STR_LIT>' ) <EOL> config . add_view ( hello_world , route_name = '<STR_LIT:hello>' ) <EOL> app = config . make_wsgi_app ( ) <EOL> server = make_server ( '<STR_LIT>' , <NUM_LIT> , app ) <EOL> print ( '<STR_LIT>' ) <EOL> server . serve_forever ( ) </s>
