Twython 0.9 - enough has changed with the Twitter API as of late that this merits a new release. 0.8 was beginning to show age as the API moved forward, and is now deprecated as a result - 0.9 is the way to go (or trunk, if you're adventurous. ;D)

This commit is contained in:
Ryan McGrath 2009-11-23 22:03:21 -05:00
parent d37f91ce8e
commit 9ca737b986
10 changed files with 1478 additions and 342 deletions

View file

@ -8,9 +8,9 @@ This is my first library I've ever written in Python, so there could be some stu
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. Older versions of Twython need Basic Auth specified -
to override this, specify 'authtype="Basic"' in your twython.setup() call.
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).
@ -27,7 +27,7 @@ Example Use
-----------------------------------------------------------------------------------------------------
> import twython
>
> twitter = twython.setup(authtype="Basic", username="example", password="example")
> twitter = twython.setup(username="example", password="example")
> twitter.updateStatus("See how easy this was?")

File diff suppressed because it is too large Load diff

BIN
dist/twython-0.9.macosx-10.5-i386.tar.gz vendored Normal file

Binary file not shown.

BIN
dist/twython-0.9.tar.gz vendored Normal file

Binary file not shown.

BIN
dist/twython-0.9.win32.exe vendored Normal file

Binary file not shown.

View file

@ -3,7 +3,7 @@
import sys, os
__author__ = 'Ryan McGrath <ryan@venodesigns.net>'
__version__ = '0.8'
__version__ = '0.9'
# For the love of god, use Pip to install this.
@ -12,13 +12,13 @@ METADATA = dict(
name = "twython",
version = __version__,
py_modules = ['twython'],
author='Ryan McGrath',
author_email='ryan@venodesigns.net',
description='A new and easy way to access Twitter data with Python.',
long_description= open("README.markdown").read(),
license='MIT License',
url='http://github.com/ryanmcgrath/twython/tree/master',
keywords='twitter search api tweet twython',
author = 'Ryan McGrath',
author_email = 'ryan@venodesigns.net',
description = 'An easy (and up to date) way to access Twitter data with Python.',
long_description = open("README.markdown").read(),
license = 'MIT License',
url = 'http://github.com/ryanmcgrath/twython/tree/master',
keywords = 'twitter search api tweet twython',
)
# Setuptools version

View file

@ -1,13 +1,13 @@
Metadata-Version: 1.0
Name: twython
Version: 0.8
Summary: A new and easy way to access Twitter data with Python.
Version: 0.9
Summary: An easy (and up to date) way to access Twitter data with Python.
Home-page: http://github.com/ryanmcgrath/twython/tree/master
Author: Ryan McGrath
Author-email: ryan@venodesigns.net
License: MIT License
Description: 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.
@ -16,28 +16,27 @@ Description: Twython - Easy Twitter utilities in Python
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.
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
> 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?")
> import twython
>
> twitter = twython.setup(username="example", password="example")
> twitter.updateStatus("See how easy this was?")
Twython 3k

View file

@ -1,4 +1,3 @@
README
setup.py
twython.py
twython.egg-info/PKG-INFO

View file

@ -16,7 +16,7 @@ from urlparse import urlparse
from urllib2 import HTTPError
__author__ = "Ryan McGrath <ryan@venodesigns.net>"
__version__ = "0.8"
__version__ = "0.9"
"""Twython - Easy Twitter utilities in Python"""

View file

@ -16,7 +16,7 @@ from urllib.parse import urlparse
from urllib.error import HTTPError
__author__ = "Ryan McGrath <ryan@venodesigns.net>"
__version__ = "0.8"
__version__ = "0.9"
"""Twython - Easy Twitter utilities in Python"""