tweepy.git
22 months agoRelease v4.12.0
Harmon [Fri, 28 Oct 2022 03:25:45 +0000 (22:25 -0500)]
Release v4.12.0

22 months agoAdd changelog for version 4.12.0
Harmon [Fri, 28 Oct 2022 03:16:23 +0000 (22:16 -0500)]
Add changelog for version 4.12.0

22 months agoAdd support for Twitter API v2 Direct Messages endpoints
Harmon [Fri, 28 Oct 2022 02:54:28 +0000 (21:54 -0500)]
Add support for Twitter API v2 Direct Messages endpoints

Resolves #1995

22 months agoAdd missing angle bracket to string representation of ReferencedTweet
Harmon [Fri, 28 Oct 2022 01:34:05 +0000 (20:34 -0500)]
Add missing angle bracket to string representation of ReferencedTweet

22 months agoFix signature of Client.get_quote_tweets in documentation
Harmon [Thu, 27 Oct 2022 23:35:28 +0000 (18:35 -0500)]
Fix signature of Client.get_quote_tweets in documentation

22 months agoRevert "Change API method docstrings to raw strings"
Harmon [Tue, 25 Oct 2022 23:26:51 +0000 (18:26 -0500)]
Revert "Change API method docstrings to raw strings"

This reverts commit fb851a0192cb97d321611eb33427b872ff5ccbb9.

This broke multi-line signature overrides and will likely be resolved with type hints anyway.

22 months agoImprove exceptions raised for unknown method return types for pagination
Harmon [Thu, 27 Oct 2022 17:56:10 +0000 (12:56 -0500)]
Improve exceptions raised for unknown method return types for pagination

22 months agoHandle different method return types in flatten methods for pagination
Harmon [Thu, 27 Oct 2022 17:33:49 +0000 (12:33 -0500)]
Handle different method return types in flatten methods for pagination

22 months agoAdd version changed directive to documentation for Media
Harmon [Thu, 27 Oct 2022 17:13:24 +0000 (12:13 -0500)]
Add version changed directive to documentation for Media

22 months agoMerge pull request #1910 from New-dev0/patch-1
Harmon [Thu, 27 Oct 2022 17:07:28 +0000 (12:07 -0500)]
Merge pull request #1910 from New-dev0/patch-1

Add missing "variants" to Media Object

22 months agoUpdate tweepy/media.py
Devesh Pal [Thu, 27 Oct 2022 12:06:02 +0000 (17:36 +0530)]
Update tweepy/media.py

Co-authored-by: Harmon <Harmon758@gmail.com>
22 months agoAdd documentation for Tweet fields
Harmon [Wed, 26 Oct 2022 21:12:12 +0000 (16:12 -0500)]
Add documentation for Tweet fields

edit_history_tweet_ids and edit_controls

22 months agoFix class references in notes in documentation for AsyncClient methods
Harmon [Wed, 26 Oct 2022 07:41:28 +0000 (02:41 -0500)]
Fix class references in notes in documentation for AsyncClient methods

22 months agoUpdate actions/setup-python from v3 to v4
Harmon [Wed, 26 Oct 2022 00:18:50 +0000 (19:18 -0500)]
Update actions/setup-python from v3 to v4

22 months agoUpdate actions/setup-python from v2 to v3
Harmon [Wed, 26 Oct 2022 00:12:12 +0000 (19:12 -0500)]
Update actions/setup-python from v2 to v3

22 months agoAdd support for Python 3.11
Harmon [Wed, 26 Oct 2022 00:02:58 +0000 (19:02 -0500)]
Add support for Python 3.11

22 months agoChange API method docstrings to raw strings
Harmon [Tue, 25 Oct 2022 23:26:51 +0000 (18:26 -0500)]
Change API method docstrings to raw strings

Prevent DeprecationWarnings about invalid escape sequences

22 months agoImprove formatting in api.py
Harmon [Tue, 25 Oct 2022 23:12:48 +0000 (18:12 -0500)]
Improve formatting in api.py

22 months agoMerge pull request #1861 from lqhuang/fix-meta-attr-for-paginator
Harmon [Tue, 25 Oct 2022 18:44:16 +0000 (13:44 -0500)]
Merge pull request #1861 from lqhuang/fix-meta-attr-for-paginator

Fix `AttributeError` by accessing `meta` field when `return_type` is dict

22 months agoAdjust line length for `AsyncPaginator` docstring
Lanqing Huang [Tue, 25 Oct 2022 10:00:06 +0000 (18:00 +0800)]
Adjust line length for `AsyncPaginator` docstring

