Joshua [Fri, 29 Jan 2010 02:29:55 +0000 (20:29 -0600)]
API.search() now includes search meta data as attributes of the ResultSet object returned.
Example:
results = api.search('python')
print 'Search took %s seconds' % results.completed_in
This fixes issue #10 (http://github.com/joshthecoder/tweepy/issues/#issue/10)
Meta data available as of today:
max_id, since_id, refresh_url, next_page, results_per_page,
page, completed_in, query
Joshua [Fri, 29 Jan 2010 02:16:36 +0000 (20:16 -0600)]
API methods that use to return list objects now return ResultSet objects.
Joshua [Thu, 28 Jan 2010 18:20:07 +0000 (12:20 -0600)]
Allow additional karg parameters that are not listed in allowed_param.
This allows Tweepy to support future parameters twitter may add
without having to patch the library.
Arthur Debert [Sun, 17 Jan 2010 03:45:20 +0000 (11:45 +0800)]
Fixed typo on followers
Joshua Roesslein [Tue, 12 Jan 2010 22:49:55 +0000 (16:49 -0600)]
Bump version to 1.5 for upcoming release.
Joshua [Tue, 5 Jan 2010 03:27:13 +0000 (21:27 -0600)]
Update docs for API constructor.
Joshua [Mon, 4 Jan 2010 03:42:03 +0000 (21:42 -0600)]
Added ModelFactory. This replaces the 'models' dict in the tweepy.models module.
This will allow for more flexible plug 'n play for developers that need
to extend Tweepy's models. To use custom models, they will extend the ModelFactory
and then pass this new factory into the API constructor.
Example:
class MyStatus(Status):
"""A extended Status model"""
class MyModelFactory(ModelFactory):
status = MyStatus
api = API(model_factory=MyModelFactory)
Joshua [Thu, 31 Dec 2009 18:14:46 +0000 (12:14 -0600)]
Fallback to using 'twitter.com' for OAuth.
This fixes issue #8 for the time being until Twitter resolves the
issue on their end. See issue #1207 on the twitter API tracker.
Note: API calls still use 'api.twitter.com', just the initial OAuth
setup uses 'twitter.com'.
Joshua [Thu, 31 Dec 2009 17:56:28 +0000 (11:56 -0600)]
Merge branch 'master' of git@github.com:joshthecoder/tweepy
Ferenc Szalai [Thu, 31 Dec 2009 17:52:29 +0000 (11:52 -0600)]
Add 'secure' parameter to OAuthHandler constructor.
When 'secure' is True, HTTPS will be used for OAuth requests being sent to Twitter.
This only applies to the get token, authorize, and get access token requests. API
requests will not use HTTPS unless the API object also has 'secure' set to True in
its constructor.
Example:
auth = OAuthHandler(token,secret,secure=True) # use HTTPS for OAuth setup
api = API(auth) # will NOT use HTTPS
api_https = API(auth, secure=True) # will use HTTPS for API requests.
Signed-off-by: Joshua <jroesslein@gmail.com>
joshthecoder [Wed, 30 Dec 2009 18:05:54 +0000 (11:05 -0700)]
Update wiki URL in readme.
Joshua [Thu, 17 Dec 2009 06:51:44 +0000 (00:51 -0600)]
Add Bas Westerbaan to contributors file.
Bas Westerbaan [Thu, 17 Dec 2009 06:46:09 +0000 (00:46 -0600)]
Allow for pagination and other parameters for some helper methods in User model.
Merged from bwesterb/tweepy @
5c7a7480de1ee99fae8c4a1eef65c127cb83e619
Signed-off-by: Joshua <jroesslein@gmail.com>
Bas Westerbaan [Thu, 17 Dec 2009 06:40:19 +0000 (00:40 -0600)]
models: add followers_ids to User
Merged from bwesterb/tweepy @
4404b178839bcfccbd46cdff4753a9274ae6acd6
Signed-off-by: Joshua <jroesslein@gmail.com>
Joshua [Thu, 17 Dec 2009 06:29:10 +0000 (00:29 -0600)]
Convert some tabs to spaces.
Bas Westerbaan [Thu, 17 Dec 2009 06:17:40 +0000 (00:17 -0600)]
API methods lists(), lists_memberships(), and lists_subscriptions now accept 'user' parameter.
Added helpers to User model for lists.
Merged from bwesterb/tweepy @
f26e000ba04b57761578831792d7a7a1adfc8e41
Signed-off-by: Joshua <jroesslein@gmail.com>
Bas Westerbaan [Wed, 16 Dec 2009 17:38:33 +0000 (01:38 +0800)]
tweepyshell: bugfix: sys.argv -> args
Signed-off-by: Bas Westerbaan <bas@fsfe.org>
Joshua Roesslein [Sat, 12 Dec 2009 21:24:30 +0000 (15:24 -0600)]
Add some new helper methods to List model.
Joshua Roesslein [Sat, 12 Dec 2009 21:22:38 +0000 (15:22 -0600)]
Fix API.remove_member() parser selection.
Joshua Roesslein [Sat, 12 Dec 2009 21:21:19 +0000 (15:21 -0600)]
Some minor fixes to parsers.
Joshua Roesslein [Thu, 10 Dec 2009 18:43:34 +0000 (12:43 -0600)]
update setup.py
Joshua Roesslein [Thu, 10 Dec 2009 18:40:02 +0000 (12:40 -0600)]
Remove User.mentions() method.
Joshua Roesslein [Thu, 10 Dec 2009 18:39:45 +0000 (12:39 -0600)]
Fix tests.
Joshua Roesslein [Thu, 10 Dec 2009 06:15:08 +0000 (00:15 -0600)]
Documentation fix.
Joshua Roesslein [Thu, 10 Dec 2009 05:53:19 +0000 (23:53 -0600)]
Rename file in documentation.
Joshua Roesslein [Thu, 10 Dec 2009 05:50:13 +0000 (23:50 -0600)]
Add 'description' parameter to API.create_list() and API.update_list()
Joshua Roesslein [Thu, 10 Dec 2009 05:48:40 +0000 (23:48 -0600)]
Update documentation.
Kumar Appaiah [Thu, 10 Dec 2009 05:18:52 +0000 (23:18 -0600)]
Add optional "source" parameter to update_status.
Note: source parameter only works with identi.ca API.
Twitter ignores this parameter.
Signed-off-by: Joshua Roesslein <jroesslein@gmail.com>
Joshua Roesslein [Wed, 9 Dec 2009 23:45:41 +0000 (17:45 -0600)]
Fix User.timeline() method.
This method now properly returns the user timeline specifed by User.id
Joshua Roesslein [Wed, 9 Dec 2009 00:05:23 +0000 (18:05 -0600)]
Allow API.send_direct_message() to accept either user/screen_name/user_id
Joshua Roesslein [Tue, 8 Dec 2009 23:17:57 +0000 (17:17 -0600)]
Some more work on documentation of API and timeline methods.
Kumar Appaiah [Tue, 8 Dec 2009 22:19:39 +0000 (16:19 -0600)]
Fix rendering erroneous of "class" objects.
Signed-off-by: Joshua Roesslein <jroesslein@gmail.com>
Joshua Roesslein [Tue, 8 Dec 2009 22:18:08 +0000 (16:18 -0600)]
Update contributors.
Kumar Appaiah [Tue, 8 Dec 2009 22:15:33 +0000 (16:15 -0600)]
Complete formatting of API documentation.
Signed-off-by: Joshua Roesslein <jroesslein@gmail.com>
Kumar Appaiah [Tue, 8 Dec 2009 22:12:47 +0000 (16:12 -0600)]
Fix author name in documentation. Stop generating blank module index.
Signed-off-by: Joshua Roesslein <jroesslein@gmail.com>
Joshua Roesslein [Tue, 8 Dec 2009 18:39:46 +0000 (12:39 -0600)]
Update changelog
Joshua Roesslein [Tue, 8 Dec 2009 18:24:17 +0000 (12:24 -0600)]
Update readme.
Kumar Appaiah [Tue, 8 Dec 2009 17:37:54 +0000 (11:37 -0600)]
Rudimentary port of API documentation from the Wiki.
Signed-off-by: Joshua Roesslein <jroesslein@gmail.com>
Kumar Appaiah [Tue, 8 Dec 2009 17:36:39 +0000 (11:36 -0600)]
Add Code snippets tutorial.
Signed-off-by: Joshua Roesslein <jroesslein@gmail.com>
Kumar Appaiah [Tue, 8 Dec 2009 17:35:13 +0000 (11:35 -0600)]
Fix author name in configuration.
Signed-off-by: Joshua Roesslein <jroesslein@gmail.com>
Kumar Appaiah [Tue, 8 Dec 2009 17:31:18 +0000 (11:31 -0600)]
Add initial Sphinx documentation.
Signed-off-by: Joshua Roesslein <jroesslein@gmail.com>
Joshua Roesslein [Tue, 8 Dec 2009 17:27:54 +0000 (11:27 -0600)]
Minor update to readme
Joshua Roesslein [Tue, 8 Dec 2009 07:29:07 +0000 (01:29 -0600)]
Add option to tweepyshell to enable debug mode.
Joshua Roesslein [Tue, 8 Dec 2009 07:07:15 +0000 (01:07 -0600)]
Fix path template bug.
Joshua Roesslein [Tue, 8 Dec 2009 06:26:59 +0000 (00:26 -0600)]
Update API methods to use path templates.
Joshua Roesslein [Tue, 8 Dec 2009 06:11:15 +0000 (00:11 -0600)]
Added tweepy.debug() method that allows enabling debug info printing.
Currently this just sets httplib.HTTPConnection.debuglevel=1.
Joshua Roesslein [Tue, 8 Dec 2009 06:09:47 +0000 (00:09 -0600)]
Allow template variables in binder_api() paths.
Example:
m = bind_api(path='/test/{id}', allowed_param=['id'])
m(id=123)
Joshua Roesslein [Tue, 8 Dec 2009 05:11:49 +0000 (23:11 -0600)]
Added new local trends methods.
Joshua Roesslein [Tue, 8 Dec 2009 05:03:19 +0000 (23:03 -0600)]
Add some tests for retweet methods.
Joshua Roesslein [Tue, 8 Dec 2009 01:49:01 +0000 (19:49 -0600)]
Update changelog and contributors.
Ferenc Szalai [Tue, 8 Dec 2009 01:43:34 +0000 (19:43 -0600)]
Fix API.retweet() method.
Signed-off-by: Joshua Roesslein <jroesslein@gmail.com>
Kumar Appaiah [Sun, 6 Dec 2009 05:23:11 +0000 (23:23 -0600)]
Update tweepyshell to prompt for password via getpass() if not provided at commandline.
For those who aren't comfortable running processes which require
passwords from the command line, provide an alternative by asking for
the password with the getpass function.
Signed-off-by: Joshua <jroesslein@gmail.com>
Joshua [Mon, 30 Nov 2009 05:19:31 +0000 (23:19 -0600)]
Allow passing custom API instance into stream listener.
Joshua [Mon, 30 Nov 2009 05:08:24 +0000 (23:08 -0600)]
Add "on_data" method to stream listener to allow for access raw stream data.
Joshua [Mon, 30 Nov 2009 00:30:33 +0000 (18:30 -0600)]
Merge branch 'master' of git@github.com:joshthecoder/tweepy
Joshua [Mon, 30 Nov 2009 00:21:40 +0000 (18:21 -0600)]
Try using simplejson first, and if not found then try using built-in json module.
Joshua Roesslein [Wed, 25 Nov 2009 00:16:07 +0000 (18:16 -0600)]
Fix 'source' parameter parsing in statuses.
Joshua Roesslein [Fri, 20 Nov 2009 06:41:18 +0000 (00:41 -0600)]
The streaming API Stream object can be run either in async/synch modes. See CHANGELOG for details.
Joshua Roesslein [Fri, 20 Nov 2009 06:04:52 +0000 (00:04 -0600)]
Move parameters into POST body in streaming.py to avoid "head too big" errors. Thanks Pascal!
Joshua Roesslein [Fri, 20 Nov 2009 05:47:00 +0000 (23:47 -0600)]
Update contributors file.
Joshua Roesslein [Thu, 19 Nov 2009 17:53:42 +0000 (11:53 -0600)]
Bump version to 1.4
Joshua Roesslein [Tue, 17 Nov 2009 02:32:41 +0000 (20:32 -0600)]
Add users search API method. API.search_users().
Josh Roesslein [Sat, 14 Nov 2009 05:14:27 +0000 (23:14 -0600)]
Added tests for list methods.
Josh Roesslein [Sat, 14 Nov 2009 05:14:16 +0000 (23:14 -0600)]
Fix some python 2.4 issues.
Josh Roesslein [Fri, 13 Nov 2009 02:41:57 +0000 (20:41 -0600)]
Fix pagination on some of the API methods.
Josh Roesslein [Sat, 7 Nov 2009 20:26:51 +0000 (14:26 -0600)]
Move install instructions out of readme and into install file.
Josh Roesslein [Sat, 7 Nov 2009 20:00:20 +0000 (14:00 -0600)]
Some updates to list methods.
Josh Roesslein [Fri, 6 Nov 2009 23:53:14 +0000 (17:53 -0600)]
Update retweet parsing for new payload format.
Josh Roesslein [Fri, 6 Nov 2009 23:29:43 +0000 (17:29 -0600)]
Update parsers to remove some redundant code.
Josh Roesslein [Fri, 6 Nov 2009 23:16:48 +0000 (17:16 -0600)]
Some model updates.
Josh Roesslein [Fri, 6 Nov 2009 22:48:27 +0000 (16:48 -0600)]
Added back the tweepyshell.
Josh Roesslein [Fri, 6 Nov 2009 22:39:45 +0000 (16:39 -0600)]
Use versioned API and the api.twitter.com domain.
Josh Roesslein [Fri, 6 Nov 2009 20:15:53 +0000 (14:15 -0600)]
Update readme
Josh Roesslein [Fri, 6 Nov 2009 01:20:00 +0000 (19:20 -0600)]
Fix bug in cursor that would cause an error to happen with empty data results.
Josh Roesslein [Thu, 5 Nov 2009 23:18:56 +0000 (17:18 -0600)]
Update ignore file.
Josh Roesslein [Wed, 4 Nov 2009 20:15:47 +0000 (14:15 -0600)]
Removed memcache.py module.
Josh Roesslein [Wed, 4 Nov 2009 20:15:12 +0000 (14:15 -0600)]
Moved memcache implementation to extensions repository.
Josh Roesslein [Tue, 3 Nov 2009 00:11:10 +0000 (18:11 -0600)]
Added Lists API methods.
Josh Roesslein [Mon, 2 Nov 2009 22:22:38 +0000 (16:22 -0600)]
Move streamwatcher and tweepyshell to examples repository.
Josh Roesslein [Mon, 2 Nov 2009 22:19:06 +0000 (16:19 -0600)]
Readme update.
Josh Roesslein [Mon, 2 Nov 2009 22:13:17 +0000 (16:13 -0600)]
Remove examples and move into tweepy-examples repository.
Josh Roesslein [Mon, 2 Nov 2009 22:10:28 +0000 (16:10 -0600)]
Update readme and bump version # to 1.3
Josh Roesslein [Mon, 2 Nov 2009 22:09:35 +0000 (16:09 -0600)]
update readme
Josh Roesslein [Mon, 2 Nov 2009 22:08:34 +0000 (16:08 -0600)]
Remove tutorials from version control. Will be moved to wiki.
Josh Roesslein [Mon, 2 Nov 2009 22:06:55 +0000 (16:06 -0600)]
Remove documentation blocks from api.py
Josh Roesslein [Mon, 2 Nov 2009 21:58:22 +0000 (15:58 -0600)]
Some minor fixes to API.
Josh Roesslein [Sat, 31 Oct 2009 19:19:04 +0000 (14:19 -0500)]
Remove model validation.
Josh Roesslein [Sat, 31 Oct 2009 19:09:57 +0000 (14:09 -0500)]
Remove auth requirement from API.followers()
Josh Roesslein [Sat, 31 Oct 2009 07:05:19 +0000 (02:05 -0500)]
Update change log.
Josh Roesslein [Sat, 31 Oct 2009 07:04:50 +0000 (02:04 -0500)]
Update oauth library.
Josh Roesslein [Sat, 31 Oct 2009 07:03:16 +0000 (02:03 -0500)]
Update test shell.
Josh Roesslein [Sat, 31 Oct 2009 02:21:35 +0000 (21:21 -0500)]
Begin work on lists API
Josh Roesslein [Sat, 31 Oct 2009 01:20:28 +0000 (20:20 -0500)]
Add parser for lists.
Josh Roesslein [Fri, 16 Oct 2009 05:39:28 +0000 (00:39 -0500)]
Add link to tweepy's wiki in readme.
Josh Roesslein [Fri, 16 Oct 2009 04:36:16 +0000 (23:36 -0500)]
Update readme.
Josh Roesslein [Thu, 15 Oct 2009 23:53:28 +0000 (18:53 -0500)]
Python 2.4 support completed! Update readme and changelog
Josh Roesslein [Thu, 15 Oct 2009 23:52:18 +0000 (18:52 -0500)]
Test updates.
Josh Roesslein [Thu, 15 Oct 2009 23:13:02 +0000 (18:13 -0500)]
Some more python 2.4 porting.
Josh Roesslein [Thu, 15 Oct 2009 22:50:28 +0000 (17:50 -0500)]
Port cache system to python 2.4
Josh Roesslein [Thu, 15 Oct 2009 21:21:34 +0000 (16:21 -0500)]
Change to absolute imports.