GAE and simples3

One of the projects I work on, aptly named simples3, doesn't work on Google's App Engine architecture.

This is, or rather used to be, somewhat of a problem for me, as I'm a heavy-duty S3 user and also one of those guys who just want to avoid this whole issue of deployment altogether. Then for obvious reasons, Google App Engine (GAE henceforth) has been very interesting to me.

However, since Google decided that Python's standard library URL fetching mechanisms were insecure for their purposes, they designed their own one. What this further means is that anything that uses urllib2, urllib or httplib will need to be rewritten.

The above is why I wrote the piece of code I want you to know about, which is also fairly aptly named gaes3. What it does is sit on top of simples3, and overrides certain methods so that the simples3 code actually uses Google's URL fetching APIs.

Check it out at
gaes3 on GitHub, or opt for the easy way and go easy_install gaes3.


Comments
Posted by: Ian Bicking §

The patches from appengine-monkey have, I believe, been integrated into GAE for some time, which provide an httplib-compatible API built on Google's custom API. Other libraries like urllib and urllib2 are simply built on httplib, and should work fine.

2010-01-12 @ 21:56:43
URL: http://blog.ianbicking.org

Comment the entry:

Name: (required, possibly pseudonym)
Remember me (cookie)

E-mail: (not required, never published, solely for me to reply to you in person)

URL:

Comment:

RSS 2.0