Google App Engine in a Bottle

First of all, you must know bottle and Google App Engine. Both are awesome tools to any web project. They together make both even easier to use. This integration is easy but isn't too much documented.

Add to your source folder and create a file with this content:

from google.appengine.ext.webapp import util
import bottle
from bottle import route

@route(["/", "/:name"])
def hello(name="World"):
    return "Hello %s" % name

def main():

if __name__ == "__main__":

In your app.yaml, just send everything to your app:

application: sample-app
version: 1
runtime: python
api_version: 1

  - url: /.*

Run to test (you already know how to do it if you read Getting Started).

It works nice with last Bottle (v0.9.1). All Google App Engine features are decoupled from webapp, so you can use database, user authentication and others with Bottle.

Comments !