Commit graph

  • 88d89f5652 Docstrings are now in place, thanks to some awesome work by Kulbir Saini. New 0.8 release is about to go out. :D Ryan McGrath 2009-08-28 02:01:25 -04:00
  • f760ba1358 Somehow I missed the showUser/friendsStatus/followersStatus methods up until now. Not sure how, but major thanks go to Chris Babcock for pointing this out to me. Any commits after this will be OAuth and Docs focused - might be nearing a 1.0 release! ;) Ryan McGrath 2009-08-25 01:05:19 -04:00
  • 90789b73eb 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) Ryan McGrath 2009-08-24 02:47:02 -04:00
  • 6ab69d4636 Incremental commit; started decorator function for auth checking, new exception (twython.AuthError) which will (in the future) be raised in the event of authentication failure. Ryan McGrath 2009-08-23 04:14:23 -04:00
  • 035dcdb264 Retweeting API is now supported in full - Twython3k is also up to date and on the same level as the Twython2k build. Ryan McGrath 2009-08-19 02:57:08 -04:00
  • 458dc6dc17 ReTweet API (POST) is supported by Twython (still waiting on Twitter to finish implementation, of course). All errors raised in Twython (related to Twython, of course) are now raised as 'TwythonError', essentially replacing the old 'TangoError' method. Ryan McGrath 2009-08-18 03:30:15 -04:00
  • 0d37e5be40 Added getHomeTimeline() support - this isn't a supported feature of the Twitter API just yet, but it's not bad to throw support for it in Twython now. (Twython3k will get an update soon that has this) Ryan McGrath 2009-08-14 03:42:42 -04:00
  • c62c41a45e Alright, now import twython works as it should. Ryan McGrath 2009-08-06 02:57:02 -04:00
  • adab94b240 There, *now* this build should be fixed. Ryan McGrath 2009-08-06 02:43:40 -04:00
  • c0b56f33a7 Reorganizing structure, finally made the setup.py install function actually work - thanks to the guys in #python for their help. Ryan McGrath 2009-08-06 01:48:14 -04:00
  • 5ba7e99e6e Some more work on OAuth, borrowing ideas from existing implementations - parsing of responses, etc. Feel free to critique/contribute. Ryan McGrath 2009-08-04 02:20:49 -04:00
  • b0b345d013 Final 0.5 release fixes for packaging things... Ryan McGrath 2009-08-03 00:56:23 -04:00
  • e070055816 Incremental release fixes... Ryan McGrath 2009-08-03 00:51:27 -04:00
  • 0a2d8456af More package change info Ryan McGrath 2009-08-03 00:46:53 -04:00
  • 999adbe2ba New build, representing 0.5 release - fixed bad indentation errors in Twython, small cleanup here and there Ryan McGrath 2009-08-03 00:46:26 -04:00
  • 3b22ff34ce Properly porting files... Ryan McGrath 2009-08-03 00:45:29 -04:00
  • fb41d4100c Changing references to Tango Ryan McGrath 2009-08-03 00:38:59 -04:00
  • cbfa71c286 Changing over to Twython, rolled back version number to aim for a more consistent release schedule - nowhere near a 1.0 release yet... Ryan McGrath 2009-08-03 00:36:08 -04:00
  • 983f8e3065 Huh, that indentation was off... backing out this comment for now Ryan McGrath 2009-08-01 15:34:39 -04:00
  • f2101405e9 Merge branch 'master' of git@github.com:ryanmcgrath/tango Ryan McGrath 2009-07-31 03:31:32 -04:00
  • 4a86adb977 NOTICE: On 08/01/2009, Tango is going to be renamed to "Twython". In renaming the GitHub repo, most watchers/followers will be lost, so please take note of this date if you wish to continue following development! Ryan McGrath 2009-07-31 03:31:08 -04:00
  • 0d086c5395 Name change, inserting a basic docstring to get the ball rolling Ryan McGrath 2009-07-29 13:47:25 -04:00
  • 0101d3b3e4 Fixing a bug wherein self.headers doesn't exist - reference headers arg instead Ryan McGrath 2009-07-29 12:54:33 -04:00
  • 91e03fe7ef Updating version to 0.8.0.1, as showStatus() had a bug with authentication and needed to be pushed out Ryan McGrath 2009-07-29 00:10:34 -04:00
  • c83a033765 Fixing a bug with authentication in showStatus() - previously it assumed that you were *always* authenticated Ryan McGrath 2009-07-29 00:08:26 -04:00
  • 6fe1a95a2e Packaged versions galore... Need to figure out the best way to handle Tango3k soon - perhaps in a new branch? Is anyone even using it at the moment? Ryan McGrath 2009-07-28 23:31:15 -04:00
  • 932d29a1ab Changed licensing, modified contents of setup.py to conform to what Pypi wants/needs Ryan McGrath 2009-07-28 23:22:52 -04:00
  • 1007688925 A somewhat working setup.py - still a work in progress Ryan McGrath 2009-07-28 23:00:43 -04:00
  • 95f3ff17f0 Licensing stuff Ryan McGrath 2009-07-28 03:24:12 -04:00
  • f374ac3e61 Getting rid of cruft Ryan McGrath 2009-07-28 03:14:08 -04:00
  • d7d170cc3b Reorganizing into a more package based structure, setting an initial (not working) setup.py file - this will be expanded soon Ryan McGrath 2009-07-28 03:13:48 -04:00
  • 4fed1e241f Tango now supports adding a unique User Agent, in keeping with Twitter's Search API requirements. See the Wiki for information on usage. Ryan McGrath 2009-07-28 02:52:35 -04:00
  • 8bf063fdf9 Specifying OAuth urls when user specifies OAuth style login Ryan McGrath 2009-07-27 03:13:15 -04:00
  • ccc9ded28b Fixing a README typo Ryan McGrath 2009-07-23 23:59:13 -04:00
  • 9bd05aaab6 Tango now raises an APILimit error that should make catching API rate limit issues easier. More work was also done to fix the bad way that strings are concatenated, though this is still ongoing - this updates applies to both tango and tango3k. Ryan McGrath 2009-07-20 00:24:23 -04:00
  • 5236a85cda Update to tango3k that mirrors the recent changes in Tango master; all methods now raise TangoError() Exceptions when they hit snags, and there are various other changes, such as string concating that should hopefully be a bit faster. Ryan McGrath 2009-07-08 01:34:05 -04:00
  • e642c117a4 All methods now raise tango exceptions; debug parameter is deprecated, header information is only reported back with HTTP code now Ryan McGrath 2009-07-08 01:27:57 -04:00
  • b4f62e9420 Shortened constructApiURL() down to one line, and it's hopefully more efficient. searchTwitter() and some others now raise TangoError Exceptions when they hit a snag; entire library can hopefully be converted by the end of the week. Need to swap out string concatenation methods, as the method used in here is proven to be slower... could be a mess in larger applications. Ryan McGrath 2009-07-07 08:27:33 -04:00
  • 4a910f3b80 Added check for authentication in updateStatus(). Not sure why this was never there; ideally, I should replace all these is_autheticated calls at some point with a decorator. This commit also has a new TangoError Exception class, which updateStatus() will now raise. This should be spread throughout the library in the coming week, when I have a chance to hit these two issues. (Note: The Python 3 version of Tango will most likely incur a lag of a day or so this week, in terms of receiving updates. This will hopefully be made easier in the future... Ryan McGrath 2009-07-06 03:02:01 -04:00
  • 716fe69e60 Fixing issue pointed out by sk89q, wherein updateStatus() doesn't handle the in_reply_to_status_id parameter correctly. Ryan McGrath 2009-07-05 03:53:28 -04:00
  • 69f747a658 Updated search example; major thanks to Sai for pointing out that this was broken. Ryan McGrath 2009-07-03 03:04:47 -04:00
  • 76ca83cb87 Fixed credential verification with Basic (HTTP) Auth; previously, it assumed that passing in credentials meant you knew what you were doing. I take full blame for that act of idiocracy, but it's fixed now. Ryan McGrath 2009-07-02 03:56:24 -04:00
  • b82f88c101 Added check for authentication if user is getting rate limit status for an authenticated user Ryan McGrath 2009-07-01 05:18:52 -04:00
  • c69834935b Added check for authentication if user is getting rate limit status for an authenticated user Ryan McGrath 2009-07-01 05:18:48 -04:00
  • ecee9a438a Example for checking rate limits Ryan McGrath 2009-07-01 05:16:22 -04:00
  • 860563b9f9 Removing useless pass methods Ryan McGrath 2009-06-27 01:53:04 -04:00
  • f52e1415b8 Removing useless pass things Ryan McGrath 2009-06-27 01:52:18 -04:00
  • 3f049a79bb Experimental version of Tango for Python 3k Ryan McGrath 2009-06-25 02:17:06 -04:00
  • 0de4dc7383 Removing bad filename Ryan McGrath 2009-06-25 02:16:45 -04:00
  • d8563c0a6d Experimental version of Tango for Python 3k Ryan McGrath 2009-06-25 02:16:10 -04:00
  • f915891b1b A note about Tango3k Ryan McGrath 2009-06-25 02:14:33 -04:00
  • e8660df23c An experimental version of Tango for Python 3k Ryan McGrath 2009-06-25 02:12:00 -04:00
  • be6cc881f0 Added a small note... Ryan McGrath 2009-06-25 02:11:37 -04:00
  • ea7b2e5cdc Fixing spacing Ryan McGrath 2009-06-25 01:51:17 -04:00
  • 174e0bc045 New README Ryan McGrath 2009-06-25 01:49:00 -04:00
  • 5f63187ca2 Simple example of updating a profile image Ryan McGrath 2009-06-25 01:24:49 -04:00
  • 102eac4d6e Fixed length checking in updateStatus(), removed debug lines from searchTwitter() Ryan McGrath 2009-06-20 01:42:23 -04:00
  • d974321854 Finally got around to fixing the searchTwitter() function. It's now able to accept any and all parameters that correspond with Twitter's API; the final thing there should be allowing a user agent to be set, which still needs to be looked into. Shouldn't be too difficult. Ryan McGrath 2009-06-18 03:56:41 -04:00
  • d85e3dbf28 Example of getting user mentions Ryan McGrath 2009-06-14 20:23:52 -04:00
  • f0a27970f1 Removed needless id parameter Ryan McGrath 2009-06-14 20:17:48 -04:00
  • 3493047180 Examples of user timelines Ryan McGrath 2009-06-14 20:15:54 -04:00
  • 63cf9dba3a Fixed getUserTimeline(), as it was... way out of whack. Should now properly detect which method of identification is needed for the userTimeline scenario. Ryan McGrath 2009-06-14 20:14:32 -04:00
  • b71dd218aa Example of getting the friends timeline Ryan McGrath 2009-06-14 19:31:24 -04:00
  • 4af7c8771f Examples of getting the public timeline Ryan McGrath 2009-06-14 19:09:04 -04:00
  • 480ba23011 A basic example on using Tango for URL shortening Ryan McGrath 2009-06-14 18:42:35 -04:00
  • b2ba65cc45 An example showing how to update a status using basic authentication. Ryan McGrath 2009-06-14 04:09:27 -04:00
  • e697d7206d An example showing the various ways to instantiate tango. Ryan McGrath 2009-06-14 04:07:51 -04:00
  • b49cc2458d More examples for the Trends/Search API Ryan McGrath 2009-06-13 21:42:53 -04:00
  • 2fbb99c38d Current Trends example - very basic Ryan McGrath 2009-06-13 21:34:44 -04:00
  • 55b28c9184 Examples of various Tango scripts Ryan McGrath 2009-06-13 21:00:58 -04:00
  • 90d7e5ffb0 The final API method, Saved Searches. Fixed an issue with the Direct Message function where urllib.urlencode wasn't formed properly; only thing left for release is OAuth. Ryan McGrath 2009-06-08 02:54:53 -04:00
  • 9e1159dd6f Search API Methods, trending and regular search stuff. Cleaned up some more parts of the library. Ryan McGrath 2009-06-08 02:23:21 -04:00
  • 402a2dddc0 All methods now return a Python/JSON value depicting the data Twitter sends back Ryan McGrath 2009-06-08 01:26:32 -04:00
  • 5342fbccc6 The final REST API method, Direct Messages. Remaining targets are OAuth Authentication and the Search/Streaming APIs. Ryan McGrath 2009-06-06 22:32:21 -04:00
  • 4c13afd90a Added blocking methods, just a wee bit more to go... Ryan McGrath 2009-06-06 21:10:04 -04:00
  • 2aff3742e0 friendship() methods are now included. Just a bit more to go... Ryan McGrath 2009-06-06 19:00:22 -04:00
  • 3ec4805fd1 Annotating a TODO list Ryan McGrath 2009-06-04 02:38:11 -04:00
  • 833ad1ebe8 Added social graph methods, cleaned up notification methods, tired as all hell. Ryan McGrath 2009-06-03 03:51:55 -04:00
  • 23d3cca4fc Finished off the Account methods after a 3 hour session of figuring out multipart data in Python - this seriously needs to be part of the standard language. The only thing I've wished I had out of the box thus far. Ryan McGrath 2009-06-01 04:52:07 -04:00
  • 000d9993ee Methods for the notification API; cleaned up a lot of code, threw in more try/excepts to attempt error catching, moved certain lines behind the debug parameter Ryan McGrath 2009-06-01 00:55:46 -04:00
  • 4cf64e3f60 Added in methods for getting, creating, and destroying favorites Ryan McGrath 2009-06-01 00:02:47 -04:00
  • 4c4d1bd876 A rather large and ugly updateProfile() method, but it works. Ryan McGrath 2009-05-31 23:18:27 -04:00
  • 09b24fbb90 Support for ending open sessions Ryan McGrath 2009-05-31 19:57:56 -04:00
  • 3ca959fded Added a rate limit checker, finished off user methods with a showStatus method, cleaned up some code relating to HTTP Error codes. Ryan McGrath 2009-05-29 02:16:44 -04:00
  • b6a03f918c Many, many changes. Broke out the url shortener so it's more plug and play; users can now throw in their own desired shortening service, and it should auto work. All timeline methods are now implemented, moving on to user methods next. Refactored some parts of the library that were becoming kludgy, and set an optional debug parameter that may be useful in the future. Ryan McGrath 2009-05-28 01:58:56 -04:00
  • 60c6aae346 Finally removed the need for httplib2, Basic HTTP Auth is now working. Ryan McGrath 2009-05-26 02:43:26 -04:00
  • 1887280855 Aiming to remove need for httplib2, but sadly this commit is broken. Ryan McGrath 2009-05-26 01:29:03 -04:00
  • 10c32e427c Added a URL shortening method that hits the is.gd API, random comments sprinkled throughout - coming along nicely. Perhaps fallbacks should be provided for when the is.gd API limit is reached? Ryan McGrath 2009-05-21 03:17:47 -04:00
  • 9a13b0ae3f Added a destroy method, added library checks at top of file Ryan McGrath 2009-05-17 00:56:49 -04:00
  • 4f70913ddb Set OAuth as the default authtype Ryan McGrath 2009-05-15 18:18:23 -04:00
  • 5debb9bca8 Got Basic Auth working through usage of httplib2 - Basic Auth is a horrible idea, and OAuth should be used, but it's still worth supporting for the time being. Why go and re-engineer my way around httplib when the work is already done? Ryan McGrath 2009-05-15 01:41:05 -04:00
  • c47d6008a0 Worked in some try/catch support for loading and hitting the API - needs to happen for other functions as well, once I have more time. Ryan McGrath 2009-05-14 01:38:37 -04:00
  • 1f544c6aaf Added a method to check against the public timeline Ryan McGrath 2009-05-13 03:25:57 -04:00
  • f93d02dfb9 Modifying example somewhat Ryan McGrath 2009-05-12 01:56:24 -04:00
  • dda51e2f54 Abstracted out parameter passing so that it's nothing but **kwargs. Function kwargs are passed to a url-builder function and builds based off of that; should make life easier if Twitter decides to change their API parameters, because users can then change what they're passing without modifying the library. Ryan McGrath 2009-05-12 01:52:44 -04:00
  • 79f14afba2 Added more API support to getUserTimeline(); fixed issues with Tango not properly importing, started basic Auth shell Ryan McGrath 2009-05-08 02:37:39 -04:00
  • 0b29bfbbae Expanded getUserTimeline() API support Ryan McGrath 2009-05-07 21:52:17 -04:00
  • 777ac8e6e4 Updated tango.getUserTimeline() to take **kwargs, need to implement full API support for it Ryan McGrath 2009-05-07 01:39:42 -04:00
  • 5a7a0ebcc9 Renaming a function to make room for other trending search stuff Ryan McGrath 2009-05-06 02:20:50 -04:00
  • f2553f81dc Implemented a trending topics search function. Returns an array of dictionary items to loop through - fairly snazzy. Ryan McGrath 2009-05-05 02:19:39 -04:00