0

What is the source code for a web server using python

Py web server

19th Apr 2017, 9:53 AM
johnny woode
johnny woode - avatar
4 Answers
+ 4
""" Search for Bottle, Flask or Django modules, in order of simpliest to hardiest ( basic to complete ), then you can write web server by defining functions for specific route request: https://bottlepy.org/docs/dev/tutorial.html """ from bottle import route, run @route('/hello') def hello(): return "Hello World!" run(host='localhost', port=8080, debug=True)
23rd Apr 2017, 11:35 AM
visph
visph - avatar
+ 1
Search how to work with sockets in Python, that is what you need.
19th Apr 2017, 11:06 AM
Jeth
Jeth - avatar
0
I have been given a python assignment to create a web server but I have no idea how to go about it
19th Apr 2017, 10:34 AM
johnny woode
johnny woode - avatar