Twython 3.1.2

An easy way to access Twitter data within Python, one of the few libraries that comes with support for Twitter latest API version
Written in pure Python, Twython is a basic wrapper for the official Twitter API.

The library comes with support for OAuth 2 support and easy authentication procedures.

Developers can use to to query for user information, Twitter lists, timeline streams, direct messages and whatever else the official API lets you query for.

It even comes with support for some basic image uploading features, including for tweeting photos, changing the profile banner, changing the profile background image and even the user avatar.

For versions before Python 2.6, the simplejson library needs to be loaded as well.

last updated on:
December 9th, 2013, 7:40 GMT
developed by:
Ryan McGrath
license type:
MIT License
operating system(s):
Windows / Linux / Mac OS / BSD / Solaris
C: \ Development Tools \ API Tools


In a hurry? Add it to your Download Basket!

user rating 1



What's New in version 3.1.0
  • Added html_for_tweet static method. This method accepts a tweet object returned from a Twitter API call and will return a string with urls, mentions and hashtags in the tweet replaced with HTML.
  • Pass client_args to the streaming __init__, much like in core Twython (you can pass headers, timeout, hooks, proxies, etc.).
  • Streamer has new parameter handlers which accepts a list of strings related to functions that are apart of the Streaming class and start with "on_". i.e. ['delete'] is passed, when 'delete' is received from a stream response; on_delete will be called.
  • When an actual request error happens and a RequestException is raised, it is caught and a TwythonError is raised instead for convenience.
read full changelog

Add your review!