Archive | Python RSS feed for this section

Use Google App Engine to host your Rapportive Raplet

1 Mar

Raplets on Google App Engine

So you got a very cool Raplet ready to fire up our Gmail inboxes, but don’t have a server to host it? Worry not my friends, Google App Engine comes to the rescue! You can host your Raplet on Google App Engine, and leverage the power of Google’s services such as mail, users, datastore etc. for making your Raplet even better. This article will show you how.

You could also call this post as ‘Make your first ‘Hello World’ Raplet using Python’ ! In my Raplets tutorial series of posts, I used PHP as the language for making a Raplet. But this time I’ll explain how to make a Raplet using Python, and we’ll use Google App Engine as a platform to host it.

This is the url for my Raplet hosted on Google App Engine: We’ll be making this!

Before you begin, make sure you meet the following prequisites: (more…)

Use Bottle Python framework with Google App Engine

26 Feb

Hi fellas, hope you’re already flying high with GAE and have your own Amazon product store set up after reading my previous post series on how to Set up an Amazon Book Store on Google App Engine! GAE supports a number of Python web frameworks. See what the Google App Engine site says:

” Google App Engine supports any framework written in pure Python that speaks CGI (and any WSGI-compliant framework using a CGI adaptor) ”

One such framework is ‘Bottle’. Its lightweight (literally, 72 KB only and one file has it all !). This is what ‘Bottle’ s website says:

Bottle is a fast, simple and lightweight WSGI micro web-framework for Python. It is distributed as a single file module and has no dependencies other than the Python Standard Library.

  • Routing: Requests to function-call mapping with support for clean and dynamic URLs.
  • Templates: Fast and pythonic built-in template engine and support for mako, jinja2 and cheetah templates.
  • Utilities: Convenient access to form data, file uploads, cookies, headers and other HTTP related metadata.
  • Server: Built-in HTTP development server and support for paste, fapws3, bjoern, Google App Engine, cherrypy or any other WSGI capable HTTP server.

Bottle might not be a full fledged framework like Django, Pylons etc. but I may say it is ideal for small to medium applications.

In this small article I’ll explain how to use Bottle with Google App Engine.

Set up an Amazon Book Store on Google App Engine – 3 – Display the books list on the results page

23 Feb

This is the third and the final part in the tutorial series, ‘Setting up an Amzon Product Store on Google App Engine’. Please go through the first 2 parts before you continue further. Here are the links:

Okay guys, thank you for your patience and your enthusiasm to learn, and sorry for my ‘very draggy sometimes’ style of writing! This is the last part in this series and we’ll see how to loop through the ‘books’ list for displaying the books properly in a tabular format on the results page.

Create a new file ‘results.html’ in our app’s folder and put the following code in it:

Set up an Amazon Book Store on Google App Engine – 2 – Constructing and Signing the Request for Amazon Product Data

23 Feb

This is the part 2 of the ‘Setting up an Amazon book store on Google App Engine’ tutorial series. I assume that you have followed the first part of this tutorial, and completed the app along with it. If you haven’t, then please read the first part, complete it before continuing.

We continue from where we left off in the last part, our homepage, the ‘index.html’ file. On our homepage, we have a nice header message welcoming our users. We have a form in our content area for the user to enter a keyword/topic to search books on. The form action is set to ‘/fetch’, we need to handle this in our code.

Modify the ‘’ file and add the following code to it: