0
What is the source code for a web server using python
Py web server
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)
+ 1
Search how to work with sockets in Python, that is what you need.
0
I have been given a python assignment to create a web server but I have no idea how to go about it