Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python WSGI server

from flask import Flask

app = Flask(__name__)

@app.route("/")
def index():
    return "<h1>Hello!</h1>"

if __name__ == "__main__":
    from waitress import serve
    serve(app, host="0.0.0.0", port=8080)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #WSGI #server
ADD COMMENT
Topic
Name
5+4 =