views:

124

answers:

4

I'm looking to incorporate twitter API features into an app engine project that I'm working on.

I'm relatively new to both app engine and python, so I'm wondering what modules/frameworks I should use to most easily incorporate twitter, and to facilitate twitter oauth?

I've seen:
python-twitter
tipfy
gaema

+2  A: 

python-twitter is the strongest library for a do-it-yourself approach. You implement the API in your framework of choice. It is well-maintained code.

tipfy ported the TwitterMixin from Tornado, so you don't need to care about many implementation details. It is probably easier to get something done but it is integrated to tipfy, so you can't really use it as a library for other frameworks. Auth example is here.

gaema is also ported from Tornado, but it is unmaintained.

Theres also tweetapp, but the repository says that it is also not maintained.

Other frameworks may have similar helpers (or you can use a OAuth library).

Disclaimer: I'm author of tipfy and gaema.

moraes
I helped create tweetapp, but I second the warning, it was essentially a proof of concept we hacked together when Twitter released OAuth. I still use parts of it in one app, but am going to use one of the others (Python Twitter Tools or tweepy maybe)
RyanW
+2  A: 

I heartily recomment tipfy, but, as its author @moraes just said, it is its own, little, lightweight framework -- integration with others is possible (through WSGI middleware concepts), but your life is much simpler if you stick with a single framework, and django is much richer (and, of course, much bigger and less simple -- those are two sides of the same coin;-) and very very popular.

I personally like the "very lightweight" approach of tipfy (and WSGI, and Werkzeug, on which it relies), but if you have to pick one single framework for a wide variety of uses, you could surely do much worse than going with the most popular one, that is, django (e.g. as this post suggests).

Alex Martelli
+1  A: 

I recommend using: Tweepy. There is an example app here: http://github.com/wasauce/tweepy-examples

Tweepy is under active development so I think it will serve you well.

Wasauce
A: 

I'm really liking Python Twitter Tools but I haven't yet incorporated it into an App Engine app. Will be soon though. Tweepy is next on my list to checkout.

RyanW