Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best Twitter Framework for Python on App Engine?

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

like image 608
tlow Avatar asked Dec 22 '22 00:12

tlow


2 Answers

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).

like image 143
Alex Martelli Avatar answered Dec 26 '22 11:12

Alex Martelli


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.

like image 26
moraes Avatar answered Dec 26 '22 11:12

moraes