Skip to content

4.6.0

Compare
Choose a tag to compare
@Harmon758 Harmon758 released this 24 Feb 21:01
· 253 commits to master since this release
e2cdc5e

This will be the last minor version to support Python 3.6 (#1788).

New Features / Improvements

  • Add support for streaming with Twitter API v2 (86244c1)
    • Refactor Client and Stream to inherit from new BaseClient and BaseStream classes and add StreamingClient, StreamResponse, and StreamRule
  • Add support for new max_results and pagination_token parameters for Client.get_liking_users (bdd6b55)
  • Add support for new max_results and pagination_token parameters for Client.get_retweeters (3479e56)
  • Add support for new sort_order parameter for Client.search_all_tweets (bd202e5)
  • Add support for new sort_order parameter for Client.search_recent_tweets (8b47170)
  • Add Client.get_space_tweets (c8d5d9a)
  • Add Space.subscriber_count (1ffc8cd)
  • Use repr of text in Tweet.__repr__ (4e2997e)
    • This avoids including inconstant newlines, rather than escaped newlines, in the string representation of the Tweet object, making it more consistent
  • Override Mapping.__contains__ in DataMapping (9f10a58)
    • This allows membership tests to check for existence within data in Twitter API v2 models, rather than existence of the attribute at all
  • Initialize Stream.session within Stream.__init__ (80adf5b)
    • Update the user agent based on Stream.user_agent even if Stream.session is already initialized
  • Use oauthlib to create code challenge and verifier for PKCE (eb22416)
    • Explicitly specify oauthlib dependency requirement as >= 3.2.0 (fc0d967)
      • Update requests_oauthlib dependency requirement to >= 1.2.0 (dd7e2c9)

Bug Fixes

  • Fix datetime endpoint parameter formatting in Client._make_request (#1793)

Misc

  • Remove undocumented debug function (a702325)
  • Add logging documentation (7701506)
  • Update and improve various documentation