Commit graph

456 commits

Author SHA1 Message Date
Michael Helmick
f9d87b6fd3 Left out 'python' in hashbang, update setup to use env, too.
Left out 'python' in hashbang, update setup to use env, too.
2012-01-12 23:16:36 -05:00
Michael Helmick
e54183df9c Uploading profile image and profile background image, update setup required packages, removed some funcs.
* You can now update user profile image or user profile background
image thanks to the Python requests library.

* Updated setup to include 'requests' as a required package

* Changed to beginning hashbang to use the users environment python
version

* try/except for parse_qsl, removed try/excepts where it used
cgi.parse_qsl/urlparse.parse_sql

* Lines 161/162 (using self.consumer/token) <- this addition ended up
not being needed, but it doesn't hurt.

* updateProfileBackgroundImage() - param 'tile' is now True/False
rather than a string "true" or string "false"

* removed encode_multipart_formdata func, not needed any longer
2012-01-12 22:37:50 -05:00
Ryan McGrath
efb0e74b38 Merge pull request #54 from mhameed/patches
Swap out the hilariously fun method_missing clone for a more debug-able version that registers endpoints directly, thanks to @mhameed. Should make life easier for people...
2012-01-08 14:50:43 -08:00
Mesar Hameed
fa90a298b9 Merge branch 'master' into patches 2011-12-19 20:40:33 +00:00
Mesar Hameed
262b7441d4 Get rid of __getattr__ since the endpoints are directly
registered into Twython by the constructor.
2011-12-19 20:39:21 +00:00
Ryan McGrath
fa1b581c0f Merge pull request #52 from decause/master
PEP8 Edits: Mostly cosmetic tweaks. Removed tabs, breaking lines longer than 80 chars, etc...
2011-12-17 16:35:00 -08:00
Remy D
cf5b382d55 PEP8 Edits: Removed Tabs, removed spaces around keywords, linebreaks in lines
longer than 80 chars
2011-12-07 14:26:02 -05:00
Remy D
fb8cefd823 PEP8 Edit: Removed Tab -> added 4 spaces 2011-12-07 14:24:23 -05:00
Remy D
9fcd14f3d1 PEP8 Edit: Removed Tab -> added 4 spaces 2011-12-07 14:23:22 -05:00
Remy D
709c8453ea PEP8 Edit: Removed Tab -> added 4 spaces 2011-12-07 14:22:15 -05:00
Mesar Hameed
4710c49b28 Allow for easier debugging/development, by registering endpoints directly into Twython3k. 2011-11-30 14:30:58 +00:00
Mesar Hameed
650a69ec17 Allow for easier debugging/development, by registering endpoints directly into Twython. 2011-11-24 16:02:06 +00:00
Ryan McGrath
d93651c486 Merge pull request #50 from mckellister/master
Handling rate limiting errors from search api
2011-11-10 14:10:17 -08:00
Kelly Slemko
4d4aa302d4 Modifying how error is constructed to make sure it calls init on the
super class
2011-11-09 15:39:02 -08:00
Kelly Slemko
f31446fa31 Added handling for rate limiting error from search api. Now throws
special exception which includes number of seconds to wait before trying
again.
2011-11-09 14:42:10 -08:00
Ryan McGrath
979da12c16 Merge pull request #48 from GunioRobot/clean
This was done by a bot combing the internets. Hilarious, why not...
2011-10-26 22:06:35 -07:00
Gun.io Whitespace Robot
8852e21dc6 Remove whitespace [Gun.io WhitespaceBot] 2011-10-26 21:00:35 -04:00
Ryan McGrath
226f129edb Copy new endpoint to Twython3k, bump release 2011-10-27 02:32:28 +09:00
Ryan McGrath
6ac19f62a0 Merge pull request #47 from coldclimate/master
Added endpoint for userLookup
2011-10-26 10:29:31 -07:00
oliver
88474546e1 Adding in end point for userLookup to facilitate https://dev.twitter.com/docs/api/1/get/users/lookup 2011-10-26 18:04:59 +01:00
Ryan McGrath
ae9652a091 Syntax highlighted 2011-10-11 05:38:35 +09:00
Ryan McGrath
d2d74b2b4d ...and remove the import... 2011-10-07 06:41:29 +09:00
Ryan McGrath
446d1e0c18 Fix issue #45, mimetools.choose_boundary => email.generator._make_boundary() 2011-10-07 06:40:15 +09:00
Ryan McGrath
e92f648b81 Fix issue #44, typo 2011-10-07 06:27:24 +09:00
Ryan McGrath
d89b2735bb Version bump, fixes to the 3k build (courtesy of wescpy), decode all responses before JSON parsing, 1.4.4 release 2011-10-07 05:20:33 +09:00
Ryan McGrath
467f27a2a3 Ah, this was pretty out of date! Thanks to wescpy for the heads up. 2011-10-07 05:12:16 +09:00
Ryan McGrath
a8e980357b Merge pull request #42 from kracekumar/master
* Fixes searchTwitter[Gen] not yielding properly
* Moves searchTwitter/searchTwitterGen methods to non-Twitter names
* Formatting
2011-10-06 13:02:06 -07:00
kracekumar
1d737b67d9 Modified searchTwitter() -> search(), searchTwitterGen() -> searchGen() in twython3k 2011-10-05 19:04:24 +05:30
kracekumar
1d8f2a8851 fixed typo 2011-10-05 08:04:44 +05:30
kracekumar
d6ac7c18f4 changed searchTwitter() -> search() and searchTwitterGen() -> searchGen() 2011-10-05 07:52:10 +05:30
kracekumar
7c5787ce26 changed searchTwitter() to search() 2011-10-03 23:39:29 +05:30
Edward Hades
5a155d4b7c Fix AttributeError in OAuth version detection.
Old versions of OAuth didn't have _version attribute, so Twython crashes
on them with AttributeError.

