Tweepy

Latest version: v4.14.0

Safety actively analyzes 682441 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 9

4.14.0

---------------------------

New Features / Improvements
- Add constants for potential model object fields ([f3f73bc](https://github.com/tweepy/tweepy/commit/f3f73bc1cf0a7f19ebfe7df0a2f6b08fb7c4cd9c))
- `DIRECT_MESSAGE_EVENT_FIELDS`
- `DM_EVENT_FIELDS`
- `LIST_FIELDS`
- `MEDIA_FIELDS`
- `PLACE_FIELDS`
- `POLL_FIELDS`
- `PUBLIC_SPACE_FIELDS`
- `SPACE_FIELDS`
- `PUBLIC_TWEET_FIELDS`
- `TWEET_FIELDS`
- `USER_FIELDS`
- Add `creator_id` field for `Space` ([a13726a](https://github.com/tweepy/tweepy/commit/a13726a1c0114f72e0037bad4292b4a2a6693b65))

Twitter API Backwards-Incompatible Changes
- Remove support for streaming with Twitter API v1.1 status/filter endpoint ([c8a02eb](https://github.com/tweepy/tweepy/commit/c8a02eb61b36ac710010b67ff0ed7b8374ef9375))
- `Stream`
- `AsyncStream`
- Remove support for deprecated Premium v1.1 Search APIs ([a955f30](https://github.com/tweepy/tweepy/commit/a955f3000c57c134f51d55b42c0e98ff56e17311))
- `API.search_30_day`
- `API.search_full_archive`

Misc
- Overhaul Getting Started documentation ([addb9f7](https://github.com/tweepy/tweepy/commit/addb9f7a78de70c1b1e4b6a34e5324776f55cd0f))
- Remove no longer valid Twitter API version badges in README ([880e7bf](https://github.com/tweepy/tweepy/commit/880e7bf98075a1e1c1cd817971581d4f229ea1fb))
- Update and improve various documentation

4.13.0

---------------------------

New Features / Improvements
- Add `verified_type` field for `User` ([9f7afae](https://github.com/tweepy/tweepy/commit/9f7afaefa680da6a4f7864db99e12dd72a51cafa))

Twitter API Backwards-Incompatible Changes
- Remove streaming methods using retired Twitter API v1.1 features ([0cd96b1](https://github.com/tweepy/tweepy/commit/0cd96b1918e5e920eb9f8fe4ba303ab5ec899c65))
- Twitter API v1.1 statuses/sample endpoint
- `Stream.sample`
- `AsyncStream.sample`
- Compliance messages on the Twitter API v1.1 statuses/filter endpoint
- `Stream.on_delete`, `Stream.on_scrub_geo`, `Stream.on_status_withheld`, `Stream.on_user_withheld`
- `AsyncStream.on_delete`, `AsyncStream.on_scrub_geo`, `AsyncStream.on_status_withheld`, `AsyncStream.on_user_withheld`

Twitter API Deprecations
- Deprecate streaming with Twitter API v1.1 statuses/filter endpoint ([8b9c547](https://github.com/tweepy/tweepy/commit/8b9c547b7e443344ba78ee435ec60a407d92f902))
- `Stream`
- `AsyncStream`

Bug Fixes
- Return base class method values in `StreamingClient._process_data` and `AsyncStreamingClient._process_data` methods ([2744073](https://github.com/tweepy/tweepy/commit/274407346aa2db1b751f5e5fe11ab0d8bbe9314c))
- Handle empty payloads in `JSONParser.parse` ([e854138](https://github.com/tweepy/tweepy/commit/e854138dcecc223fac1038704ec0d9266037217b), [#2051](https://github.com/tweepy/tweepy/issues/2051))

Twitter API Bug Handling
- Handle incorrect processing state for errored chunked uploads ([a68ce86](https://github.com/tweepy/tweepy/commit/a68ce8658ab0908227dc486e73d02060e21174f8))

Misc
- Support async-lru v2 ([f98b345](https://github.com/tweepy/tweepy/commit/f98b34573a50fdc870111e17052d385b0917e3c3))
- Document specific expansions available for each type of payload ([7df6453](https://github.com/tweepy/tweepy/commit/7df645328bdf26e5c4c569392d5d2252b1527477))
- Add documentation for Direct Message events ([c689548](https://github.com/tweepy/tweepy/commit/c689548cb1b4b9c2f69249d67534a735b931b9b5))
- Update documentation for `dm_event_fields` parameter ([e2fb467](https://github.com/tweepy/tweepy/commit/e2fb467b52659e87de592ff80b03edb9324c0189))
- Add section in documentation about `dm_event_fields` parameter ([4b0fa90](https://github.com/tweepy/tweepy/commit/4b0fa90e91eb2b67dfd33f0d27b148e95ea05f65))
- Add expansions documentation for Direct Message conversation events ([2009](https://github.com/tweepy/tweepy/pull/2009))
- Add note in documentation about removal of `Tweet` `source` field ([5d22a01](https://github.com/tweepy/tweepy/commit/5d22a01a2f48feaed6817e0ab7c27a990735a3d8))
- Add SECURITY.md ([b79a1db](https://github.com/tweepy/tweepy/commit/b79a1db0962d7091de17f6ad93f42699d68e76f6), [3d3d58e](https://github.com/tweepy/tweepy/commit/3d3d58e1e8627788fe88684a515ef888038f3e3c))
- Update copyright years to include 2023 ([ccc9526](https://github.com/tweepy/tweepy/commit/ccc95269c1071f6c1f65698bf73c851472defba9))

4.12.1

---------------------------

Bug Fixes
- Add 1 second buffer to API v2 streaming timeout ([51a5d61](https://github.com/tweepy/tweepy/commit/51a5d61bfd6699ab844449698b34befd6a170857))
- The keep-alive is often received after marginally longer than 20 seconds, causing unnecessary timeouts and reconnects with a timeout of exactly 20 seconds
- Default `AsyncBaseStream` to abort closed SSL transports ([1904](https://github.com/tweepy/tweepy/issues/1904))
- Warn when Tweet data is missing default `edit_history_tweet_ids` field ([3dea0df](https://github.com/tweepy/tweepy/commit/3dea0df2b8ee797264de67afc9f2d670e68aa634), [#1994](https://github.com/tweepy/tweepy/issues/1994))
- Change initial `network_error_wait` to 0 for streaming ([b18c1a6](https://github.com/tweepy/tweepy/commit/b18c1a6239e81cb5744fa99d392ec539de787e5c))
- Attempt to reconnect immediately when established streaming connection drops

Misc
- Document `limit` and `pagination_token` parameters for `Paginator` and `AsyncPaginator` ([e98ab02](https://github.com/tweepy/tweepy/commit/e98ab0211e488c734d1c01c0bf2a2cf4d87c4762), [bb934fc](https://github.com/tweepy/tweepy/commit/bb934fc247892d83ce69511311c07bed2b170412))
- Use separate method to construct `Response` in `Client` and `AsyncClient` ([1997](https://github.com/tweepy/tweepy/pull/1997), [9983735](https://github.com/tweepy/tweepy/commit/9983735313c10906479348621f835bbbc38e5619))
- Log streaming connection error exceptions ([b7f02c6](https://github.com/tweepy/tweepy/commit/b7f02c60b252b747e16d84ccfedb275d85720439))
- Add CITATION.cff ([2547b44](https://github.com/tweepy/tweepy/commit/2547b44ac8ea1250b5eb6747db5bce7e425bc5ba))
- Add DOI badge to README ([72a33c9](https://github.com/tweepy/tweepy/commit/72a33c9df96cd5f537999d9a4f2a1ad2d82d8f60))
- Replace docs/requirements.txt with docs extra ([0ccfe86](https://github.com/tweepy/tweepy/commit/0ccfe86175d83ea89b20ff00ef6f420423fde347))
- Fix Intersphinx link to `namedtuple` in documentation for `Response` ([352c74a](https://github.com/tweepy/tweepy/commit/352c74ac1e1eb3a87a70bc707f35256d20001494))
- Improve format of badges in README ([d41c813](https://github.com/tweepy/tweepy/commit/d41c8135f2876cb91299bb70fb4b95d06039ce05))

4.12.0

---------------------------

New Features / Improvements
- Add support for Direct Messages with Twitter API v2 ([1995](https://github.com/tweepy/tweepy/issues/1995))
- Add `DirectMessageEvent` model
- Add `Client.get_direct_message_events`, `Client.create_direct_message`, and `Client.create_direct_message_conversation`
- Add `AsyncClient.get_direct_message_events`, `AsyncClient.create_direct_message`, and `AsyncClient.create_direct_message_conversation`
- Add support for Python 3.11 ([a391c66](https://github.com/tweepy/tweepy/commit/a391c66daae3f217585b5da9a9556cb86abe34bd))
- Add support for `variants` `Media` field ([1910](https://github.com/tweepy/tweepy/pull/1910), [e31be15](https://github.com/tweepy/tweepy/commit/e31be1519269d5225e28dad8a77b58412b7fe435))

Bug Fixes
- Handle different method return types in API v2 pagination ([1843](https://github.com/tweepy/tweepy/issues/1843), [#1861](https://github.com/tweepy/tweepy/pull/1861), [381bf91](https://github.com/tweepy/tweepy/commit/381bf9182700fa0c51df00b5b0f3e19c3d04dac0), [3874579](https://github.com/tweepy/tweepy/commit/3874579bac22a6648e774995478cb597689d89bc))
- Add missing angle bracket to string representation of `ReferencedTweet` ([d4df069](https://github.com/tweepy/tweepy/commit/d4df0691b4686161cc4bda0c85f29b75f207e0c2))

Misc
- Add documentation for `edit_history_tweet_ids` and `edit_controls` `Tweet` fields ([2b1e159](https://github.com/tweepy/tweepy/commit/2b1e159f4525df74e7cf9f2c531392966f306a82))
- This documentation was previously missing from Twitter's API documentation
- Fix class references in notes in documentation for `AsyncClient` methods ([f737b87](https://github.com/tweepy/tweepy/commit/f737b87fbcf15fda070898189578ca60dcb38614))
- Fix signature of `Client.get_quote_tweets` in documentation ([6f7de39](https://github.com/tweepy/tweepy/commit/6f7de39b65d43eb5e52e9353b9830ab49a388a03))
- Update actions/setup-python from v2 to v4 ([f16b3dc](https://github.com/tweepy/tweepy/commit/f16b3dc3afdeeba124b661734d53a3af1d504192), [0148be7](https://github.com/tweepy/tweepy/commit/0148be7edc460fcb9dae5fd1b38361cab6098da2))

4.11.0

---------------------------

New Features / Improvements
- Add support for retrieving edited Tweet metadata
- Add support for `include_ext_edit_control` parameter for `API` methods ([e122f35](https://github.com/tweepy/tweepy/commit/e122f351a0b9a0e461a5c13ba0a94a47bd8a446e), [e736770](https://github.com/tweepy/tweepy/commit/e736770b038e7c08d2ec37ac4827d5e03475bc7c))
- Add support for `edit_history_tweet_ids` and `edit_controls` `Tweet` fields ([1979](https://github.com/tweepy/tweepy/issues/1979), [a1c104f](https://github.com/tweepy/tweepy/commit/a1c104f2f9fa46371ae585b3603b761b91904612))
- Add `asynchronous.AsyncPaginator` for pagination for `AsyncClient` ([33e444a](https://github.com/tweepy/tweepy/commit/33e444a9d13d53ea024ddb3c9da30158a39ea4f6))
- Add support for `exclude` parameter for `get_quote_tweets` ([4f28bd8](https://github.com/tweepy/tweepy/commit/4f28bd85d85adf0fb735a3e24b45e7804c534aa7), [17e02b7](https://github.com/tweepy/tweepy/commit/17e02b78b9b4c5e6bf2d94e658e9d9790cd4c9a9), [48ebdb7](https://github.com/tweepy/tweepy/commit/48ebdb7face9188a352bfa82c616b20c6de12475))

Bug Fixes
- Handle 429 HTTP errors for streaming ([1982](https://github.com/tweepy/tweepy/issues/1982), [#1986](https://github.com/tweepy/tweepy/issues/1986))
- Lower API v2 streaming timeout to 20 seconds ([1986](https://github.com/tweepy/tweepy/issues/1986))
- Regenerate Authorization header prior to any reconnection requests for `AsyncStream` ([29bbb7b](https://github.com/tweepy/tweepy/commit/29bbb7be378fef8347858c9825f0b48e2c380c90), [a4c6325](https://github.com/tweepy/tweepy/commit/a4c632530e6783a6a899947c7ec32d78b55fc3c6), [5ade386](https://github.com/tweepy/tweepy/commit/5ade386f0c700c6ddf785bd991851acea9b848a8))
- Use tuple for `endpoint_parameters` argument in `API.indicate_direct_message_typing` ([396ab84](https://github.com/tweepy/tweepy/commit/396ab841b73771ef6f91088fb8937a252560cf34))
- Update `models.List` methods to pass keyword arguments to `API` methods ([1987](https://github.com/tweepy/tweepy/issues/1987))
- Update `models.List` methods to use list ID instead of slug ([73f6308](https://github.com/tweepy/tweepy/commit/73f630804a8e49d666e96b85c8d8f0780cb1ff91))

Misc
- Log text of HTTP response when handling request error in `AsyncBaseStream` ([51c3762](https://github.com/tweepy/tweepy/commit/51c37626b76b40693cc033fec7c71d56090f7135))
- Update signature for `get_list_tweets` in documentation ([86577b1](https://github.com/tweepy/tweepy/commit/86577b1b0cbc0d8f89cf1ff33112741d48071cbb))
- Add `media_fields`, `place_fields`, and `poll_fields` parameters
- Add version changed directive to documentation for `get_list_tweets` ([5cb2616](https://github.com/tweepy/tweepy/commit/5cb26164473b4527eccd7e05efbf903abccc1f3b))
- Improve documentation for `wait_on_rate_limit` parameter for streaming ([1986](https://github.com/tweepy/tweepy/issues/1986))
- Add release dates to changelog ([f665ce6](https://github.com/tweepy/tweepy/commit/f665ce63c3a87dfa6ee1e3008f01c765d4a0a397), [eafa665](https://github.com/tweepy/tweepy/commit/eafa66595490f95175c89ee58eaa79d86133aaf4), [3f0cc76](https://github.com/tweepy/tweepy/commit/3f0cc760ac7e9dd9125c0f9fc63b20119e6d17e4))
- Add sections for old and previously missing versions to changelog ([6aa1b77](https://github.com/tweepy/tweepy/commit/6aa1b77a7b0adb48982979c2bc98fe98563d6696))
- Update cassettes for testing methods that return Tweet objects ([872b33e](https://github.com/tweepy/tweepy/commit/872b33ec59127dd91db291f27c61a3860eab8fac))

4.10.1

---------------------------

Bug Fixes
- Fix `AsyncBaseClient` rate limit handling ([1902](https://github.com/tweepy/tweepy/pull/1902))
- Fix handling of `StreamRule` when passed in list to `StreamingClient.delete_rules` or `AsyncStreamingClient.delete_rules` ([1942](https://github.com/tweepy/tweepy/issues/1942))
- Add support for `media_fields`, `place_fields`, and `poll_fields` parameters for `Client.get_list_tweets` and `AsyncClient.get_list_tweets` ([1931](https://github.com/tweepy/tweepy/issues/1931))
- Ignore `AsyncClient` method parameters explicitly passed as `None` ([1944](https://github.com/tweepy/tweepy/issues/1944))

Misc
- Log text of HTTP response when handling request error in `BaseStream` ([598ea64](https://github.com/tweepy/tweepy/commit/598ea64d68ab3c27861e0f6dcf9bbce864dc3748))
- Update Requests documentation URL for Intersphinx linking ([2c7213d](https://github.com/tweepy/tweepy/commit/2c7213d71c8df9bddac00985d411750f1eb62a56))
- Correct typo in documentation for `StreamingClient` and `AsyncStreamingClient` `add_rules` and `delete_rules` methods ([1937](https://github.com/tweepy/tweepy/issues/1937))

Page 1 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.