22 months agoAdjust docstring for sync/async Paginator
Lanqing Huang [Tue, 25 Oct 2022 02:29:39 +0000 (10:29 +0800)]
Adjust docstring for sync/async Paginator

22 months agoRelease v4.11.0
Harmon [Mon, 24 Oct 2022 22:27:18 +0000 (17:27 -0500)]
Release v4.11.0

22 months agoAdd changelog for version 4.11.0
Harmon [Mon, 24 Oct 2022 22:12:00 +0000 (17:12 -0500)]
Add changelog for version 4.11.0

22 months agoAdd version changed directive to documentation for Tweet
Harmon [Mon, 24 Oct 2022 21:35:07 +0000 (16:35 -0500)]
Add version changed directive to documentation for Tweet

22 months agoAdd version changed directive to documentation for API
Harmon [Mon, 24 Oct 2022 21:34:39 +0000 (16:34 -0500)]
Add version changed directive to documentation for API

22 months agoFix incorrect `Response` type for `AsyncPaginator` and revert formatting from `black`
Lanqing Huang [Mon, 24 Oct 2022 07:54:11 +0000 (15:54 +0800)]
Fix incorrect `Response` type for `AsyncPaginator` and revert formatting from `black`

22 months agoFix handling of `meta` attr for different response types
Lanqing Huang [Sun, 23 Oct 2022 13:16:49 +0000 (21:16 +0800)]
Fix handling of `meta` attr for different response types

22 months agoFix `AttributeError` by accessing `meta` field when return_type is dict
Lanqing Huang [Wed, 13 Apr 2022 08:06:01 +0000 (16:06 +0800)]
Fix `AttributeError` by accessing `meta` field when return_type is dict

22 months agoUpdate changelog references in FAQ
Harmon [Sat, 22 Oct 2022 01:05:45 +0000 (20:05 -0500)]
Update changelog references in FAQ

22 months agoImprove documentation for wait_on_rate_limit parameter for streaming
Harmon [Sat, 22 Oct 2022 00:55:53 +0000 (19:55 -0500)]
Improve documentation for wait_on_rate_limit parameter for streaming

Resolves part of #1986

22 months agoLower API v2 streaming timeout to 20 seconds
Harmon [Sat, 22 Oct 2022 00:33:50 +0000 (19:33 -0500)]
Lower API v2 streaming timeout to 20 seconds

Resolves part of #1986

22 months agoHandle 429 HTTP errors for streaming
Harmon [Fri, 21 Oct 2022 23:59:51 +0000 (18:59 -0500)]
Handle 429 HTTP errors for streaming

Resolves #1982
Resolves #1986

22 months agoNormalize import order in asynchronous.__init__
Harmon [Thu, 20 Oct 2022 19:44:29 +0000 (14:44 -0500)]
Normalize import order in asynchronous.__init__

22 months agoUpdate models.List methods to use list ID instead of slug
Harmon [Thu, 20 Oct 2022 19:40:06 +0000 (14:40 -0500)]
Update models.List methods to use list ID instead of slug

22 months agoUpdate models.List methods to pass keyword arguments to API methods
Harmon [Thu, 20 Oct 2022 19:18:38 +0000 (14:18 -0500)]
Update models.List methods to pass keyword arguments to API methods

Resolves #1987

23 months agoAdd pagination for AsyncClient
Harmon [Mon, 10 Oct 2022 05:25:14 +0000 (00:25 -0500)]
Add pagination for AsyncClient

23 months agoAdd version changed directive to documentation for get_quote_tweets
Harmon [Sun, 9 Oct 2022 20:02:58 +0000 (15:02 -0500)]
Add version changed directive to documentation for get_quote_tweets

23 months agoUpdate signature for get_quote_tweets in documentation
Harmon [Sun, 9 Oct 2022 20:01:03 +0000 (15:01 -0500)]
Update signature for get_quote_tweets in documentation

Add exclude parameter

23 months agoAdd version changed directive to documentation for get_list_tweets
Harmon [Sat, 8 Oct 2022 19:23:02 +0000 (14:23 -0500)]
Add version changed directive to documentation for get_list_tweets

23 months agoUpdate signature for get_list_tweets in documentation
Harmon [Sat, 8 Oct 2022 19:19:16 +0000 (14:19 -0500)]
Update signature for get_list_tweets in documentation

Add media_fields, place_fields, and poll_fields parameters