This version first checks if there is _version attribute. If no,
obviously it's an old version.
2011-09-08 14:39:39 +08:00
Ryan McGrath
d6d8823dc2 Fixes an issue with incompatibility with newer versions of the SimpleGeo OAuth2 library; also fixes an issue with bulkUserLookup fixes not being up on Pypi (issue #37, thanks jmalina327) 2011-08-09 18:01:17 -04:00
Ryan McGrath
7441a535ee Merge pull request #34 from jelsas/master
streaming.py was throwing an IndentationError
2011-05-11 11:31:53 -07:00
Jonathan Elsas
e262e80b23 minor changes to ensure streaming.py doesn't throw an IndentationError 2011-05-11 14:25:07 -04:00
Ryan McGrath
a3159bd6a7 Based on a heads up from hp-lw, this appears to have been swapped on Twitter's end. No real idea why, but this fixes the call. Thanks\! 2011-04-02 18:15:08 +09:00
Ryan McGrath
c9417af4ae Merge branch 'master' of git@github.com:ryanmcgrath/twython 2011-03-30 22:38:31 +09:00
Ryan McGrath
a6d524e79d Update to 1.4.2, catch for Python 2.5 where urlparse doesn't exist (specifically for Google App Engine, which is strangely still on 2.5 2011-03-30 22:38:07 +09:00
Edward Hades
f184595ccf Allow passing arbitrary arguments to client backend.
Useful for timeout, for example.
2011-03-01 02:01:08 +08:00
Edward Hades
4e690f5568 Parameters now can be of any type.
The patch by Eugene (9133d0f10e) is nice, because you don't have to
manually encode() the parameters yourself. But it sucks a little,
because all your parameter values must be unicodes now.

Proposed patch encodes unicodes to utf-8 and allows the olde strs and
longs (I love to use longs in 'id' fields somewhy).
2011-02-28 19:30:09 +08:00
Ryan McGrath
9f8c04b0f2 Patch for Python 2.5; inspect.getargspec() doesn't return a named tuple pre-2.6, so catch on AttributeError and just check in the entire tuple. Increment to 1.4.1 and pushed to Pypi for the sake of 2.5 users. 2011-02-26 01:56:28 -05:00
Ryan McGrath
8aee9932a5 Hmmm, lost submodule status for twython-django; not sure why, adding back. 2011-02-26 01:37:22 -05:00
Ryan McGrath
7f24324507 Updating to 1.4, pushing slew of changes up to Pypi (major thanks to Hades and eriks5 for their patches). 2011-02-26 01:14:21 -05:00
Ryan McGrath
7cafb49fe8 Updates about 3k library needs, etc 2011-02-26 01:12:25 -05:00
Edward Hades
22fef638ab twython3k: simplejson wants string, not bytes 2011-02-26 14:04:48 +08:00
Edward Hades
af37b7f52d twython3k: removed unnecessary json magic 2011-02-26 14:04:48 +08:00
Edward Hades
c32c855f5b twython3k: fixed choose_boundary import 2011-02-26 14:04:48 +08:00
Edward Hades
f991f91cf8 twython3: fixed __init__.py 2011-02-26 14:04:48 +08:00
Erik Scheffers
e97ec7ea0a Added 'httplib2' as requirement 2011-02-26 14:04:35 +08:00
Erik Scheffers
ec6169292d Added a few missing endpoints, fixed a few wrong endpoints 2011-02-24 10:53:24 +08:00