From 860b98d18757850d121aff8f702b8c33f64ce037 Mon Sep 17 00:00:00 2001 From: JJ Asghar Date: Tue, 26 Apr 2016 17:14:44 -0500 Subject: [PATCH] inital commit --- main.py | 20 ++++++++++++++++++++ requirements.txt | 5 +++++ setup.py | 0 3 files changed, 25 insertions(+) create mode 100644 main.py create mode 100644 requirements.txt create mode 100644 setup.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..de16cba --- /dev/null +++ b/main.py @@ -0,0 +1,20 @@ +from bottle import Bottle + +app = Bottle() + +# Note: We don't need to call run() since our application is embedded within +# the App Engine WSGI application server. + + +@app.route('/') +def hello(): + """Return a friendly HTTP greeting.""" + return 'Hello World!' + + +# Define an handler for 404 errors. +@app.error(404) +def error_404(error): + """Return a custom 404 error.""" + return 'Sorry, nothing at this URL.' +Status API Training Shop Blog About diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3d6958e --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +# The order of packages is significant, because pip processes them in the order +# of appearance. Changing the order has an impact on the overall integration +# process, which may cause wedges in the gate later. + +bottle==0.11.6 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..e69de29