23 months agoFix changelog heading for version 4.0.1
Harmon [Sat, 8 Oct 2022 01:58:46 +0000 (20:58 -0500)]
Fix changelog heading for version 4.0.1

23 months agoAdd sections for old and previously missing versions to changelog
Harmon [Sat, 8 Oct 2022 01:54:04 +0000 (20:54 -0500)]
Add sections for old and previously missing versions to changelog

23 months agoAdd release dates to changelog
Harmon [Sat, 8 Oct 2022 00:48:38 +0000 (19:48 -0500)]
Add release dates to changelog

23 months agoUpdate cassettes for testing methods that return Tweet objects
Harmon [Fri, 7 Oct 2022 23:04:13 +0000 (18:04 -0500)]
Update cassettes for testing methods that return Tweet objects

23 months agoSupport edit_history_tweet_ids and edit_controls Tweet fields
Harmon [Fri, 7 Oct 2022 22:30:01 +0000 (17:30 -0500)]
Support edit_history_tweet_ids and edit_controls Tweet fields

Resolves #1979

23 months agoCheck oauth_client is not None in AsyncBaseStream._connect
Harmon [Wed, 5 Oct 2022 17:41:04 +0000 (12:41 -0500)]
Check oauth_client is not None in AsyncBaseStream._connect

23 months agoChange AsyncBaseStream._connect oauth_1 parameter to oauth_client
Harmon [Tue, 4 Oct 2022 20:06:14 +0000 (15:06 -0500)]
Change AsyncBaseStream._connect oauth_1 parameter to oauth_client

23 months agoAdd oauth_1 parameter to AsyncBaseStream._connect for AsyncStream
Harmon [Tue, 4 Oct 2022 19:11:39 +0000 (14:11 -0500)]
Add oauth_1 parameter to AsyncBaseStream._connect for AsyncStream

This allows the Authorization header to be regenerated in AsyncBaseStream._connect prior to any reconnection requests, when used through AsyncStream._connect

23 months agoSupport include_ext_edit_control parameter for API methods
Harmon [Tue, 4 Oct 2022 03:48:08 +0000 (22:48 -0500)]
Support include_ext_edit_control parameter for API methods

23 months agoUse tuple for API.indicate_direct_message_typing endpoint_parameters
Harmon [Tue, 4 Oct 2022 03:52:32 +0000 (22:52 -0500)]
Use tuple for API.indicate_direct_message_typing endpoint_parameters

2 years agoLog text of HTTP response when handling request error in AsyncBaseStream
Harmon [Fri, 16 Sep 2022 16:44:07 +0000 (11:44 -0500)]
Log text of HTTP response when handling request error in AsyncBaseStream

2 years agoAdd support for exclude parameter for get_quote_tweets
Harmon [Thu, 25 Aug 2022 08:10:59 +0000 (03:10 -0500)]
Add support for exclude parameter for get_quote_tweets

This was previously undocumented for the endpoint:
https://twittercommunity.com/t/quote-tweets-api-can-use-exclude-parameter/171392

2 years agoRelease v4.10.1
Harmon [Tue, 23 Aug 2022 01:26:36 +0000 (20:26 -0500)]
Release v4.10.1

2 years agoAdd changelog for version 4.10.1
Harmon [Tue, 23 Aug 2022 01:16:27 +0000 (20:16 -0500)]
Add changelog for version 4.10.1

2 years agoIgnore AsyncClient method parameters explicitly passed as None
Harmon [Sat, 20 Aug 2022 14:46:17 +0000 (09:46 -0500)]
Ignore AsyncClient method parameters explicitly passed as None

Resolves #1944

2 years agoAdd support for get_list_tweets parameters
Harmon [Fri, 19 Aug 2022 14:52:24 +0000 (09:52 -0500)]
Add support for get_list_tweets parameters

Add support for media_fields, place_fields, and poll_fields parameters for get_list_tweets

Resolves #1931

2 years agoCorrect typo in documentation for add_rules and delete_rules
Harmon [Thu, 18 Aug 2022 14:13:54 +0000 (09:13 -0500)]
Correct typo in documentation for add_rules and delete_rules

Resolves #1937

2 years agoFix handling of StreamRule in list passed to delete_rules
Harmon [Thu, 18 Aug 2022 13:53:02 +0000 (08:53 -0500)]
Fix handling of StreamRule in list passed to delete_rules

Resolves #1942

2 years agoAdd missing variant to Media Object
Devesh Pal [Thu, 9 Jun 2022 10:31:19 +0000 (16:01 +0530)]
Add missing variant to Media Object

2 years agoLog text of HTTP response when handling request error in BaseStream
Harmon [Wed, 1 Jun 2022 13:26:08 +0000 (08:26 -0500)]
Log text of HTTP response when handling request error in BaseStream

2 years agoUpdate Requests documentation URL for Intersphinx linking
Harmon [Tue, 24 May 2022 10:29:54 +0000 (05:29 -0500)]
Update Requests documentation URL for Intersphinx linking

https://github.com/psf/requests/issues/6140

2 years agoMerge pull request #1902 from Myyyth/master
Harmon [Fri, 20 May 2022 17:50:52 +0000 (12:50 -0500)]
Merge pull request #1902 from Myyyth/master

Fix request method non-awaitable after receiving rate limit (429)

2 years agoRelease v4.10.0
Harmon [Fri, 20 May 2022 17:32:08 +0000 (12:32 -0500)]
Release v4.10.0

2 years agoAdd changelog for version 4.10.0
Harmon [Fri, 20 May 2022 17:28:43 +0000 (12:28 -0500)]
Add changelog for version 4.10.0

2 years agoFix request method non-awaitable after receiving rate limit (429)
Timur [Fri, 20 May 2022 17:20:47 +0000 (20:20 +0300)]
Fix request method non-awaitable after receiving rate limit (429)

2 years agoAdd Client.get_home_timeline and AsyncClient.get_home_timeline
Harmon [Fri, 20 May 2022 17:19:13 +0000 (12:19 -0500)]
Add Client.get_home_timeline and AsyncClient.get_home_timeline

Resolves #1900

2 years agoImprove documentation for AsyncStream proxy parameter
Harmon [Fri, 20 May 2022 11:20:47 +0000 (06:20 -0500)]
Improve documentation for AsyncStream proxy parameter

2 years agoAdd Raises section to StreamingClient.sample documentation
Harmon [Fri, 20 May 2022 10:57:31 +0000 (05:57 -0500)]
Add Raises section to StreamingClient.sample documentation

2 years agoAdd Raises section to StreamingClient.filter documentation
Harmon [Fri, 20 May 2022 10:57:17 +0000 (05:57 -0500)]
Add Raises section to StreamingClient.filter documentation

2 years agoAdd Raises section to Stream.sample documentation
Harmon [Fri, 20 May 2022 10:56:51 +0000 (05:56 -0500)]
Add Raises section to Stream.sample documentation

2 years agoImprove Raises section of Stream.filter documentation
Harmon [Fri, 20 May 2022 10:56:29 +0000 (05:56 -0500)]
Improve Raises section of Stream.filter documentation

2 years agoAdd note about new Twitter Developer Apps in AsyncStream documentation
Harmon [Fri, 20 May 2022 10:40:15 +0000 (05:40 -0500)]
Add note about new Twitter Developer Apps in AsyncStream documentation

2 years agoAdd note about new Twitter Developer Apps in Stream documentation
Harmon [Fri, 20 May 2022 10:38:11 +0000 (05:38 -0500)]
Add note about new Twitter Developer Apps in Stream documentation

2 years agoRemove StreamRule.__init__ documentation
Harmon [Fri, 20 May 2022 10:15:55 +0000 (05:15 -0500)]
Remove StreamRule.__init__ documentation

2 years agoNote deprecation of compliance messages for AsyncStream.filter
Harmon [Thu, 19 May 2022 16:25:32 +0000 (11:25 -0500)]
Note deprecation of compliance messages for AsyncStream.filter

2 years agoDeprecate AsyncStream.sample
Harmon [Thu, 19 May 2022 16:20:47 +0000 (11:20 -0500)]
Deprecate AsyncStream.sample

https://twittercommunity.com/t/deprecation-announcement-removing-compliance-messages-from-statuses-filter-and-retiring-statuses-sample-from-the-twitter-api-v1-1/170500

2 years agoAdd asynchronous.AsyncStreamingClient
Harmon [Thu, 19 May 2022 00:53:35 +0000 (19:53 -0500)]
Add asynchronous.AsyncStreamingClient

2 years agoUpdate the User-Agent header based on AsyncStream.user_agent
Harmon [Wed, 18 May 2022 14:03:36 +0000 (09:03 -0500)]
Update the User-Agent header based on AsyncStream.user_agent

Even if AsyncStream.session is already initialized/set

2 years agoPercent-encode colons in URL query values for AsyncClient.request
Harmon [Wed, 18 May 2022 10:33:56 +0000 (05:33 -0500)]
Percent-encode colons in URL query values for AsyncClient.request

