tweepy.git
3 years agoReduce extra sleep time for rate limit handling in APIMethod.execute
Harmon [Wed, 6 Jan 2021 20:15:09 +0000 (14:15 -0600)]
Reduce extra sleep time for rate limit handling in APIMethod.execute

Resolves #1049

3 years agoImprove clarity of rate limit handling in APIMethod.execute
Harmon [Wed, 6 Jan 2021 19:59:46 +0000 (13:59 -0600)]
Improve clarity of rate limit handling in APIMethod.execute

Also improve comment capitalization consistency and remove unnecessary comments

3 years agoOptimize HTTP status code checks and retry handling in APIMethod.execute
Harmon [Wed, 6 Jan 2021 02:00:50 +0000 (20:00 -0600)]
Optimize HTTP status code checks and retry handling in APIMethod.execute

Also improve formatting

3 years agoImprove APIMethod.execute check for 420 and 429 HTTP status codes
Harmon [Wed, 6 Jan 2021 01:19:33 +0000 (19:19 -0600)]
Improve APIMethod.execute check for 420 and 429 HTTP status codes

Also improve formatting and consistency in comment capitalization

3 years agoRemove explicit handling of requests.ReadTimeout in Stream
Harmon [Tue, 5 Jan 2021 08:54:51 +0000 (02:54 -0600)]
Remove explicit handling of requests.ReadTimeout in Stream

requests.ReadTimeout subclasses requests.Timeout, so this shouldn't be necessary

3 years agoHandle requests.ReadTimeout in Stream
Harmon [Tue, 5 Jan 2021 08:15:29 +0000 (02:15 -0600)]
Handle requests.ReadTimeout in Stream

Resolves #750

3 years agoSimplify requests imports in streaming.py
Harmon [Tue, 5 Jan 2021 08:08:37 +0000 (02:08 -0600)]
Simplify requests imports in streaming.py

3 years agoRename StreamListener.keep_alive to StreamListener.on_keep_alive
Harmon [Mon, 4 Jan 2021 10:11:22 +0000 (04:11 -0600)]
Rename StreamListener.keep_alive to StreamListener.on_keep_alive

To be consistent with other StreamListener methods

3 years agoImprove variable name in Stream
Harmon [Mon, 4 Jan 2021 09:42:09 +0000 (03:42 -0600)]
Improve variable name in Stream

3 years agoRemove Stream._data method
Harmon [Mon, 4 Jan 2021 09:35:38 +0000 (03:35 -0600)]
Remove Stream._data method

3 years agoRemove unused variable in Stream
Harmon [Mon, 4 Jan 2021 09:29:45 +0000 (03:29 -0600)]
Remove unused variable in Stream

3 years agoRemove parse_a_href and parse_html_value functions
Harmon [Sun, 3 Jan 2021 03:27:58 +0000 (21:27 -0600)]
Remove parse_a_href and parse_html_value functions

3 years agoReplace convert_to_utf8_str function with str cast
Harmon [Sun, 3 Jan 2021 02:10:16 +0000 (20:10 -0600)]
Replace convert_to_utf8_str function with str cast

3 years agoOptimize list_to_csv function
Harmon [Sun, 3 Jan 2021 02:03:38 +0000 (20:03 -0600)]
Optimize list_to_csv function

3 years agoReplace parse_datetime function with email.utils.parsedate_to_datetime
Harmon [Sun, 3 Jan 2021 01:57:43 +0000 (19:57 -0600)]
Replace parse_datetime function with email.utils.parsedate_to_datetime

This causes the datetime objects for created_at attributes to be aware

3 years agoUpdate copyright years to include 2021
Harmon [Sat, 2 Jan 2021 14:03:01 +0000 (08:03 -0600)]
Update copyright years to include 2021

3 years agoAdd and use mixins for Status and User
Harmon [Thu, 31 Dec 2020 04:27:27 +0000 (22:27 -0600)]
Add and use mixins for Status and User

3 years agoMerge pull request #1306 from mef51/patch-1
Harmon [Thu, 31 Dec 2020 03:25:46 +0000 (21:25 -0600)]
Merge pull request #1306 from mef51/patch-1

make User object hashable to allow use with sets

3 years agohash == id
mohammed chamma [Thu, 31 Dec 2020 03:12:24 +0000 (22:12 -0500)]
hash == id

Co-authored-by: Harmon <Harmon758@gmail.com>
3 years agoMerge branch 'master' into patch-1
mohammed chamma [Wed, 30 Dec 2020 23:45:08 +0000 (18:45 -0500)]
Merge branch 'master' into patch-1

3 years agouse id as hash since its an integer
mohammed chamma [Wed, 30 Dec 2020 23:39:56 +0000 (18:39 -0500)]
use id as hash since its an integer

Co-authored-by: Harmon <Harmon758@gmail.com>
3 years agoImprove formatting in streaming.py
Harmon [Wed, 30 Dec 2020 09:46:24 +0000 (03:46 -0600)]
Improve formatting in streaming.py

3 years agoCheck consumer key and secret type when initializing OAuthHandler
Harmon [Wed, 30 Dec 2020 06:29:21 +0000 (00:29 -0600)]
Check consumer key and secret type when initializing OAuthHandler

Resolves #1489

3 years agoRemove unnecessary ASCII encoding of credentials in OAuthHandler
Harmon [Wed, 30 Dec 2020 06:00:12 +0000 (00:00 -0600)]
Remove unnecessary ASCII encoding of credentials in OAuthHandler

3 years agoRemove Status.__ne__ and User.__ne__
Harmon [Wed, 30 Dec 2020 04:29:38 +0000 (22:29 -0600)]
Remove Status.__ne__ and User.__ne__

3 years agoImprove exception handling in Stream
Harmon [Tue, 29 Dec 2020 22:49:29 +0000 (16:49 -0600)]
Improve exception handling in Stream

3 years agoRemove StreamListener.on_event
Harmon [Tue, 29 Dec 2020 12:18:10 +0000 (06:18 -0600)]
Remove StreamListener.on_event

3 years agoSimplify StreamListener.on_data
Harmon [Tue, 29 Dec 2020 09:22:36 +0000 (03:22 -0600)]
Simplify StreamListener.on_data

3 years agoMerge pull request #1484 from dplefevre/doc_fix
Harmon [Tue, 29 Dec 2020 08:45:43 +0000 (02:45 -0600)]
Merge pull request #1484 from dplefevre/doc_fix

Doc fix

3 years agoImprove formatting for documentation for include_rts parameter
Harmon [Tue, 29 Dec 2020 08:41:30 +0000 (02:41 -0600)]
Improve formatting for documentation for include_rts parameter

In documentation for API.user_timeline

3 years agoUpdate cassette for user_timeline test
Harmon [Tue, 29 Dec 2020 08:36:14 +0000 (02:36 -0600)]
Update cassette for user_timeline test

3 years agoUpdate user_timeline test
Harmon [Tue, 29 Dec 2020 08:35:43 +0000 (02:35 -0600)]
Update user_timeline test

3 years agoRemove Stream.api
Harmon [Tue, 29 Dec 2020 08:02:21 +0000 (02:02 -0600)]
Remove Stream.api

3 years agoSimplify Stream.disconnect
Harmon [Tue, 29 Dec 2020 07:34:32 +0000 (01:34 -0600)]
Simplify Stream.disconnect

3 years agoImprove inline comment formatting in Stream._read_loop
Harmon [Tue, 29 Dec 2020 07:30:29 +0000 (01:30 -0600)]
Improve inline comment formatting in Stream._read_loop

3 years agoAdd Python Versions badge to README
Harmon [Tue, 29 Dec 2020 03:50:32 +0000 (21:50 -0600)]
Add Python Versions badge to README

3 years agoRemove unnecessary URL parameter in Documentation Status badge in README
Harmon [Tue, 29 Dec 2020 03:39:42 +0000 (21:39 -0600)]
Remove unnecessary URL parameter in Documentation Status badge in README

3 years agoImprove PyPI Version badge in README
Harmon [Tue, 29 Dec 2020 03:38:43 +0000 (21:38 -0600)]
Improve PyPI Version badge in README

3 years agoAdd links to documentation and Twitter API documentation to README
Harmon [Tue, 29 Dec 2020 03:31:55 +0000 (21:31 -0600)]
Add links to documentation and Twitter API documentation to README

Also improve Discord server invite link text

3 years agoImprove Discord badge in README
Harmon [Tue, 29 Dec 2020 03:27:56 +0000 (21:27 -0600)]
Improve Discord badge in README

3 years agoImprove Documentation Status badge in README
Harmon [Tue, 29 Dec 2020 03:21:20 +0000 (21:21 -0600)]
Improve Documentation Status badge in README

3 years agoRemove StreamListener.on_direct_message and StreamListener.on_friends
Harmon [Mon, 28 Dec 2020 13:31:19 +0000 (07:31 -0600)]
Remove StreamListener.on_direct_message and StreamListener.on_friends

3 years agoRemove Stream.sitestream and Stream.userstream
Harmon [Mon, 28 Dec 2020 13:09:49 +0000 (07:09 -0600)]
Remove Stream.sitestream and Stream.userstream

In favor of #1075

3 years agoRemove Stream.retweet
Harmon [Mon, 28 Dec 2020 12:55:58 +0000 (06:55 -0600)]
Remove Stream.retweet

3 years agoImprove formatting in setup.py
Harmon [Mon, 28 Dec 2020 12:44:42 +0000 (06:44 -0600)]
Improve formatting in setup.py

3 years agoRemove Stream.firehose
Harmon [Mon, 28 Dec 2020 12:42:32 +0000 (06:42 -0600)]
Remove Stream.firehose

3 years agoImprove import grouping in auth.py
Harmon [Mon, 28 Dec 2020 07:51:43 +0000 (01:51 -0600)]
Improve import grouping in auth.py

3 years agoImprove import grouping in streaming.py
Harmon [Mon, 28 Dec 2020 06:18:22 +0000 (00:18 -0600)]
Improve import grouping in streaming.py

3 years agoRemove unnecessary start argument for range in cache tests
Harmon [Mon, 28 Dec 2020 04:17:48 +0000 (22:17 -0600)]
Remove unnecessary start argument for range in cache tests

3 years agoRemove extraneous newline in api.py
Harmon [Mon, 28 Dec 2020 02:36:40 +0000 (20:36 -0600)]
Remove extraneous newline in api.py

3 years agoReplace type equality check in OAuthHandler initialization
Harmon [Sun, 27 Dec 2020 22:53:30 +0000 (16:53 -0600)]
Replace type equality check in OAuthHandler initialization

With isinstance usage

3 years agoImprove formatting for NoIdItem in ResultSet tests
Harmon [Sun, 27 Dec 2020 22:50:24 +0000 (16:50 -0600)]
Improve formatting for NoIdItem in ResultSet tests

3 years agoSend coverage to Coveralls in GitHub Actions Test workflow
Harmon [Wed, 23 Dec 2020 22:22:57 +0000 (16:22 -0600)]
Send coverage to Coveralls in GitHub Actions Test workflow

3 years agoUpdate dev requirement for coveralls
Harmon [Wed, 23 Dec 2020 22:22:21 +0000 (16:22 -0600)]
Update dev requirement for coveralls

from >= 1.8.2 to >= 2.1.0, for GitHub Actions support fix:
https://github.com/coveralls-clients/coveralls-python/releases/tag/2.1.0

3 years agoMerge pull request #1482 from tweepy/python-2-support-removal
Harmon [Sun, 27 Dec 2020 22:19:01 +0000 (16:19 -0600)]
Merge pull request #1482 from tweepy/python-2-support-removal

Drop support for Python 2

3 years agoRemoved erroneous uid parameter in user_timeline method and updated allowed params...
Daniel Lefevre [Sun, 27 Dec 2020 03:06:00 +0000 (22:06 -0500)]
Removed erroneous uid parameter in user_timeline method and updated allowed params in api.py

3 years agoFixed missing params in user_timeline function signature in api.rst
Daniel Lefevre [Sun, 27 Dec 2020 02:58:47 +0000 (21:58 -0500)]
Fixed missing params in user_timeline function signature in api.rst

3 years agoFixed typos in include_rts param in api.rst/API.user_timeline
Daniel Lefevre [Sun, 27 Dec 2020 02:56:43 +0000 (21:56 -0500)]
Fixed typos in include_rts param in api.rst/API.user_timeline

3 years agofixed missing 'replace' in parameters.rst
Daniel Lefevre [Sun, 27 Dec 2020 02:52:53 +0000 (21:52 -0500)]
fixed missing 'replace' in parameters.rst

3 years agoFix formatting inconsistency in Stream._run
Harmon [Sun, 27 Dec 2020 00:25:49 +0000 (18:25 -0600)]
Fix formatting inconsistency in Stream._run

3 years agoReordered allowed parameters in user_timeline in api.py to correspond to documentation
Daniel Lefevre [Sat, 26 Dec 2020 19:27:13 +0000 (14:27 -0500)]
Reordered allowed parameters in user_timeline in api.py to correspond to documentation

3 years agoReordered parameters on user_timeline to correspond to Twitter API documentation...
Daniel Lefevre [Sat, 26 Dec 2020 19:21:40 +0000 (14:21 -0500)]
Reordered parameters on user_timeline to correspond to Twitter API documentation, added missing 'trim_user', 'exclude_replies', 'include_rts' parameters

3 years agoRemoved erroneous 'page' parameter from user_timeline documentation
Daniel Lefevre [Sat, 26 Dec 2020 19:14:08 +0000 (14:14 -0500)]
Removed erroneous 'page' parameter from user_timeline documentation

3 years agoImprove formatting in is_rate_limit_error_message function
Harmon [Sat, 26 Dec 2020 10:36:33 +0000 (04:36 -0600)]
Improve formatting in is_rate_limit_error_message function

3 years agoRemove API.geo_similar_places
Harmon [Sat, 26 Dec 2020 09:55:14 +0000 (03:55 -0600)]
Remove API.geo_similar_places

The method was undocumented, and the API endpoint it uses hasn't been documented in years and errors now.

3 years agoUpdate documentation for sep parameter for ReadBuffer.read_line
Harmon [Sat, 26 Dec 2020 09:34:58 +0000 (03:34 -0600)]
Update documentation for sep parameter for ReadBuffer.read_line

3 years agoUse next built-in function in place of next method for iterators
Harmon [Sat, 26 Dec 2020 09:18:46 +0000 (03:18 -0600)]
Use next built-in function in place of next method for iterators

3 years agoRemove Python 2.7 from tox configuration
Harmon [Sat, 26 Dec 2020 09:08:07 +0000 (03:08 -0600)]
Remove Python 2.7 from tox configuration

3 years agoRemove cPickle import attempt
Harmon [Sat, 26 Dec 2020 09:07:10 +0000 (03:07 -0600)]
Remove cPickle import attempt

3 years agoSpecify support for Python 3.5 - 3.9 in README
Harmon [Sat, 26 Dec 2020 08:45:09 +0000 (02:45 -0600)]
Specify support for Python 3.5 - 3.9 in README

3 years agoUpdate setup classifiers to be only Python 3
Harmon [Sat, 26 Dec 2020 08:44:09 +0000 (02:44 -0600)]
Update setup classifiers to be only Python 3

3 years agoUpdate Python requirement to >= 3.5
Harmon [Sat, 26 Dec 2020 08:40:12 +0000 (02:40 -0600)]
Update Python requirement to >= 3.5

3 years agoRemove Python 2.7 from GitHub Actions Test workflow
Harmon [Sat, 26 Dec 2020 08:39:18 +0000 (02:39 -0600)]
Remove Python 2.7 from GitHub Actions Test workflow

3 years agoRemove six requirement
Harmon [Sat, 26 Dec 2020 08:37:17 +0000 (02:37 -0600)]
Remove six requirement

3 years agoReplace six.reraise
Harmon [Sat, 26 Dec 2020 08:33:59 +0000 (02:33 -0600)]
Replace six.reraise

3 years agoRemove unnecessary attributes for super
Harmon [Sat, 26 Dec 2020 08:19:22 +0000 (02:19 -0600)]
Remove unnecessary attributes for super

3 years agoRemove subclassing of object
Harmon [Sat, 26 Dec 2020 08:14:56 +0000 (02:14 -0600)]
Remove subclassing of object

3 years agoReplace six.text_type with str
Harmon [Sat, 26 Dec 2020 08:07:47 +0000 (02:07 -0600)]
Replace six.text_type with str

3 years agoReplace six.b with b prefix for bytes literals
Harmon [Sat, 26 Dec 2020 08:02:07 +0000 (02:02 -0600)]
Replace six.b with b prefix for bytes literals

3 years agoReplace six.BytesIO with io.BytesIO
Harmon [Sat, 26 Dec 2020 07:57:24 +0000 (01:57 -0600)]
Replace six.BytesIO with io.BytesIO

3 years agoRemove no longer used variable in streaming tests
Harmon [Sat, 26 Dec 2020 07:52:47 +0000 (01:52 -0600)]
Remove no longer used variable in streaming tests

3 years agoUpdate urllib.parse.quote and urllib.parse.urlencode imports
Harmon [Sat, 26 Dec 2020 07:49:17 +0000 (01:49 -0600)]
Update urllib.parse.quote and urllib.parse.urlencode imports

3 years agoUpdate urllib.parse.parse_qs import
Harmon [Sat, 26 Dec 2020 07:47:00 +0000 (01:47 -0600)]
Update urllib.parse.parse_qs import

3 years agoUpdate HTTPConnection import
Harmon [Sat, 26 Dec 2020 07:44:41 +0000 (01:44 -0600)]
Update HTTPConnection import

3 years agoRemove input import from six.moves
Harmon [Sat, 26 Dec 2020 07:43:48 +0000 (01:43 -0600)]
Remove input import from six.moves

3 years agoRemove u prefix from strings
Harmon [Sat, 26 Dec 2020 07:41:03 +0000 (01:41 -0600)]
Remove u prefix from strings

3 years agoRemove absolute_import and print_function imports from __future__
Harmon [Sat, 26 Dec 2020 07:36:35 +0000 (01:36 -0600)]
Remove absolute_import and print_function imports from __future__

3 years agoUse HTTPS for badge image URLs in README
Harmon [Sat, 26 Dec 2020 07:30:38 +0000 (01:30 -0600)]
Use HTTPS for badge image URLs in README

3 years agoUpdate documentation badge to v3.10.0 in README
Harmon [Sat, 26 Dec 2020 02:24:48 +0000 (20:24 -0600)]
Update documentation badge to v3.10.0 in README

3 years agoAllow GitHub Actions Deploy workflow to be manually triggered
Harmon [Sat, 26 Dec 2020 02:21:46 +0000 (20:21 -0600)]
Allow GitHub Actions Deploy workflow to be manually triggered

3 years agoExplicitly install wheel in GitHub Actions Deploy workflow
Harmon [Sat, 26 Dec 2020 02:16:42 +0000 (20:16 -0600)]
Explicitly install wheel in GitHub Actions Deploy workflow

As it's not required by Twine

3 years agoRelease v3.10.0
Harmon [Sat, 26 Dec 2020 02:06:15 +0000 (20:06 -0600)]
Release v3.10.0

3 years agoAdd changelog for version 3.10.0
Harmon [Sat, 26 Dec 2020 02:02:55 +0000 (20:02 -0600)]
Add changelog for version 3.10.0

3 years agoMerge pull request #1444 from brett-schneider/master
Harmon [Sat, 26 Dec 2020 00:51:08 +0000 (18:51 -0600)]
Merge pull request #1444 from brett-schneider/master

fixed Issue #1443

3 years agoRemove extraneous changes
Harmon [Sat, 26 Dec 2020 00:48:27 +0000 (18:48 -0600)]
Remove extraneous changes

3 years agoMerge pull request #1475 from keatonconrad/master
Harmon [Sat, 26 Dec 2020 00:41:34 +0000 (18:41 -0600)]
Merge pull request #1475 from keatonconrad/master

Allows media upload from BytesIO

3 years agoMerge branch 'master' into master
Harmon [Sat, 26 Dec 2020 00:38:27 +0000 (18:38 -0600)]
Merge branch 'master' into master

3 years agoAdd support for Python 3.9
Harmon [Thu, 24 Dec 2020 08:07:07 +0000 (02:07 -0600)]
Add support for Python 3.9

3 years agoRename job in GitHub Actions Test workflow
Harmon [Wed, 23 Dec 2020 21:23:14 +0000 (15:23 -0600)]
Rename job in GitHub Actions Test workflow

build -> test

3 years agoAdd status badge for GitHub Actions Test workflow to README
Harmon [Wed, 23 Dec 2020 20:25:20 +0000 (14:25 -0600)]
Add status badge for GitHub Actions Test workflow to README