-
-
Save savage69kr/6474158 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
from flask import request | |
import sys | |
app = Flask(__name__) | |
port = sys.argv[1]; | |
@app.route("/") | |
def home(): | |
msg = request.args.get('msg') | |
print msg | |
return msg | |
if __name__ == "__main__": | |
app.run(host='127.0.0.1', port=int(port)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install Flask |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment