Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs. http://stackoverflow.com/questions/tagged/twython
Find a file
2009-08-24 02:47:02 -04:00
build/lib Alright, now import twython works as it should. 2009-08-06 02:57:02 -04:00
dist Alright, now import twython works as it should. 2009-08-06 02:57:02 -04:00
examples Reorganizing into a more package based structure, setting an initial (not working) setup.py file - this will be expanded soon 2009-07-28 03:13:48 -04:00
twython.egg-info Alright, now import twython works as it should. 2009-08-06 02:57:02 -04:00
__init__.py Alright, now import twython works as it should. 2009-08-06 02:57:02 -04:00
LICENSE Changed licensing, modified contents of setup.py to conform to what Pypi wants/needs 2009-07-28 23:22:52 -04:00
README Changing references to Tango 2009-08-03 00:38:59 -04:00
setup.py Alright, now import twython works as it should. 2009-08-06 02:57:02 -04:00
twython.py Fairly large commit - this should fix a slew of issues with passing results from functions (follower ids, for instance) to other functions. Before, they were returned as Numbers, but most functions expect Strings, so there's an extra conversion layer now which should help out on that front. urlencode also properly encodes to utf-8 now (major thanks to contributions from Maatsu on this). Password is also no longer stored as an instance variable. These changes are mirrored in Twython3k, but I've not yet had time to test that in full - as with anything Python3k related, proceed with caution. (There are also some changes relating to how string concatenation is done, but that's all minor in scope) 2009-08-24 02:47:02 -04:00
twython3k.py Fairly large commit - this should fix a slew of issues with passing results from functions (follower ids, for instance) to other functions. Before, they were returned as Numbers, but most functions expect Strings, so there's an extra conversion layer now which should help out on that front. urlencode also properly encodes to utf-8 now (major thanks to contributions from Maatsu on this). Password is also no longer stored as an instance variable. These changes are mirrored in Twython3k, but I've not yet had time to test that in full - as with anything Python3k related, proceed with caution. (There are also some changes relating to how string concatenation is done, but that's all minor in scope) 2009-08-24 02:47:02 -04:00

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 support is in the works, but every other part of the Twitter API should be covered. Twython
handles both Basic (HTTP) Authentication and OAuth, and OAuth is the default method for
Authentication. To override this, specify 'authtype="Basic"' in your twython.setup() call.

Documentation is forthcoming, but Twython attempts to mirror the Twitter API in a large way. All
parameters for API calls should translate over as function arguments.


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(authtype="Basic", 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.