Commit graph

93 commits

Author SHA1 Message Date
Ryan McGrath
59c723ed7e Merge branch 'method_cleanups' from @michaelhelmick
Addresses most changes and issues with Twitter Spring cleanup 2012. Documentation
update on methods, started move to docs in RST format. Exceptions set to eventually
be deprecated (along with search functions).

Conflicts:
	twython/twython.py
2012-05-14 00:42:19 +09:00
Michael Helmick
a42570b685 Trying to make this merge-able.
* We don't need RequestException anymore.

* I changed TwythonError to raise TwythonRateLimitError instead of
TwythonAPIError since TwythonRateLimitError is more verbose and in the
belief we should deprecate TwythonAPILimit and ultimately remove it in
2.0

* And I updated the version to 1.7.0 -- I feel like development as far
as versioning seems like it's going fast, but versioning is versioning
and I'm following Twitter's rhythm of versioning
<major>.<minor>.<bugfix>, minor changing when minor features or
significant fixes have been added. In this case, TwythonRateLimitError
should start being caught in place of TwythonAPILimit
2012-04-12 11:44:27 -04:00
Michael Helmick
03f3a22480 Dynamic Request Methods
Just in case Twitter releases something in their API and a developer
wants to implement it on their app, but we haven't gotten around to
putting it in Twython yet. :)
2012-03-31 18:12:07 -04:00
Michael Helmick
23e529e167 Passing params through functions now work, bug fix version bump
For example:
Twython.getHomeTimeline(include_rts=True) was failing. Really sorry
about this. It is now fixed.
2012-03-23 15:46:19 -04:00
Michael Helmick
59b5733a86 Version Number 2012-03-21 15:27:13 -04:00
Ryan McGrath
9deced8f8b v1.5.0 release
- requests is now the default url/http library, thanks to Mike Helmick
- Initial pass at a Streaming API is now included (Twython.stream()), due to how easy
    requests makes it. Would actually be sad if we *didn't* have this... thanks, Kenneth. >_>;
- Return of shortenURL, for people who may have relied on it before.
- Deleted streaming handler that existed before but never got implemented fully.
- Exceptions now prefixed with Twython, but brought back originals with a more verbose error directing
    people to new ones, deprecate fully in future.
- Twython3k now has an OAuth fix for callback_urls, though it still relies on httplib2. Thanks @jbouvier!
- Added a list of contributors to the README files, something which I should have done long ago. Thank you all.
2012-03-21 19:21:34 +01:00
Michael Helmick
158bf77231 Remove httplib2 dependency, remove "shortenUrl" function, no need for urllib2 either
* Removed shortenUrl since Twitter ALWAYS shortens the URL to a t.co,
anyways.

* Since removing shortenUrl, no need for urllib2 anymore

* No need for httplib2 anymore, either
2012-03-08 12:24:03 -05:00
Ryan McGrath
eca965715e 1.4.6 release for bug fixes - upgrade, please 2012-01-15 14:07:04 -05:00
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
226f129edb Copy new endpoint to Twython3k, bump release 2011-10-27 02:32:28 +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
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
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
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
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
Erik Scheffers
e97ec7ea0a Added 'httplib2' as requirement 2011-02-26 14:04:35 +08:00
Ryan McGrath
8ecdaa5bfa Fix a shortenURL reference bug pointed out by Jacob, incremental release of latest bugfixes because Pypi's been down recently 2010-12-12 14:45:03 +09:00
Ryan McGrath
931921be01 Fix for issue #25, certain search queries not being properly encoded. Thanks to momander for pointing this out... 2010-11-28 17:56:11 +09:00
Ryan McGrath
ed14371d38 Version bump for bug fixes release (1.3.3 => 1.3.4) 2010-10-29 00:32:19 -04:00
Ryan McGrath
3b9527ae69 Fix constructApiURL method, version increment to fix function definitions in new versions 2010-10-20 11:22:31 -04:00
Ryan McGrath
3cef1a463f Redid some examples, moved examples to core_examples to differentiate from oauth_django_example, version bump to 1.3.2 to fix distribution errors with Pip/etc (dumb binaries were being created earlier, just throwing out the source now and letting pip handle it) 2010-10-19 16:31:09 -04:00
Ryan McGrath
eb5541e433 Twython 1.3, OAuth support is now finally included and working. Ships with an example Django application to get people started with OAuth, entire library is refactored to not be a royal clusterfsck. Enjoy. 2010-10-16 23:37:47 -04:00
Ryan McGrath
7ccf8a2baf Bump version slightly 2010-10-14 10:31:53 -04:00
Randall Degges
3580ee22b5 Don't need to include setuptools, heh. 2010-08-18 14:36:18 +08:00
Randall Degges
d9fcd3a264 Fixing setup.py script to use valid setuptools format.
This will fix the broken pip / easy_install issues on many platforms (like
most linux distros).
2010-08-18 14:35:59 +08:00
Ryan McGrath
8bea592d97 Increment version number to 1.2; fixed a bug in updateProfileColors() wherein multiple values wouldn't get properly concatenated/url-encoded. Changed getRateLimitStatus() to accept a boolean of 'checkRequestingIP', which should hopefully make the method a little more clear for debugging purposes. 2010-02-25 02:14:14 -05:00
Ryan McGrath
c40b6a6ebe import oauth as oauth to avoid namespacing conflicts in builds; setup.py now properly includes all necessary modules, fixes build problems people reported 2009-12-17 03:27:23 -05:00
Ryan McGrath
850c1011d1 Breaking down package structure a bit more 2009-12-17 03:19:42 -05:00
Ryan McGrath
a3edbb2348 New package structure; twython is now separated out into core/oauth/streaming. To maintain compatibility with older Twython versions, simply import twython like: 'import twython.core as twython' - this will allow for easier oauth/streaming development, and should hopefully fix a lot of the installation issues people kept running into with easy_install 2009-12-17 03:05:39 -05:00
Ryan McGrath
9ca737b986 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) 2009-11-23 22:03:21 -05:00
Ryan McGrath
93ea27f1b3 Fix for issue #7 (filed by kumar303), wherein setup.py reads the wrong README file for description purposes 2009-09-20 13:09:37 -04:00
Ryan McGrath
bbfd874643 Twython 0.8 release. Docstrings, RT API, and a host of other bugfixes. Next, and hopefully final, large part to tackle is OAuth. Getting closer... 2009-08-28 02:53:48 -04:00
Ryan McGrath
c62c41a45e Alright, now import twython works as it should. 2009-08-06 02:57:02 -04:00
Ryan McGrath
adab94b240 There, *now* this build should be fixed. 2009-08-06 02:43:40 -04:00
Ryan McGrath
c0b56f33a7 Reorganizing structure, finally made the setup.py install function actually work - thanks to the guys in #python for their help. 2009-08-06 01:48:14 -04:00
Ryan McGrath
cbfa71c286 Changing over to Twython, rolled back version number to aim for a more consistent release schedule - nowhere near a 1.0 release yet... 2009-08-03 00:36:08 -04:00
Ryan McGrath
91e03fe7ef Updating version to 0.8.0.1, as showStatus() had a bug with authentication and needed to be pushed out 2009-07-29 00:10:34 -04:00
Ryan McGrath
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? 2009-07-28 23:31:15 -04:00
Ryan McGrath
932d29a1ab Changed licensing, modified contents of setup.py to conform to what Pypi wants/needs 2009-07-28 23:22:52 -04:00
Ryan McGrath
1007688925 A somewhat working setup.py - still a work in progress 2009-07-28 23:00:43 -04:00
Ryan McGrath
95f3ff17f0 Licensing stuff 2009-07-28 03:24:12 -04:00
Ryan McGrath
d7d170cc3b 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