Created
September 4, 2012 15:02
-
-
Save javierhonduco/3622034 to your computer and use it in GitHub Desktop.
Just the flask server version of wonderful @mattt's https://github.com/mattt/GroundControl/ Just add a procfile and maybe gunicorn. Enjoy! ;)
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 plistlib import writePlistToString | |
app = Flask(__name__) | |
@app.route("/") | |
def default_plist(): | |
plist_content = { | |
'Greeting' : "Hello, World", | |
'Price' : 4.20, | |
'FeatureXIsLaunched' : True | |
} | |
return writePlistToString(plist_content) | |
if __name__ == "__main__": | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment