From: Harmon Date: Wed, 1 Mar 2023 06:52:45 +0000 (-0600) Subject: Deprecate Stream and AsyncStream X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8b9c547b7e443344ba78ee435ec60a407d92f902;p=tweepy.git Deprecate Stream and AsyncStream https://twittercommunity.com/t/announcing-the-deprecation-of-v1-1-statuses-filter-endpoint/182960 --- diff --git a/tweepy/asynchronous/streaming.py b/tweepy/asynchronous/streaming.py index 9c380f3..2ed0ee9 100644 --- a/tweepy/asynchronous/streaming.py +++ b/tweepy/asynchronous/streaming.py @@ -210,6 +210,11 @@ class AsyncBaseStream: class AsyncStream(AsyncBaseStream): """Stream realtime Tweets asynchronously with Twitter API v1.1 + .. deprecated:: 4.13 + `The Twitter API v1.1 streaming statuses/filter endpoint that`_ + :class:`AsyncStream` `uses has a formal deprecation date of + March 9, 2023.`_ + .. note:: New Twitter Developer Apps created on or after April 29, 2022 `will not @@ -253,6 +258,8 @@ class AsyncStream(AsyncBaseStream): .. _will not be able to gain access to v1.1 statuses/filter: https://twittercommunity.com/t/deprecation-announcement-removing-compliance-messages-from-statuses-filter-and-retiring-statuses-sample-from-the-twitter-api-v1-1/170500 .. _the Twitter API v1.1 statuses/sample endpoint and compliance messages on the Twitter API v1.1 statuses/filter endpoint have been retired: https://twittercommunity.com/t/deprecation-announcement-removing-compliance-messages-from-statuses-filter-and-retiring-statuses-sample-from-the-twitter-api-v1-1/170500 + .. _The Twitter API v1.1 streaming statuses/filter endpoint that: https://twittercommunity.com/t/announcing-the-deprecation-of-v1-1-statuses-filter-endpoint/182960 + .. _uses has a formal deprecation date of March 9, 2023.: https://twittercommunity.com/t/announcing-the-deprecation-of-v1-1-statuses-filter-endpoint/182960 """ def __init__(self, consumer_key, consumer_secret, access_token, diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 150bc59..327e0e4 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -220,6 +220,10 @@ class BaseStream: class Stream(BaseStream): """Filter realtime Tweets with Twitter API v1.1 + .. deprecated:: 4.13 + `The Twitter API v1.1 streaming statuses/filter endpoint that`_ + :class:`Stream` `uses has a formal deprecation date of March 9, 2023.`_ + .. note:: New Twitter Developer Apps created on or after April 29, 2022 `will not @@ -276,6 +280,8 @@ class Stream(BaseStream): .. _will not be able to gain access to v1.1 statuses/filter: https://twittercommunity.com/t/deprecation-announcement-removing-compliance-messages-from-statuses-filter-and-retiring-statuses-sample-from-the-twitter-api-v1-1/170500 .. _the Twitter API v1.1 statuses/sample endpoint and compliance messages on the Twitter API v1.1 statuses/filter endpoint have been retired: https://twittercommunity.com/t/deprecation-announcement-removing-compliance-messages-from-statuses-filter-and-retiring-statuses-sample-from-the-twitter-api-v1-1/170500 + .. _The Twitter API v1.1 streaming statuses/filter endpoint that: https://twittercommunity.com/t/announcing-the-deprecation-of-v1-1-statuses-filter-endpoint/182960 + .. _uses has a formal deprecation date of March 9, 2023.: https://twittercommunity.com/t/announcing-the-deprecation-of-v1-1-statuses-filter-endpoint/182960 """ def __init__(self, consumer_key, consumer_secret, access_token,