Deprecate Stream and AsyncStream
authorHarmon <Harmon758@gmail.com>
Wed, 1 Mar 2023 06:52:45 +0000 (00:52 -0600)
committerHarmon <Harmon758@gmail.com>
Wed, 1 Mar 2023 06:53:02 +0000 (00:53 -0600)
https://twittercommunity.com/t/announcing-the-deprecation-of-v1-1-statuses-filter-endpoint/182960

tweepy/asynchronous/streaming.py
tweepy/streaming.py

index 9c380f3c8f178d048f74ff7009ca409a1ca9dd7b..2ed0ee965d74d402ec1ba4c594b5ecc1fb7654a1 100644 (file)
@@ -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,
index 150bc59c32259fc027cc893eb06de57e77050838..327e0e4ab340baa7fa28494cd1798a1448654709 100644 (file)
@@ -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,