2 years agoCheck for async_lru when importing asynchronous subpackage
Harmon [Wed, 18 May 2022 04:18:25 +0000 (23:18 -0500)]
Check for async_lru when importing asynchronous subpackage

2 years agoMerge pull request #1893 from TheLovinator1/master
Harmon [Tue, 17 May 2022 02:34:22 +0000 (21:34 -0500)]
Merge pull request #1893 from TheLovinator1/master

Fix wrong parameter in docstring

2 years agoFix wrong parameter in docstring
Joakim Hellsén [Sat, 14 May 2022 20:59:02 +0000 (22:59 +0200)]
Fix wrong parameter in docstring

2 years agoAdd asynchronous.AsyncClient
Harmon [Tue, 10 May 2022 03:14:46 +0000 (22:14 -0500)]
Add asynchronous.AsyncClient

Add async_lru as requirement for async extra

2 years agoImprove method name for Client blocks methods test
Harmon [Sat, 7 May 2022 13:16:50 +0000 (08:16 -0500)]
Improve method name for Client blocks methods test

2 years agoImprove unittest.TestCase subclass name for Client tests
Harmon [Sat, 7 May 2022 12:39:17 +0000 (07:39 -0500)]
Improve unittest.TestCase subclass name for Client tests

2 years agoSeparate Response documentation from Client documentation
Harmon [Sat, 7 May 2022 12:00:09 +0000 (07:00 -0500)]
Separate Response documentation from Client documentation

2 years agoSeparate documentation on expansions and fields
Harmon [Sat, 7 May 2022 11:43:25 +0000 (06:43 -0500)]
Separate documentation on expansions and fields

From documentation on Client

2 years agoImprove heading level in v4.9.0 changelog
Harmon [Thu, 5 May 2022 14:46:15 +0000 (09:46 -0500)]
Improve heading level in v4.9.0 changelog

2 years agoRelease v4.9.0
Harmon [Thu, 5 May 2022 14:19:06 +0000 (09:19 -0500)]
Release v4.9.0

2 years agoAdd changelog for version 4.9.0
Harmon [Thu, 5 May 2022 14:17:08 +0000 (09:17 -0500)]
Add changelog for version 4.9.0

2 years agoNote deprecation of compliance messages for Stream.filter
Harmon [Sat, 30 Apr 2022 11:35:56 +0000 (06:35 -0500)]
Note deprecation of compliance messages for Stream.filter

2 years agoDeprecate Stream.sample
Harmon [Sat, 30 Apr 2022 11:23:10 +0000 (06:23 -0500)]
Deprecate Stream.sample

https://twittercommunity.com/t/deprecation-announcement-removing-compliance-messages-from-statuses-filter-and-retiring-statuses-sample-from-the-twitter-api-v1-1/170500

2 years agoHandle "error" key of response being a string in HTTPException
Harmon [Thu, 21 Apr 2022 23:22:28 +0000 (18:22 -0500)]
Handle "error" key of response being a string in HTTPException

2 years agoFix logging documentation to use lowercase logger name
Harmon [Tue, 19 Apr 2022 20:21:05 +0000 (15:21 -0500)]
Fix logging documentation to use lowercase logger name

2 years agoUpdate documentation for Media.url
Harmon [Tue, 19 Apr 2022 20:14:44 +0000 (15:14 -0500)]
Update documentation for Media.url

2 years agoUpdate documentation for Space.subscriber_count
Harmon [Tue, 19 Apr 2022 20:03:09 +0000 (15:03 -0500)]
Update documentation for Space.subscriber_count

2 years agoFallback to detail response value for HTTPException message
Harmon [Thu, 14 Apr 2022 22:53:05 +0000 (17:53 -0500)]
Fallback to detail response value for HTTPException message

2 years agoRemove tests_require from setup.py
Harmon [Wed, 6 Apr 2022 01:22:44 +0000 (20:22 -0500)]
Remove tests_require from setup.py

setup.py test has been deprecated with https://github.com/pypa/setuptools/issues/1684 and https://github.com/pypa/setuptools/pull/1878 since setuptools v41.5.0

2 years agoUpdate lower bound for dev extra tox requirement
Harmon [Tue, 5 Apr 2022 23:47:07 +0000 (18:47 -0500)]
Update lower bound for dev extra tox requirement

2 years agoUse setup.cfg for tox configuration
Harmon [Tue, 5 Apr 2022 23:45:36 +0000 (18:45 -0500)]
Use setup.cfg for tox configuration