Harmon [Wed, 3 Feb 2021 07:19:29 +0000 (01:19 -0600)]
Remove improper bind_api argument in API.update_profile_image
Harmon [Tue, 2 Feb 2021 22:13:05 +0000 (16:13 -0600)]
Remove documentation for API.compression
Harmon [Tue, 2 Feb 2021 22:12:05 +0000 (16:12 -0600)]
Remove API.wait_on_rate_limit_notify
Harmon [Tue, 2 Feb 2021 22:00:40 +0000 (16:00 -0600)]
Handle default parser in execute function rather than bind_api
Harmon [Tue, 2 Feb 2021 21:45:28 +0000 (15:45 -0600)]
Merge build_parameters into execute function
Harmon [Tue, 2 Feb 2021 21:14:31 +0000 (15:14 -0600)]
Optimize execute function
Harmon [Tue, 2 Feb 2021 20:56:31 +0000 (14:56 -0600)]
Pack and unpack arguments for build_parameters
Harmon [Tue, 2 Feb 2021 18:30:03 +0000 (12:30 -0600)]
Remove APIMethod
Harmon [Tue, 2 Feb 2021 18:27:02 +0000 (12:27 -0600)]
Remove APIMethod.session
Harmon [Tue, 2 Feb 2021 18:03:50 +0000 (12:03 -0600)]
Add and use APIMethod.execute params keyword-only argument
Return params from APIMethod.build_parameters rather than setting APIMethod.session.params
Harmon [Tue, 2 Feb 2021 17:53:50 +0000 (11:53 -0600)]
Remove APIMethod._remaining_calls and APIMethod._reset_time
Harmon [Tue, 2 Feb 2021 17:49:08 +0000 (11:49 -0600)]
Simplify bind_api
Harmon [Tue, 2 Feb 2021 17:46:06 +0000 (11:46 -0600)]
Remove method parameter from parse method for Parser and its subclasses
Harmon [Tue, 2 Feb 2021 17:41:14 +0000 (11:41 -0600)]
Move APIMethod.build_parameters call from APIMethod.__init__ to bind_api
Harmon [Tue, 2 Feb 2021 17:23:51 +0000 (11:23 -0600)]
Replace APIMethod.api with APIMethod.execute api parameter
Add ModelParser.parse api keyword-only argument
Harmon [Tue, 2 Feb 2021 17:19:29 +0000 (11:19 -0600)]
Replace APIMethod.parser with APIMethod.execute keyword-only argument
Replace APIMethod.parser with APIMethod.execute parser keyword-only argument
Harmon [Tue, 2 Feb 2021 17:06:57 +0000 (11:06 -0600)]
Replace APIMethod.allowed_param with build_parameters method parameter
Replace APIMethod.allowed_param with APIMethod.build_parameters parameter
Harmon [Tue, 2 Feb 2021 16:54:38 +0000 (10:54 -0600)]
Replace APIMethod.payload_list and APIMethod.payload_type
Replace APIMethod.payload_list and APIMethod.payload_type with payload decorator and APIMethod.execute payload_list and payload_type keyword-only arguments
Add payload_list and payload_type keyword-only arguments to ModelParser.parse
Allow passing keyword arguments to bind_api and APIMethod through API.send_direct_message, API.lookup_friendships, API.update_profile_image, API.add_list_members, API.remove_list_members
Harmon [Fri, 29 Jan 2021 17:18:39 +0000 (11:18 -0600)]
Change return_cursors parse methods parameter to be keyword-only
Change JSONParser.parse and ModelParser.parse return_cursors parameter to be keyword-only argument
Harmon [Fri, 29 Jan 2021 16:59:25 +0000 (10:59 -0600)]
Replace APIMethod.headers with APIMethod.execute keyword-only argument
Replace APIMethod.headers with APIMethod.execute headers keyword-only argument
Harmon [Fri, 29 Jan 2021 16:56:50 +0000 (10:56 -0600)]
Replace APIMethod.path with APIMethod.execute path parameter
Harmon [Fri, 29 Jan 2021 16:32:36 +0000 (10:32 -0600)]
Replace APIMethod.upload_api with APIMethod.execute kwarg
Replace APIMethod.upload_api with APIMethod.execute upload_api keyword-only argument
Remove APIMethod.api_root and APIMethod.host
Harmon [Fri, 29 Jan 2021 16:26:16 +0000 (10:26 -0600)]
Replace APIMethod.require_auth with APIMethod.execute kwarg
Replace APIMethod.require_auth with APIMethod.execute require_auth keyword-only argument
Harmon [Fri, 29 Jan 2021 16:20:15 +0000 (10:20 -0600)]
Replace APIMethod.json_payload with APIMethod.execute kwarg
Replace APIMethod.json_payload with APIMethod.execute json_payload keyword-only argument
Harmon [Fri, 29 Jan 2021 16:16:24 +0000 (10:16 -0600)]
Replace APIMethod.post_data with APIMethod.execute keyword-only argument
Replace APIMethod.post_data with APIMethod.execute post_data keyword-only argument
Harmon [Fri, 29 Jan 2021 16:13:29 +0000 (10:13 -0600)]
Replace APIMethod.return_cursors with APIMethod.execute kwarg
Replace APIMethod.return_cursors with APIMethod.execute return_cursors keyword-only argument
Harmon [Fri, 29 Jan 2021 16:06:20 +0000 (10:06 -0600)]
Replace APIMethod.method with APIMethod.execute method parameter
Harmon [Fri, 29 Jan 2021 16:02:20 +0000 (10:02 -0600)]
Replace APIMethod.use_cache with APIMethod.execute keyword-only argument
Replace APIMethod.use_cache with APIMethod.execute use_cache keyword-only argument
Harmon [Fri, 29 Jan 2021 02:42:44 +0000 (20:42 -0600)]
Improve formatting in APIMethod.execute
Harmon [Fri, 29 Jan 2021 02:36:49 +0000 (20:36 -0600)]
Remove APIMethod.build_path
Harmon [Fri, 29 Jan 2021 02:33:36 +0000 (20:33 -0600)]
Replace API.geo_id id allowed_param with place_id parameter
Harmon [Fri, 29 Jan 2021 02:30:14 +0000 (20:30 -0600)]
Replace API.destroy_saved_search id allowed_param with parameter
Replace API.destroy_saved_search id allowed_param with saved_search_id parameter
Harmon [Fri, 29 Jan 2021 02:28:36 +0000 (20:28 -0600)]
Replace API.get_saved_search id allowed_param with parameter
Replace API.get_saved_search id allowed_param with saved_search_id parameter
Harmon [Fri, 29 Jan 2021 02:23:55 +0000 (20:23 -0600)]
Replace API.retweets id allowed_param with status_id parameter
Harmon [Fri, 29 Jan 2021 02:15:39 +0000 (20:15 -0600)]
Replace API.unretweet id allowed_param with status_id parameter
Harmon [Fri, 29 Jan 2021 02:14:42 +0000 (20:14 -0600)]
Replace API.retweet id allowed_param with status_id parameter
Harmon [Fri, 29 Jan 2021 02:17:02 +0000 (20:17 -0600)]
Remove API.destroy_status id allowed_param from docstring
Harmon [Fri, 29 Jan 2021 02:10:06 +0000 (20:10 -0600)]
Replace API.destroy_status id allowed_param with status_id parameter
Harmon [Fri, 29 Jan 2021 01:48:47 +0000 (19:48 -0600)]
Remove API.related_results
Harmon [Fri, 29 Jan 2021 01:41:17 +0000 (19:41 -0600)]
Remove APIMethod.wait_on_rate_limit_notify
Harmon [Fri, 29 Jan 2021 01:40:22 +0000 (19:40 -0600)]
Remove APIMethod.wait_on_rate_limit
Harmon [Fri, 29 Jan 2021 01:39:33 +0000 (19:39 -0600)]
Remove APIMethod.retry_errors
Harmon [Fri, 29 Jan 2021 01:39:11 +0000 (19:39 -0600)]
Remove APIMethod.retry_delay
Harmon [Fri, 29 Jan 2021 01:38:27 +0000 (19:38 -0600)]
Remove APIMethod.retry_count
Harmon [Fri, 29 Jan 2021 01:28:06 +0000 (19:28 -0600)]
Move APIMethod out of bind_api
Harmon [Thu, 28 Jan 2021 20:13:59 +0000 (14:13 -0600)]
Remove check for IdIterator.method.__self__ in IdIterator.next
Harmon [Thu, 28 Jan 2021 20:08:15 +0000 (14:08 -0600)]
Remove monkey patching in IdIterator.next
For models expecting API.parser to be ModelParser
Harmon [Thu, 28 Jan 2021 19:56:58 +0000 (13:56 -0600)]
Default to Status model in SearchResults.parse more broadly for results
To handle parsers without model_factory attribute or model factories without status attribute
Harmon [Thu, 28 Jan 2021 19:54:30 +0000 (13:54 -0600)]
Default to User model in Status.parse more broadly for user attribute
To handle parsers without model_factory attribute or model factories without user attribute
Harmon [Thu, 28 Jan 2021 17:56:12 +0000 (11:56 -0600)]
Remove API.compression
Harmon [Thu, 28 Jan 2021 17:53:30 +0000 (11:53 -0600)]
Stop manually setting Host header in APIMethod
Harmon [Thu, 28 Jan 2021 17:42:03 +0000 (11:42 -0600)]
Stop overriding default requests Session headers in APIMethod
Pass custom headers to Session.request instead
Harmon [Thu, 28 Jan 2021 16:36:01 +0000 (10:36 -0600)]
Remove duplicate max_id allowed_param in API.favorites
Harmon [Thu, 28 Jan 2021 16:21:38 +0000 (10:21 -0600)]
Pass arguments directly to bind_api in API methods
Rather than using property decorators for API methods
Replace APIMethod pagination_mode determination with pagination decorator usage
Harmon [Thu, 28 Jan 2021 15:53:02 +0000 (09:53 -0600)]
Fix API.lookup_users docstring consistency
Harmon [Thu, 28 Jan 2021 04:08:39 +0000 (22:08 -0600)]
Improve error log message in Stream.on_data
Harmon [Tue, 26 Jan 2021 15:30:34 +0000 (09:30 -0600)]
Improve docstrings for Stream listener methods
Harmon [Tue, 26 Jan 2021 15:22:43 +0000 (09:22 -0600)]
Improve error messages in Stream.filter and Stream.sample
Harmon [Tue, 26 Jan 2021 15:13:37 +0000 (09:13 -0600)]
Improve clarity and coherence of Stream._connect
Harmon [Tue, 26 Jan 2021 13:41:04 +0000 (07:41 -0600)]
Improve quotation mark consistency in Stream
Harmon [Mon, 25 Jan 2021 19:10:07 +0000 (13:10 -0600)]
Use specific user agent for Stream
Harmon [Mon, 25 Jan 2021 18:51:36 +0000 (12:51 -0600)]
Pass headers explicitly in Stream.filter
Add and use Stream._connect headers parameter
Harmon [Mon, 25 Jan 2021 18:43:04 +0000 (12:43 -0600)]
Change Stream.sample method to use GET HTTP method
Add and use Stream._connect method parameter
Harmon [Sun, 24 Jan 2021 14:46:02 +0000 (08:46 -0600)]
Add Stream.on_disconnect method
Resolves #277
Harmon [Sun, 24 Jan 2021 14:45:02 +0000 (08:45 -0600)]
Rename Stream.on_disconnect to on_disconnect_message
Harmon [Sun, 24 Jan 2021 14:30:34 +0000 (08:30 -0600)]
Stop reraising exceptions in Stream._connect
Resolves #1072
Harmon [Sun, 24 Jan 2021 13:58:39 +0000 (07:58 -0600)]
Improve Stream.running check in Stream._connect
Harmon [Sun, 24 Jan 2021 13:57:38 +0000 (07:57 -0600)]
Disregard return value from Stream.on_connection_error
Harmon [Sun, 24 Jan 2021 13:57:04 +0000 (07:57 -0600)]
Disregard return value from Stream.on_data
Harmon [Sun, 24 Jan 2021 13:55:12 +0000 (07:55 -0600)]
Disregard return value from Stream.on_request_error
Harmon [Sun, 24 Jan 2021 13:49:29 +0000 (07:49 -0600)]
Stop disconnecting by default in Stream.on_request_error
Harmon [Sun, 24 Jan 2021 13:45:03 +0000 (07:45 -0600)]
Log by default in Stream.on_closed
Harmon [Sun, 24 Jan 2021 13:43:50 +0000 (07:43 -0600)]
Merge StreamListener into Stream
Harmon [Sun, 24 Jan 2021 13:38:15 +0000 (07:38 -0600)]
Remove StreamListener.api
Harmon [Sun, 24 Jan 2021 13:34:04 +0000 (07:34 -0600)]
Improve order in StreamListener
Harmon [Sun, 24 Jan 2021 13:27:46 +0000 (07:27 -0600)]
Log by default in StreamListener methods
Harmon [Sat, 23 Jan 2021 20:23:48 +0000 (14:23 -0600)]
Return thread when using threaded Stream.filter and Stream.sample
Harmon [Sat, 23 Jan 2021 20:21:04 +0000 (14:21 -0600)]
Optimize Stream.filter
Harmon [Sat, 23 Jan 2021 20:10:39 +0000 (14:10 -0600)]
Improve Stream.filter order and formatting
Harmon [Sat, 23 Jan 2021 19:58:56 +0000 (13:58 -0600)]
Change Stream.filter to use keyword-only arguments
Harmon [Sat, 23 Jan 2021 19:54:24 +0000 (13:54 -0600)]
Change Stream.sample to use keyword-only arguments
Harmon [Sat, 23 Jan 2021 19:53:26 +0000 (13:53 -0600)]
Improve order and formatting in Stream.sample
Harmon [Sat, 23 Jan 2021 19:51:06 +0000 (13:51 -0600)]
Change Stream._thread to thread
Harmon [Sat, 23 Jan 2021 19:48:01 +0000 (13:48 -0600)]
Change Stream._start to _threaded_connect
Harmon [Sat, 23 Jan 2021 19:40:32 +0000 (13:40 -0600)]
Set Stream.running in Stream._connect instead of Stream._start
Harmon [Sat, 23 Jan 2021 19:39:41 +0000 (13:39 -0600)]
Rename Stream._run to _connect
Harmon [Sat, 23 Jan 2021 19:33:41 +0000 (13:33 -0600)]
Define Stream initialization keyword-only arguments explicitly
Harmon [Sat, 23 Jan 2021 19:32:09 +0000 (13:32 -0600)]
Improve Stream initialization order and formatting
Harmon [Sat, 23 Jan 2021 19:22:08 +0000 (13:22 -0600)]
Name Thread in Stream
Harmon [Sat, 23 Jan 2021 19:17:52 +0000 (13:17 -0600)]
Rename Stream.retry_count to max_retries
Harmon [Sat, 23 Jan 2021 17:23:31 +0000 (11:23 -0600)]
Remove STREAM_VERSION
Harmon [Sat, 23 Jan 2021 17:22:22 +0000 (11:22 -0600)]
Improve order of Stream methods
Harmon [Sat, 23 Jan 2021 17:18:44 +0000 (11:18 -0600)]
Remove Stream._read_loop
Harmon [Sat, 23 Jan 2021 17:13:27 +0000 (11:13 -0600)]
Default Stream.retry_count to infinity
Harmon [Sat, 23 Jan 2021 17:09:29 +0000 (11:09 -0600)]
Remove unnecessary trailing slash from Documentation URL in setup.py
Harmon [Sat, 23 Jan 2021 17:06:51 +0000 (11:06 -0600)]
Remove requests socks extra from setup.py install_requires
Add socks extra requiring requests socks extra
Harmon [Sat, 23 Jan 2021 16:48:37 +0000 (10:48 -0600)]
Remove Stream.timeout
Use 90 seconds as the read timeout, per https://developer.twitter.com/en/docs/twitter-api/v1/tweets/filter-realtime/guides/connecting.
Default to using the same 90 seconds for connect timeout.
Harmon [Sat, 23 Jan 2021 16:32:41 +0000 (10:32 -0600)]
Replace Stream.auth with parameters and attributes for each credential
Replace Stream.auth with Stream.consumer_key, Stream.consumer_secret, Stream.access_token, Stream.access_token_secret
Harmon [Sat, 23 Jan 2021 16:03:30 +0000 (10:03 -0600)]
Improve variable name in Stream._run
error_counter -> error_count
Harmon [Sat, 23 Jan 2021 16:02:43 +0000 (10:02 -0600)]
Remove old and superfluous comments in Stream._run