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:
parent
d37f91ce8e
commit
9ca737b986
10 changed files with 1478 additions and 342 deletions
|
|
@ -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,
|
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.
|
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
|
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 of Twython need Basic Auth specified -
|
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.
|
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
|
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).
|
Twitter's API Wiki (Twython calls mirror most of the methods listed there).
|
||||||
|
|
@ -27,7 +27,7 @@ Example Use
|
||||||
-----------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------
|
||||||
> import twython
|
> 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?")
|
> twitter.updateStatus("See how easy this was?")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
1700
build/lib/twython.py
1700
build/lib/twython.py
File diff suppressed because it is too large
Load diff
BIN
dist/twython-0.9.macosx-10.5-i386.tar.gz
vendored
Normal file
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
BIN
dist/twython-0.9.tar.gz
vendored
Normal file
Binary file not shown.
BIN
dist/twython-0.9.win32.exe
vendored
Normal file
BIN
dist/twython-0.9.win32.exe
vendored
Normal file
Binary file not shown.
16
setup.py
16
setup.py
|
|
@ -3,7 +3,7 @@
|
||||||
import sys, os
|
import sys, os
|
||||||
|
|
||||||
__author__ = 'Ryan McGrath <ryan@venodesigns.net>'
|
__author__ = 'Ryan McGrath <ryan@venodesigns.net>'
|
||||||
__version__ = '0.8'
|
__version__ = '0.9'
|
||||||
|
|
||||||
# For the love of god, use Pip to install this.
|
# For the love of god, use Pip to install this.
|
||||||
|
|
||||||
|
|
@ -12,13 +12,13 @@ METADATA = dict(
|
||||||
name = "twython",
|
name = "twython",
|
||||||
version = __version__,
|
version = __version__,
|
||||||
py_modules = ['twython'],
|
py_modules = ['twython'],
|
||||||
author='Ryan McGrath',
|
author = 'Ryan McGrath',
|
||||||
author_email='ryan@venodesigns.net',
|
author_email = 'ryan@venodesigns.net',
|
||||||
description='A new and easy way to access Twitter data with Python.',
|
description = 'An easy (and up to date) way to access Twitter data with Python.',
|
||||||
long_description= open("README.markdown").read(),
|
long_description = open("README.markdown").read(),
|
||||||
license='MIT License',
|
license = 'MIT License',
|
||||||
url='http://github.com/ryanmcgrath/twython/tree/master',
|
url = 'http://github.com/ryanmcgrath/twython/tree/master',
|
||||||
keywords='twitter search api tweet twython',
|
keywords = 'twitter search api tweet twython',
|
||||||
)
|
)
|
||||||
|
|
||||||
# Setuptools version
|
# Setuptools version
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
Metadata-Version: 1.0
|
Metadata-Version: 1.0
|
||||||
Name: twython
|
Name: twython
|
||||||
Version: 0.8
|
Version: 0.9
|
||||||
Summary: A new and easy way to access Twitter data with Python.
|
Summary: An easy (and up to date) way to access Twitter data with Python.
|
||||||
Home-page: http://github.com/ryanmcgrath/twython/tree/master
|
Home-page: http://github.com/ryanmcgrath/twython/tree/master
|
||||||
Author: Ryan McGrath
|
Author: Ryan McGrath
|
||||||
Author-email: ryan@venodesigns.net
|
Author-email: ryan@venodesigns.net
|
||||||
License: MIT License
|
License: MIT License
|
||||||
Description: Twython - Easy Twitter utilities in Python
|
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
|
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
|
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.
|
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,
|
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.
|
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
|
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, and OAuth is the default method for
|
handles both Basic (HTTP) Authentication and OAuth (Older versions (pre 0.9) of Twython need Basic Auth specified -
|
||||||
Authentication. To override this, specify 'authtype="Basic"' in your twython.setup() call.
|
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.
|
|
||||||
|
|
||||||
|
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
|
Requirements
|
||||||
-----------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------
|
||||||
Twython requires (much like Python-Twitter, because they had the right idea :D) a library called
|
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:
|
"simplejson". You can grab it at the following link:
|
||||||
|
|
||||||
http://pypi.python.org/pypi/simplejson
|
> http://pypi.python.org/pypi/simplejson
|
||||||
|
|
||||||
|
|
||||||
Example Use
|
Example Use
|
||||||
-----------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------
|
||||||
import twython
|
> 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?")
|
> twitter.updateStatus("See how easy this was?")
|
||||||
|
|
||||||
|
|
||||||
Twython 3k
|
Twython 3k
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
README
|
|
||||||
setup.py
|
setup.py
|
||||||
twython.py
|
twython.py
|
||||||
twython.egg-info/PKG-INFO
|
twython.egg-info/PKG-INFO
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ from urlparse import urlparse
|
||||||
from urllib2 import HTTPError
|
from urllib2 import HTTPError
|
||||||
|
|
||||||
__author__ = "Ryan McGrath <ryan@venodesigns.net>"
|
__author__ = "Ryan McGrath <ryan@venodesigns.net>"
|
||||||
__version__ = "0.8"
|
__version__ = "0.9"
|
||||||
|
|
||||||
"""Twython - Easy Twitter utilities in Python"""
|
"""Twython - Easy Twitter utilities in Python"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ from urllib.parse import urlparse
|
||||||
from urllib.error import HTTPError
|
from urllib.error import HTTPError
|
||||||
|
|
||||||
__author__ = "Ryan McGrath <ryan@venodesigns.net>"
|
__author__ = "Ryan McGrath <ryan@venodesigns.net>"
|
||||||
__version__ = "0.8"
|
__version__ = "0.9"
|
||||||
|
|
||||||
"""Twython - Easy Twitter utilities in Python"""
|
"""Twython - Easy Twitter utilities in Python"""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue