public
Description: An up to date, pure Python wrapper for the Twitter API. Supports Twitter's main API, Twitter's search API, and (soon) using OAuth with Twitter/Streaming API.
Homepage: http://groups.google.com/group/twython-talk
Clone URL: git://github.com/ryanmcgrath/twython.git
name age message
file LICENSE Tue Jul 28 20:22:52 -0700 2009 Changed licensing, modified contents of setup.p... [ryanmcgrath]
file README.markdown Mon Nov 23 19:03:21 -0800 2009 Twython 0.9 - enough has changed with the Twitt... [ryanmcgrath]
file __init__.py Wed Aug 05 23:57:02 -0700 2009 Alright, now import twython works as it should. [ryanmcgrath]
directory build/ Mon Nov 23 19:03:21 -0800 2009 Twython 0.9 - enough has changed with the Twitt... [ryanmcgrath]
directory dist/ Mon Nov 23 19:09:30 -0800 2009 Twython 0.9 - enough has changed with the Twitt... [ryanmcgrath]
directory examples/ Sun Oct 11 16:31:23 -0700 2009 oops my bad. fixed the examples properly this time [idris]
file oauth.py Thu Sep 03 21:21:00 -0700 2009 Including a version (1.0) of oauth.py for Twyth... [ryanmcgrath]
file setup.py Mon Nov 23 19:03:21 -0800 2009 Twython 0.9 - enough has changed with the Twitt... [ryanmcgrath]
directory twython.egg-info/ Mon Nov 23 19:03:21 -0800 2009 Twython 0.9 - enough has changed with the Twitt... [ryanmcgrath]
file twython.py Mon Nov 23 19:03:21 -0800 2009 Twython 0.9 - enough has changed with the Twitt... [ryanmcgrath]
file twython3k.py Mon Nov 23 19:03:21 -0800 2009 Twython 0.9 - enough has changed with the Twitt... [ryanmcgrath]
file twython_oauth.py Fri Nov 20 01:16:42 -0800 2009 updateStatus() now supports latitude/longitude ... [ryanmcgrath]
file twython_streaming.py Sun Oct 04 23:07:03 -0700 2009 A stub for further work on Streaming API integr... [ryanmcgrath]
directory twythonoauth/ Thu Sep 24 01:05:38 -0700 2009 Simple Django app skeleton for OAuth testing; c... [ryanmcgrath]
README.markdown

Twython - Easy Twitter utilities in Python

I wrote Twython because I found that other Python Twitter libraries weren't that up to date. Certain things like the Search API, OAuth, etc, don't seem to be fully covered. This is my attempt at a library that offers more coverage.

This is my first library I've ever written in Python, so there could be some stuff in here that'll make a seasoned Python vet scratch his head, or possibly call me insane. It's open source, though, and I'm open to anything that'll improve the library as a whole.

OAuth and Streaming API support is in the works, but every other part of the Twitter API should be covered. Twython handles both Basic (HTTP) Authentication and OAuth (Older versions (pre 0.9) of Twython need Basic Auth specified - to override this, specify 'authtype="Basic"' in your twython.setup() call).

Twython has Docstrings if you want function-by-function plays; otherwise, check the Twython Wiki or Twitter's API Wiki (Twython calls mirror most of the methods listed there).

Requirements

Twython requires (much like Python-Twitter, because they had the right idea :D) a library called "simplejson". You can grab it at the following link:

http://pypi.python.org/pypi/simplejson

Example Use

import twython

twitter = twython.setup(username="example", password="example") twitter.updateStatus("See how easy this was?")

Twython 3k

There's an experimental version of Twython that's made for Python 3k. This is currently not guaranteed to work, but it's provided so that others can grab it and hack on it. If you choose to try it out, be aware of this.

Questions, Comments, etc?

My hope is that Twython is so simple that you'd never have to ask any questions, but if you feel the need to contact me for this (or other) reasons, you can hit me up at ryan@venodesigns.net.

Twython is released under an MIT License - see the LICENSE file for more information.