Mastodon.py 2.2.2__tar.gz → 2.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (546) hide show
  1. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/CHANGELOG.rst +26 -2
  2. {mastodon_py-2.2.2 → mastodon_py-2.3.2/Mastodon.py.egg-info}/PKG-INFO +4 -2
  3. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/Mastodon.py.egg-info/SOURCES.txt +78 -0
  4. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/Mastodon.py.egg-info/requires.txt +3 -0
  5. {mastodon_py-2.2.2/Mastodon.py.egg-info → mastodon_py-2.3.2}/PKG-INFO +4 -2
  6. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/README.rst +1 -1
  7. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/01_general.rst +71 -15
  8. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/02_return_values.rst +77 -6
  9. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/10_streaming.rst +70 -2
  10. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/12_utilities.rst +2 -0
  11. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/15_everything.rst +104 -2
  12. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/conf.py +2 -2
  13. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/index.rst +1 -1
  14. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/Mastodon.py +7 -3
  15. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/__init__.py +3 -2
  16. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/accounts.py +24 -17
  17. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/admin.py +10 -5
  18. mastodon_py-2.3.2/mastodon/annual_reports.py +48 -0
  19. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/authentication.py +3 -2
  20. mastodon_py-2.3.2/mastodon/collections.py +121 -0
  21. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/compat.py +7 -0
  22. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/instance.py +4 -5
  23. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/internals.py +205 -147
  24. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/media.py +6 -3
  25. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/notifications.py +21 -8
  26. mastodon_py-2.3.2/mastodon/profile.py +74 -0
  27. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/reports.py +11 -3
  28. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/return_types.py +1330 -93
  29. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/search.py +12 -2
  30. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/statuses.py +5 -13
  31. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/streaming.py +200 -27
  32. mastodon_py-2.3.2/mastodon/streaming_endpoints.py +188 -0
  33. mastodon_py-2.3.2/mastodon/streaming_websocket.py +346 -0
  34. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/trends.py +8 -8
  35. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/types_base.py +228 -79
  36. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/utility.py +55 -12
  37. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/pyproject.toml +4 -1
  38. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account.yaml +22 -21
  39. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_block_unblock.yaml +31 -31
  40. mastodon_py-2.2.2/tests/cassettes/test_account_pin_unpin.yaml → mastodon_py-2.3.2/tests/cassettes/test_account_endorse_unendorse.yaml +79 -79
  41. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_familiar_followers.yaml +73 -73
  42. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_follow_unfollow.yaml +31 -30
  43. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_followers.yaml +18 -18
  44. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_following.yaml +17 -17
  45. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_lookup.yaml +49 -43
  46. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_mute_unmute.yaml +55 -59
  47. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_notes.yaml +20 -20
  48. mastodon_py-2.2.2/tests/cassettes/test_account_endorse_unendorse.yaml → mastodon_py-2.3.2/tests/cassettes/test_account_pin_unpin.yaml +80 -80
  49. mastodon_py-2.3.2/tests/cassettes/test_account_pinned.yaml +541 -0
  50. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_relationships.yaml +21 -21
  51. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_remove_from_followers.yaml +85 -83
  52. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_search.yaml +57 -57
  53. mastodon_py-2.3.2/tests/cassettes/test_account_statuses_exclude_direct.yaml +470 -0
  54. mastodon_py-2.3.2/tests/cassettes/test_account_update_credentials.yaml +2104 -0
  55. mastodon_py-2.2.2/tests/cassettes/test_account_update_credentials_no_header.yaml → mastodon_py-2.3.2/tests/cassettes/test_account_update_credentials_no_avatar.yaml +24 -22
  56. mastodon_py-2.2.2/tests/cassettes/test_account_update_credentials_no_avatar.yaml → mastodon_py-2.3.2/tests/cassettes/test_account_update_credentials_no_header.yaml +24 -22
  57. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_update_credentials_quote_policy.yaml +46 -41
  58. mastodon_py-2.3.2/tests/cassettes/test_account_update_credentials_source_and_privacy.yaml +204 -0
  59. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_update_credentials_too_many_fields.yaml +7 -7
  60. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_accounts.yaml +30 -30
  61. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_accounts.yaml +33 -31
  62. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_accounts_v1.yaml +33 -31
  63. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_accounts_v2.yaml +35 -35
  64. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_canonical_email_block.yaml +96 -96
  65. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_domain_blocks.yaml +51 -51
  66. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_email_domain_blocks.yaml +40 -40
  67. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_ip_blocks.yaml +59 -59
  68. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_moderation.yaml +252 -252
  69. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_reports.yaml +323 -130
  70. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_stats.yaml +25 -25
  71. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_trends.yaml +27 -27
  72. mastodon_py-2.3.2/tests/cassettes/test_annual_report_event.yaml +65 -0
  73. mastodon_py-2.3.2/tests/cassettes/test_annual_report_state_and_generate.yaml +122 -0
  74. mastodon_py-2.3.2/tests/cassettes/test_annual_reports.yaml +177 -0
  75. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_app_account_create.yaml +40 -40
  76. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_app_account_create_invalid.yaml +29 -29
  77. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_app_verify_credentials.yaml +9 -9
  78. mastodon_py-2.3.2/tests/cassettes/test_async_refresh_id_extraction[entity].yaml +59 -0
  79. mastodon_py-2.3.2/tests/cassettes/test_async_refresh_id_extraction[integer].yaml +59 -0
  80. mastodon_py-2.3.2/tests/cassettes/test_async_refresh_id_extraction[response].yaml +123 -0
  81. mastodon_py-2.3.2/tests/cassettes/test_async_refresh_id_extraction[string].yaml +59 -0
  82. mastodon_py-2.2.2/tests/cassettes/test_instance.yaml → mastodon_py-2.3.2/tests/cassettes/test_async_refresh_id_extraction_rejects_response_without_metadata.yaml +10 -10
  83. mastodon_py-2.3.2/tests/cassettes/test_attribute_access.yaml +138 -0
  84. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_auth_request_url.yaml +11 -11
  85. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_blocks.yaml +7 -7
  86. mastodon_py-2.3.2/tests/cassettes/test_bookmarks.yaml +464 -0
  87. mastodon_py-2.3.2/tests/cassettes/test_collection_item_add_delete.yaml +371 -0
  88. mastodon_py-2.3.2/tests/cassettes/test_collection_item_revoke.yaml +365 -0
  89. mastodon_py-2.3.2/tests/cassettes/test_collection_lifecycle.yaml +371 -0
  90. mastodon_py-2.3.2/tests/cassettes/test_collection_notification_fallback.yaml +501 -0
  91. mastodon_py-2.3.2/tests/cassettes/test_collections_offset_navigation[account_collections].yaml +685 -0
  92. mastodon_py-2.3.2/tests/cassettes/test_collections_offset_navigation[account_in_collections].yaml +684 -0
  93. mastodon_py-2.3.2/tests/cassettes/test_collections_page_iterator.yaml +496 -0
  94. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_conversations.yaml +75 -71
  95. mastodon_py-2.3.2/tests/cassettes/test_date_hook.yaml +138 -0
  96. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_directory.yaml +9 -9
  97. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_domain_block_unblock.yaml +14 -14
  98. mastodon_py-2.2.2/tests/cassettes/test_favourites.yaml → mastodon_py-2.3.2/tests/cassettes/test_domain_blocks.yaml +8 -8
  99. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_emoji.yaml +8 -8
  100. mastodon_py-2.3.2/tests/cassettes/test_favourites.yaml +61 -0
  101. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_featured_tags.yaml +51 -49
  102. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_featured_tags_2.yaml +59 -57
  103. mastodon_py-2.3.2/tests/cassettes/test_fetch_next_previous.yaml +1725 -0
  104. mastodon_py-2.3.2/tests/cassettes/test_fetch_next_previous_after_persist.yaml +1725 -0
  105. mastodon_py-2.3.2/tests/cassettes/test_fetch_next_previous_from_pagination_info.yaml +1725 -0
  106. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_fetch_remaining.yaml +803 -803
  107. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_follow_request_authorize.yaml +57 -55
  108. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_follow_request_reject.yaml +45 -43
  109. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_follow_requests.yaml +7 -7
  110. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_follow_suggestions.yaml +20 -20
  111. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_follow_with_notify_reblog.yaml +111 -111
  112. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_followed_hashtags.yaml +51 -51
  113. mastodon_py-2.3.2/tests/cassettes/test_get_pagination_info.yaml +1539 -0
  114. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_grouped_notification_pagination.yaml +296 -294
  115. mastodon_py-2.3.2/tests/cassettes/test_grouped_notifications.yaml +593 -0
  116. mastodon_py-2.3.2/tests/cassettes/test_grouped_notifications_page_iterator.yaml +459 -0
  117. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_hashtag_tl.yaml +47 -47
  118. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_health.yaml +6 -6
  119. mastodon_py-2.3.2/tests/cassettes/test_home_tl.yaml +249 -0
  120. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_home_tl_anonymous_throws.yaml +7 -7
  121. mastodon_py-2.3.2/tests/cassettes/test_id_hook.yaml +138 -0
  122. mastodon_py-2.3.2/tests/cassettes/test_id_hook_in_reply_to.yaml +274 -0
  123. mastodon_py-2.3.2/tests/cassettes/test_id_hook_within_reblog.yaml +281 -0
  124. mastodon_py-2.3.2/tests/cassettes/test_instance.yaml +66 -0
  125. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_activity.yaml +9 -9
  126. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_domain_blocks.yaml +7 -7
  127. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_extended_description.yaml +8 -8
  128. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_languages.yaml +16 -16
  129. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_peers.yaml +21 -21
  130. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_rules.yaml +8 -8
  131. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_v1.yaml +9 -9
  132. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_lang_for_errors.yaml +19 -19
  133. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_list_add_remove_account.yaml +123 -123
  134. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_list_by_account.yaml +59 -59
  135. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_list_create.yaml +22 -22
  136. mastodon_py-2.3.2/tests/cassettes/test_list_timeline.yaml +576 -0
  137. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_list_update.yaml +40 -40
  138. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_log_in_none.yaml +6 -6
  139. mastodon_py-2.3.2/tests/cassettes/test_markers.yaml +261 -0
  140. mastodon_py-2.3.2/tests/cassettes/test_media_post[False].yaml +35764 -0
  141. mastodon_py-2.3.2/tests/cassettes/test_media_post[True].yaml +35764 -0
  142. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_media_post_file.yaml +14 -14
  143. mastodon_py-2.3.2/tests/cassettes/test_media_post_multiple.yaml +1828 -0
  144. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_media_post_pathlib.yaml +15 -15
  145. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_media_update.yaml +35 -35
  146. mastodon_py-2.3.2/tests/cassettes/test_min_max_id.yaml +390 -0
  147. mastodon_py-2.3.2/tests/cassettes/test_min_max_id_datetimes.yaml +264 -0
  148. mastodon_py-2.3.2/tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl +0 -0
  149. mastodon_py-2.2.2/tests/cassettes/test_domain_blocks.yaml → mastodon_py-2.3.2/tests/cassettes/test_mutes.yaml +8 -8
  150. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_nodeinfo.yaml +17 -17
  151. mastodon_py-2.3.2/tests/cassettes/test_notification_requests_accept.yaml +1591 -0
  152. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications.yaml +64 -62
  153. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_clear.yaml +7 -7
  154. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_dismiss.yaml +40 -40
  155. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_exclude_and_types.yaml +54 -54
  156. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_exclude_types.yaml +31 -31
  157. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_mentions_only.yaml +42 -42
  158. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_policy.yaml +21 -21
  159. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_types.yaml +48 -48
  160. mastodon_py-2.3.2/tests/cassettes/test_offset_iteration.yaml +651 -0
  161. mastodon_py-2.3.2/tests/cassettes/test_offset_navigation.yaml +238 -0
  162. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_pagination_iterator.yaml +864 -864
  163. mastodon_py-2.3.2/tests/cassettes/test_pagination_page_iterator[False].yaml +415 -0
  164. mastodon_py-2.3.2/tests/cassettes/test_pagination_page_iterator[True].yaml +415 -0
  165. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_poll_illegal_vote.yaml +32 -32
  166. mastodon_py-2.3.2/tests/cassettes/test_poll_with_media.yaml +1268 -0
  167. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_polls.yaml +61 -61
  168. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_preferences.yaml +10 -10
  169. mastodon_py-2.3.2/tests/cassettes/test_profile.yaml +129 -0
  170. mastodon_py-2.3.2/tests/cassettes/test_profile_update.yaml +2306 -0
  171. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_public_tl.yaml +95 -79
  172. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_public_tl_anonymous.yaml +64 -57
  173. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_push_delete.yaml +22 -22
  174. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_push_set.yaml +20 -20
  175. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_push_set_all_events.yaml +11 -11
  176. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_push_update.yaml +55 -55
  177. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_push_update_all_events.yaml +20 -20
  178. mastodon_py-2.3.2/tests/cassettes/test_report.yaml +271 -0
  179. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_scheduled_status.yaml +71 -71
  180. mastodon_py-2.3.2/tests/cassettes/test_scheduled_status_datetimeobjects.pkl +0 -0
  181. mastodon_py-2.3.2/tests/cassettes/test_search.yaml +189 -0
  182. mastodon_py-2.3.2/tests/cassettes/test_search_offset_navigation[search].yaml +415 -0
  183. mastodon_py-2.3.2/tests/cassettes/test_search_offset_navigation[search_v2].yaml +415 -0
  184. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_server_time.yaml +33 -33
  185. mastodon_py-2.3.2/tests/cassettes/test_server_time_datetimeobjects.pkl +0 -0
  186. mastodon_py-2.3.2/tests/cassettes/test_status.yaml +202 -0
  187. mastodon_py-2.3.2/tests/cassettes/test_status_card.yaml +210 -0
  188. mastodon_py-2.3.2/tests/cassettes/test_status_context.yaml +197 -0
  189. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_delete_media.yaml +138 -126
  190. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_edit.yaml +64 -64
  191. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_empty.yaml +10 -10
  192. mastodon_py-2.3.2/tests/cassettes/test_status_fav_unfav.yaml +271 -0
  193. mastodon_py-2.3.2/tests/cassettes/test_status_favourited_by.yaml +271 -0
  194. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_missing.yaml +6 -6
  195. mastodon_py-2.3.2/tests/cassettes/test_status_mute_unmute.yaml +272 -0
  196. mastodon_py-2.3.2/tests/cassettes/test_status_pin_unpin.yaml +272 -0
  197. mastodon_py-2.3.2/tests/cassettes/test_status_post[Content warning-None].yaml +140 -0
  198. mastodon_py-2.3.2/tests/cassettes/test_status_post[Content warning-direct].yaml +140 -0
  199. mastodon_py-2.3.2/tests/cassettes/test_status_post[Content warning-private].yaml +140 -0
  200. mastodon_py-2.3.2/tests/cassettes/test_status_post[Content warning-public].yaml +140 -0
  201. mastodon_py-2.3.2/tests/cassettes/test_status_post[Content warning-unlisted].yaml +140 -0
  202. mastodon_py-2.3.2/tests/cassettes/test_status_post[None-None].yaml +138 -0
  203. mastodon_py-2.3.2/tests/cassettes/test_status_post[None-direct].yaml +138 -0
  204. mastodon_py-2.3.2/tests/cassettes/test_status_post[None-private].yaml +138 -0
  205. mastodon_py-2.3.2/tests/cassettes/test_status_post[None-public].yaml +138 -0
  206. mastodon_py-2.3.2/tests/cassettes/test_status_post[None-unlisted].yaml +138 -0
  207. mastodon_py-2.3.2/tests/cassettes/test_status_post_with_quote.yaml +288 -0
  208. mastodon_py-2.3.2/tests/cassettes/test_status_post_with_quote_approval_policy.yaml +208 -0
  209. mastodon_py-2.3.2/tests/cassettes/test_status_quote_approval_visibility.yaml +613 -0
  210. mastodon_py-2.3.2/tests/cassettes/test_status_quote_revoke.yaml +356 -0
  211. mastodon_py-2.3.2/tests/cassettes/test_status_quotes.yaml +197 -0
  212. mastodon_py-2.3.2/tests/cassettes/test_status_reblog_unreblog.yaml +277 -0
  213. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_reblog_visibility.yaml +77 -71
  214. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_reblogged_by.yaml +94 -88
  215. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_reply.yaml +58 -58
  216. mastodon_py-2.3.2/tests/cassettes/test_status_reply_with_quote.yaml +494 -0
  217. mastodon_py-2.3.2/tests/cassettes/test_status_translate.yaml +199 -0
  218. mastodon_py-2.3.2/tests/cassettes/test_status_update_quote_approval_policy.yaml +212 -0
  219. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_update_with_media_edit.yaml +70 -70
  220. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_stream_direct.yaml +83 -79
  221. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_stream_healthy.yaml +23 -23
  222. mastodon_py-2.3.2/tests/cassettes/test_stream_public_only_media.yaml +1508 -0
  223. mastodon_py-2.3.2/tests/cassettes/test_stream_user_direct.yaml +897 -0
  224. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_stream_user_local.yaml +73 -61
  225. mastodon_py-2.3.2/tests/cassettes/test_stream_user_shared_websocket.ws.yaml +19 -0
  226. mastodon_py-2.3.2/tests/cassettes/test_stream_user_shared_websocket.yaml +259 -0
  227. mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_hashtag[False].ws.yaml +32 -0
  228. mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_hashtag[False].yaml +391 -0
  229. mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_hashtag[True].ws.yaml +44 -0
  230. mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_hashtag[True].yaml +391 -0
  231. mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_only_media.ws.yaml +33 -0
  232. mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_only_media.yaml +1397 -0
  233. mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_subscribe_unsubscribe.ws.yaml +14 -0
  234. mastodon_py-2.2.2/tests/cassettes/test_verify_version.yaml → mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_subscribe_unsubscribe.yaml +29 -29
  235. mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_subscription_error.ws.yaml +12 -0
  236. mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_subscription_error.yaml +129 -0
  237. mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_unsubscribe_context_manager.ws.yaml +12 -0
  238. mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_unsubscribe_context_manager.yaml +129 -0
  239. mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_user_direct.ws.yaml +37 -0
  240. mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_user_direct.yaml +391 -0
  241. mastodon_py-2.3.2/tests/cassettes/test_suggested_tags.yaml +339 -0
  242. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_timeline_disabled.yaml +196 -123
  243. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_timeline_link_fails.yaml +17 -17
  244. mastodon_py-2.3.2/tests/cassettes/test_toot.yaml +138 -0
  245. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_translation_languages.yaml +8 -8
  246. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_trending_links.yaml +6 -6
  247. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_trending_statuses.yaml +7 -7
  248. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_trending_tags.yaml +14 -14
  249. mastodon_py-2.3.2/tests/cassettes/test_unauthed_home_tl_throws.yaml +196 -0
  250. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_v2_filters_keywords.yaml +68 -68
  251. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_v2_filters_statuses.yaml +92 -88
  252. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_verify_credentials.yaml +20 -20
  253. mastodon_py-2.3.2/tests/cassettes/test_verify_version.yaml +129 -0
  254. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_account.yaml +32 -28
  255. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_accountcreationerror.yaml +12 -12
  256. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_accountcreationerrordetails.yaml +12 -12
  257. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_accountfield.yaml +14 -13
  258. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_activity.yaml +24 -24
  259. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_announcement.yaml +81 -0
  260. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreport.yaml +194 -0
  261. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreportdatav1.yaml +94 -0
  262. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreportdatav2.yaml +102 -0
  263. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreportnameandcount.yaml +94 -0
  264. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreportpercentiles.yaml +94 -0
  265. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreportstate.yaml +78 -0
  266. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreporttimeseriesentryv1.yaml +94 -0
  267. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreporttimeseriesentryv2.yaml +102 -0
  268. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreporttopstatusesv1.yaml +94 -0
  269. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreporttopstatusesv2.yaml +102 -0
  270. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreporttypedistribution.yaml +94 -0
  271. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_application.yaml +7 -7
  272. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_collection.yaml +954 -0
  273. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_collectionitem.yaml +954 -0
  274. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_collections.yaml +190 -0
  275. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_collectionwithaccounts.yaml +131 -0
  276. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_context.yaml +19 -17
  277. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_conversation.yaml +731 -821
  278. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_credentialaccountsource.yaml +107 -0
  279. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_credentialaccountsource.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_credentialaccountstate.yaml +19 -16
  280. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_customemoji.yaml +17 -16
  281. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_domainblock.yaml +192 -120
  282. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_extendeddescription.yaml +135 -0
  283. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_familiarfollowers.yaml +16 -13
  284. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_featureapproval.yaml +103 -0
  285. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_featuredtag.yaml +6 -6
  286. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_filter.yaml +7 -7
  287. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_filterkeyword.yaml +6 -6
  288. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_filterresult.yaml +14 -13
  289. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_filterstatus.yaml +12 -12
  290. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_filterv2.yaml +7 -7
  291. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_groupednotificationsresults.yaml +291 -0
  292. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instance.yaml +32 -31
  293. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instancepollconfiguration.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instanceaccountconfiguration.yaml +108 -99
  294. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instanceconfiguration.yaml +32 -31
  295. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instanceregistrations.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instanceconfigurationv2.yaml +38 -34
  296. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instancethumbnail.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instancecontact.yaml +108 -99
  297. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instanceicon.yaml +38 -34
  298. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instanceusage.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instancemediaconfiguration.yaml +108 -99
  299. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instanceaccountconfiguration.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instancepollconfiguration.yaml +107 -98
  300. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instancev2.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instanceregistrations.yaml +37 -33
  301. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instancestatistics.yaml +32 -31
  302. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_ruletranslation.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instancestatusconfiguration.yaml +107 -98
  303. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instancestatusconfiguration.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instancethumbnail.yaml +107 -98
  304. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instancethumbnailversions.yaml +107 -98
  305. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instanceconfigurationv2.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instancetimelinesaccessconfiguration.yaml +37 -33
  306. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instancetranslationconfiguration.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instancetimelinesaccessfeedconfiguration.yaml +37 -33
  307. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instancetimelinesaccessconfiguration.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instancetranslationconfiguration.yaml +38 -34
  308. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instanceurls.yaml +64 -62
  309. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instanceurlsv2.yaml +37 -33
  310. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instanceusage.yaml +1315 -0
  311. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instancecontact.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instanceusageusers.yaml +107 -98
  312. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instancev2.yaml +447 -0
  313. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instancevapidkey.yaml +38 -34
  314. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_marker.yaml +6 -6
  315. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_mediaattachment.yaml +28 -26
  316. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_mediaattachmentcolors.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_mediaattachmentaudiometadata.yaml +15 -14
  317. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_mediaattachmentaudiometadata.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_mediaattachmentcolors.yaml +14 -13
  318. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_mediaattachmentfocuspoint.yaml +14 -13
  319. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_mediaattachmentimagemetadata.yaml +14 -13
  320. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_mediaattachmentmetadatacontainer.yaml +29 -27
  321. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_mediaattachmentvideometadata.yaml +29 -27
  322. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_nodeinfo.yaml +24 -21
  323. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_nodeinfosoftware.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_nodeinfometadata.yaml +24 -21
  324. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_nodeinfoservices.yaml +24 -21
  325. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_nodeinfousage.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_nodeinfosoftware.yaml +24 -21
  326. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_nodeinfometadata.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_nodeinfousage.yaml +25 -22
  327. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_nodeinfousageusers.yaml +25 -22
  328. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_notification.yaml +392 -353
  329. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_notificationgroup.yaml +291 -0
  330. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_notificationpolicy.yaml +10 -9
  331. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_notificationpolicysummary.yaml +10 -9
  332. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_oauthserverinfo.yaml +6 -6
  333. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_oauthuserinfo.yaml +11 -11
  334. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_partialaccountwithavatar.yaml +2800 -0
  335. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_poll.yaml +15 -14
  336. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_polloption.yaml +15 -14
  337. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_preferences.yaml +6 -6
  338. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_previewcard.yaml +84 -78
  339. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_previewcardauthor.yaml +91 -84
  340. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_profile.yaml +96 -0
  341. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_profilefield.yaml +96 -0
  342. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_quote.yaml +14 -12
  343. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_quoteapproval.yaml +16 -15
  344. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_reaction.yaml +81 -0
  345. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_relationship.yaml +7 -7
  346. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_role.yaml +18 -15
  347. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instanceusageusers.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_rule.yaml +107 -98
  348. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_ruletranslation.yaml +1315 -0
  349. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_scheduledstatus.yaml +22 -34
  350. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_scheduledstatusparams.yaml +22 -34
  351. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_searchv2.yaml +220 -222
  352. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_shallowquote.yaml +14 -12
  353. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_shallowtag.yaml +954 -0
  354. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_status.yaml +29 -27
  355. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_statusedit.yaml +40 -36
  356. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_statusmention.yaml +16 -15
  357. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_statussource.yaml +6 -6
  358. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_suggestion.yaml +1160 -0
  359. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_supportedlocale.yaml +17 -15
  360. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_tag.yaml +143 -142
  361. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_taghistory.yaml +143 -142
  362. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_termsofservice.yaml +16 -16
  363. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_trendinglinkhistory.yaml +267 -0
  364. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_unreadnotificationscount.yaml +10 -10
  365. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_userlist.yaml +7 -7
  366. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_webpushsubscriptionalerts.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_webpushsubscription.yaml +11 -11
  367. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_webpushsubscription.yaml → mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_webpushsubscriptionalerts.yaml +10 -10
  368. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_wrappedannualreports.yaml +194 -0
  369. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_wrappedcollection.yaml +954 -0
  370. mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_wrappedcollectionitem.yaml +131 -0
  371. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/conftest.py +18 -1
  372. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/run_mastodon_for_tests.sh +5 -1
  373. mastodon_py-2.3.2/tests/seed_annual_report.rb +14 -0
  374. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/setup.sql +11 -0
  375. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_account.py +62 -21
  376. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_admin.py +9 -0
  377. mastodon_py-2.3.2/tests/test_annual_reports.py +46 -0
  378. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_async_refresh.py +29 -0
  379. mastodon_py-2.3.2/tests/test_collections.py +155 -0
  380. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_entities.py +414 -26
  381. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_lists.py +1 -1
  382. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_media.py +39 -2
  383. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_notifications.py +9 -5
  384. mastodon_py-2.3.2/tests/test_pagination.py +364 -0
  385. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_polls.py +14 -0
  386. mastodon_py-2.3.2/tests/test_profile.py +110 -0
  387. mastodon_py-2.3.2/tests/test_ratelimit.py +157 -0
  388. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_status.py +4 -4
  389. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_streaming.py +170 -31
  390. mastodon_py-2.3.2/tests/test_streaming_websocket.py +287 -0
  391. mastodon_py-2.3.2/tests/test_types_base.py +265 -0
  392. mastodon_py-2.3.2/tests/test_websocket_cassette.py +80 -0
  393. mastodon_py-2.3.2/tests/websocket_cassette.py +172 -0
  394. mastodon_py-2.2.2/mastodon/streaming_endpoints.py +0 -103
  395. mastodon_py-2.2.2/tests/cassettes/test_account_pinned.yaml +0 -525
  396. mastodon_py-2.2.2/tests/cassettes/test_account_update_credentials.yaml +0 -2093
  397. mastodon_py-2.2.2/tests/cassettes/test_account_update_credentials_source_and_privacy.yaml +0 -69
  398. mastodon_py-2.2.2/tests/cassettes/test_attribute_access.yaml +0 -134
  399. mastodon_py-2.2.2/tests/cassettes/test_bookmarks.yaml +0 -452
  400. mastodon_py-2.2.2/tests/cassettes/test_date_hook.yaml +0 -134
  401. mastodon_py-2.2.2/tests/cassettes/test_fetch_next_previous.yaml +0 -1653
  402. mastodon_py-2.2.2/tests/cassettes/test_fetch_next_previous_after_persist.yaml +0 -1653
  403. mastodon_py-2.2.2/tests/cassettes/test_fetch_next_previous_from_pagination_info.yaml +0 -1653
  404. mastodon_py-2.2.2/tests/cassettes/test_get_pagination_info.yaml +0 -1487
  405. mastodon_py-2.2.2/tests/cassettes/test_grouped_notifications.yaml +0 -580
  406. mastodon_py-2.2.2/tests/cassettes/test_home_tl.yaml +0 -237
  407. mastodon_py-2.2.2/tests/cassettes/test_id_hook.yaml +0 -134
  408. mastodon_py-2.2.2/tests/cassettes/test_id_hook_in_reply_to.yaml +0 -266
  409. mastodon_py-2.2.2/tests/cassettes/test_id_hook_within_reblog.yaml +0 -269
  410. mastodon_py-2.2.2/tests/cassettes/test_list_timeline.yaml +0 -589
  411. mastodon_py-2.2.2/tests/cassettes/test_markers.yaml +0 -257
  412. mastodon_py-2.2.2/tests/cassettes/test_media_post[False].yaml +0 -35756
  413. mastodon_py-2.2.2/tests/cassettes/test_media_post[True].yaml +0 -35760
  414. mastodon_py-2.2.2/tests/cassettes/test_media_post_multiple.yaml +0 -1824
  415. mastodon_py-2.2.2/tests/cassettes/test_min_max_id.yaml +0 -382
  416. mastodon_py-2.2.2/tests/cassettes/test_min_max_id_datetimes.yaml +0 -258
  417. mastodon_py-2.2.2/tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl +0 -0
  418. mastodon_py-2.2.2/tests/cassettes/test_mutes.yaml +0 -62
  419. mastodon_py-2.2.2/tests/cassettes/test_notification_requests_accept.yaml +0 -1556
  420. mastodon_py-2.2.2/tests/cassettes/test_report.yaml +0 -263
  421. mastodon_py-2.2.2/tests/cassettes/test_scheduled_status_datetimeobjects.pkl +0 -0
  422. mastodon_py-2.2.2/tests/cassettes/test_search.yaml +0 -185
  423. mastodon_py-2.2.2/tests/cassettes/test_server_time_datetimeobjects.pkl +0 -0
  424. mastodon_py-2.2.2/tests/cassettes/test_status.yaml +0 -196
  425. mastodon_py-2.2.2/tests/cassettes/test_status_card.yaml +0 -204
  426. mastodon_py-2.2.2/tests/cassettes/test_status_context.yaml +0 -193
  427. mastodon_py-2.2.2/tests/cassettes/test_status_fav_unfav.yaml +0 -263
  428. mastodon_py-2.2.2/tests/cassettes/test_status_favourited_by.yaml +0 -263
  429. mastodon_py-2.2.2/tests/cassettes/test_status_mute_unmute.yaml +0 -264
  430. mastodon_py-2.2.2/tests/cassettes/test_status_pin_unpin.yaml +0 -264
  431. mastodon_py-2.2.2/tests/cassettes/test_status_post[Content warning-None].yaml +0 -136
  432. mastodon_py-2.2.2/tests/cassettes/test_status_post[Content warning-direct].yaml +0 -136
  433. mastodon_py-2.2.2/tests/cassettes/test_status_post[Content warning-private].yaml +0 -136
  434. mastodon_py-2.2.2/tests/cassettes/test_status_post[Content warning-public].yaml +0 -136
  435. mastodon_py-2.2.2/tests/cassettes/test_status_post[Content warning-unlisted].yaml +0 -136
  436. mastodon_py-2.2.2/tests/cassettes/test_status_post[None-None].yaml +0 -134
  437. mastodon_py-2.2.2/tests/cassettes/test_status_post[None-direct].yaml +0 -134
  438. mastodon_py-2.2.2/tests/cassettes/test_status_post[None-private].yaml +0 -134
  439. mastodon_py-2.2.2/tests/cassettes/test_status_post[None-public].yaml +0 -134
  440. mastodon_py-2.2.2/tests/cassettes/test_status_post[None-unlisted].yaml +0 -134
  441. mastodon_py-2.2.2/tests/cassettes/test_status_post_with_quote.yaml +0 -276
  442. mastodon_py-2.2.2/tests/cassettes/test_status_post_with_quote_approval_policy.yaml +0 -202
  443. mastodon_py-2.2.2/tests/cassettes/test_status_quote_approval_visibility.yaml +0 -597
  444. mastodon_py-2.2.2/tests/cassettes/test_status_quote_revoke.yaml +0 -348
  445. mastodon_py-2.2.2/tests/cassettes/test_status_quotes.yaml +0 -193
  446. mastodon_py-2.2.2/tests/cassettes/test_status_reblog_unreblog.yaml +0 -267
  447. mastodon_py-2.2.2/tests/cassettes/test_status_reply_with_quote.yaml +0 -476
  448. mastodon_py-2.2.2/tests/cassettes/test_status_translate.yaml +0 -195
  449. mastodon_py-2.2.2/tests/cassettes/test_status_update_quote_approval_policy.yaml +0 -206
  450. mastodon_py-2.2.2/tests/cassettes/test_stream_user_direct.yaml +0 -859
  451. mastodon_py-2.2.2/tests/cassettes/test_suggested_tags.yaml +0 -196
  452. mastodon_py-2.2.2/tests/cassettes/test_toot.yaml +0 -134
  453. mastodon_py-2.2.2/tests/cassettes/test_unauthed_home_tl_throws.yaml +0 -192
  454. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_announcement.yaml +0 -97
  455. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_extendeddescription.yaml +0 -103
  456. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_groupednotificationsresults.yaml +0 -289
  457. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instancemediaconfiguration.yaml +0 -1306
  458. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instancetimelinesaccessfeedconfiguration.yaml +0 -443
  459. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_notificationgroup.yaml +0 -289
  460. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_partialaccountwithavatar.yaml +0 -2314
  461. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_reaction.yaml +0 -97
  462. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_rule.yaml +0 -1306
  463. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_suggestion.yaml +0 -1100
  464. mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_trendinglinkhistory.yaml +0 -248
  465. mastodon_py-2.2.2/tests/test_pagination.py +0 -169
  466. mastodon_py-2.2.2/tests/test_types_base.py +0 -110
  467. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/LICENSE +0 -0
  468. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/MANIFEST.in +0 -0
  469. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/Mastodon.py.egg-info/dependency_links.txt +0 -0
  470. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/Mastodon.py.egg-info/top_level.txt +0 -0
  471. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/03_errors.rst +0 -0
  472. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/04_auth.rst +0 -0
  473. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/05_statuses.rst +0 -0
  474. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/06_accounts.rst +0 -0
  475. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/07_timelines.rst +0 -0
  476. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/08_instances.rst +0 -0
  477. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/09_notifications.rst +0 -0
  478. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/11_misc.rst +0 -0
  479. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/13_admin.rst +0 -0
  480. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/14_contributing.rst +0 -0
  481. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/Makefile +0 -0
  482. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/update_everything_page.sh +0 -0
  483. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/_url_regex.py +0 -0
  484. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/async_refresh.py +0 -0
  485. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/conversations.py +0 -0
  486. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/defaults.py +0 -0
  487. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/endorsements.py +0 -0
  488. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/errors.py +0 -0
  489. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/favourites.py +0 -0
  490. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/filters.py +0 -0
  491. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/hashtags.py +0 -0
  492. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/lists.py +0 -0
  493. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/polls.py +0 -0
  494. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/preferences.py +0 -0
  495. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/push.py +0 -0
  496. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/py.typed +0 -0
  497. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/relationships.py +0 -0
  498. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/suggestions.py +0 -0
  499. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/timeline.py +0 -0
  500. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/versions.py +0 -0
  501. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/setup.cfg +0 -0
  502. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/setup.py +0 -0
  503. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/README.markdown +0 -0
  504. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/__init__.py +0 -0
  505. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/amewatson.jpg +0 -0
  506. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_accountcreationerrordetailsfield.yaml +0 -0
  507. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_old_pagination/test_fetch_next_previous.yaml +0 -0
  508. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_old_pagination/test_fetch_next_previous_from_pagination_info.yaml +0 -0
  509. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_2_9_2/test_notifications_dismiss.yaml +0 -0
  510. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_2_9_2/test_search.yaml +0 -0
  511. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_2_9_2/test_status_card.yaml +0 -0
  512. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_0_0/test_filter_clientside.yaml +0 -0
  513. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_0_0/test_filter_create.yaml +0 -0
  514. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_0_0/test_filter_serverside.yaml +0 -0
  515. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_0_0/test_filter_update.yaml +0 -0
  516. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_0_0/test_media_post.yaml +0 -0
  517. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_4_0/test_log_in_password.yaml +0 -0
  518. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_4_0/test_log_in_password_incorrect.yaml +0 -0
  519. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_4_0/test_log_in_password_to_file.yaml +0 -0
  520. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_4_0/test_zzz_revoke.yaml +0 -0
  521. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_special/test_scheduled_status_long_datetimeobjects.pkl +0 -0
  522. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_special/test_scheduled_status_long_part1.yaml +0 -0
  523. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_special/test_scheduled_status_long_part2.yaml +0 -0
  524. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_special/test_scheduled_status_long_text.pkl +0 -0
  525. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/image.jpg +0 -0
  526. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_auth.py +0 -0
  527. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_blurhash.py +0 -0
  528. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_bookmarks.py +0 -0
  529. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_constructor.py +0 -0
  530. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_create_app.py +0 -0
  531. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_domain_blocks.py +0 -0
  532. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_errors.py +0 -0
  533. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_filters.py +0 -0
  534. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_follow_requests.py +0 -0
  535. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_hooks.py +0 -0
  536. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_instance.py +0 -0
  537. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_markers.py +0 -0
  538. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_push.py +0 -0
  539. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_quotes.py +0 -0
  540. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_reports.py +0 -0
  541. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_search.py +0 -0
  542. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_status_length.py +0 -0
  543. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_timeline.py +0 -0
  544. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_trends.py +0 -0
  545. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_zzz_revoke.py +0 -0
  546. {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/video.mp4 +0 -0
@@ -2,8 +2,33 @@ A note on versioning: This librarys major version will grow with the APIs
2
2
  version number. Breaking changes will be indicated by a change in the minor
3
3
  (or major) version number, and will generally be avoided.
4
4
 
5
+ v2.3.2
6
+ ------
7
+ * Bump support level to 4.7.3, update return types with newly added fields
8
+ * Fix stream error handlers raising a tuple instead of an exception (Thanks @dylanpulver )
9
+ * Fix logic issue in version check code that prevented correct functioning on Pixelfed (Thanks @gunchleoc , and @xsuchy for the report)
10
+ * Fix issue with ratelimit code that could lead to crashes in some circumstances (Thanks @xsuchy for the report)
11
+ * Cache type hints for massively improved performance (Thanks @toelke for the suggestion)
12
+ * Make MaybeSnowflakeIDs sortable (Thanks @haraldg for the report and suggestion)
13
+ * Improve error handling for media uploads (Thanks @aescling for the suggestion)
14
+ * Fix timestamp parsing for Pleromalike Flake IDs
15
+ * 4.6 support: Add `supported_types` to notification related endpoints
16
+ * 4.6 support: Add `exclude_direct` to `account_statuses`
17
+ * 4.6 support: Add `collection_ids` to `report`
18
+ * 4.6 support: Add `unresolved` to `admin_reports`
19
+ * 4.6 support: Add avatar and header description parameters to `account_update_credentials`
20
+ * 4.6 support: Add new profile editing API support: `profile` and `profile_update`
21
+ * 4.6 support: Add collections support: `collection_create`, `collection`, `account_collections`, `account_in_collections`, `collection_update`, `collection_delete`, `collection_item_add`, `collection_item_delete`, and `collection_item_revoke`
22
+ * 4.6 support: Add annual reports / year in review support: `annual_reports`, `annual_report`, `annual_report_state`, `annual_report_read`, and `annual_report_generate`, including previously unsupported endpoints introduced in 4.3 and 4.4
23
+ * Allow status creation with both media attachments and a poll, as supported by Mastodon 4.6 and newer
24
+ * Various small bug and documentation fixes
25
+ * Add `only_media` support for streams
26
+ * Add support for websocket streaming: `stream_open_websocket` and a new handle class
27
+ * Tests: Streaming test recording now works on newer Python versions
28
+ * Better pagination support: Endpoints that use offset/limit pagination are now supported generally, and `fetch_next()`, `fetch_previous()`, and the newly added `pagination_page_iterator()` can be used to navigate through responses for endpoints that use a wrapper object with a nested list.
29
+
5
30
  v2.2.2
6
- -------
31
+ ------
7
32
  * Improve instance information caching
8
33
  * Add a function to check whether a given timeline is available on an instance (Thanks @pdeitel for the report that triggered this)
9
34
  * Add warnings when a user tries to access the stream for a deprecated timeline (Thanks @pdeitel for the report that triggered this)
@@ -513,4 +538,3 @@ v.1.0.1
513
538
  v.1.0.0
514
539
  -------
515
540
  * Initial Release
516
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Mastodon.py
3
- Version: 2.2.2
3
+ Version: 2.3.2
4
4
  Summary: Python wrapper for the Mastodon API
5
5
  Author-email: Lorenz Diener <lorenzd+mastodonpypypi@gmail.com>
6
6
  License: MIT
@@ -21,6 +21,8 @@ Requires-Dist: decorator>=4.0.0
21
21
  Provides-Extra: webpush
22
22
  Requires-Dist: http_ece>=1.0.5; extra == "webpush"
23
23
  Requires-Dist: cryptography>=1.6.0; extra == "webpush"
24
+ Provides-Extra: websocket-streaming
25
+ Requires-Dist: websocket-client>=1.0.0; extra == "websocket-streaming"
24
26
  Provides-Extra: blurhash
25
27
  Requires-Dist: blurhash>=1.1.4; extra == "blurhash"
26
28
  Provides-Extra: grapheme
@@ -52,7 +54,7 @@ Dynamic: license-file
52
54
  Mastodon.py
53
55
  ===========
54
56
  Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API.
55
- Feature complete for public API as of Mastodon version 4.5.8 and easy to get started with:
57
+ Feature complete for public API as of Mastodon version 4.7.3 and easy to get started with:
56
58
 
57
59
  .. code-block:: python
58
60
 
@@ -33,8 +33,10 @@ mastodon/__init__.py
33
33
  mastodon/_url_regex.py
34
34
  mastodon/accounts.py
35
35
  mastodon/admin.py
36
+ mastodon/annual_reports.py
36
37
  mastodon/async_refresh.py
37
38
  mastodon/authentication.py
39
+ mastodon/collections.py
38
40
  mastodon/compat.py
39
41
  mastodon/conversations.py
40
42
  mastodon/defaults.py
@@ -50,6 +52,7 @@ mastodon/media.py
50
52
  mastodon/notifications.py
51
53
  mastodon/polls.py
52
54
  mastodon/preferences.py
55
+ mastodon/profile.py
53
56
  mastodon/push.py
54
57
  mastodon/py.typed
55
58
  mastodon/relationships.py
@@ -59,6 +62,7 @@ mastodon/search.py
59
62
  mastodon/statuses.py
60
63
  mastodon/streaming.py
61
64
  mastodon/streaming_endpoints.py
65
+ mastodon/streaming_websocket.py
62
66
  mastodon/suggestions.py
63
67
  mastodon/timeline.py
64
68
  mastodon/trends.py
@@ -71,13 +75,16 @@ tests/amewatson.jpg
71
75
  tests/conftest.py
72
76
  tests/image.jpg
73
77
  tests/run_mastodon_for_tests.sh
78
+ tests/seed_annual_report.rb
74
79
  tests/setup.sql
75
80
  tests/test_account.py
76
81
  tests/test_admin.py
82
+ tests/test_annual_reports.py
77
83
  tests/test_async_refresh.py
78
84
  tests/test_auth.py
79
85
  tests/test_blurhash.py
80
86
  tests/test_bookmarks.py
87
+ tests/test_collections.py
81
88
  tests/test_constructor.py
82
89
  tests/test_create_app.py
83
90
  tests/test_domain_blocks.py
@@ -93,18 +100,23 @@ tests/test_media.py
93
100
  tests/test_notifications.py
94
101
  tests/test_pagination.py
95
102
  tests/test_polls.py
103
+ tests/test_profile.py
96
104
  tests/test_push.py
97
105
  tests/test_quotes.py
106
+ tests/test_ratelimit.py
98
107
  tests/test_reports.py
99
108
  tests/test_search.py
100
109
  tests/test_status.py
101
110
  tests/test_status_length.py
102
111
  tests/test_streaming.py
112
+ tests/test_streaming_websocket.py
103
113
  tests/test_timeline.py
104
114
  tests/test_trends.py
105
115
  tests/test_types_base.py
116
+ tests/test_websocket_cassette.py
106
117
  tests/test_zzz_revoke.py
107
118
  tests/video.mp4
119
+ tests/websocket_cassette.py
108
120
  tests/cassettes/test_account.yaml
109
121
  tests/cassettes/test_account_block_unblock.yaml
110
122
  tests/cassettes/test_account_endorse_unendorse.yaml
@@ -120,6 +132,7 @@ tests/cassettes/test_account_pinned.yaml
120
132
  tests/cassettes/test_account_relationships.yaml
121
133
  tests/cassettes/test_account_remove_from_followers.yaml
122
134
  tests/cassettes/test_account_search.yaml
135
+ tests/cassettes/test_account_statuses_exclude_direct.yaml
123
136
  tests/cassettes/test_account_update_credentials.yaml
124
137
  tests/cassettes/test_account_update_credentials_no_avatar.yaml
125
138
  tests/cassettes/test_account_update_credentials_no_header.yaml
@@ -138,13 +151,28 @@ tests/cassettes/test_admin_moderation.yaml
138
151
  tests/cassettes/test_admin_reports.yaml
139
152
  tests/cassettes/test_admin_stats.yaml
140
153
  tests/cassettes/test_admin_trends.yaml
154
+ tests/cassettes/test_annual_report_event.yaml
155
+ tests/cassettes/test_annual_report_state_and_generate.yaml
156
+ tests/cassettes/test_annual_reports.yaml
141
157
  tests/cassettes/test_app_account_create.yaml
142
158
  tests/cassettes/test_app_account_create_invalid.yaml
143
159
  tests/cassettes/test_app_verify_credentials.yaml
160
+ tests/cassettes/test_async_refresh_id_extraction[entity].yaml
161
+ tests/cassettes/test_async_refresh_id_extraction[integer].yaml
162
+ tests/cassettes/test_async_refresh_id_extraction[response].yaml
163
+ tests/cassettes/test_async_refresh_id_extraction[string].yaml
164
+ tests/cassettes/test_async_refresh_id_extraction_rejects_response_without_metadata.yaml
144
165
  tests/cassettes/test_attribute_access.yaml
145
166
  tests/cassettes/test_auth_request_url.yaml
146
167
  tests/cassettes/test_blocks.yaml
147
168
  tests/cassettes/test_bookmarks.yaml
169
+ tests/cassettes/test_collection_item_add_delete.yaml
170
+ tests/cassettes/test_collection_item_revoke.yaml
171
+ tests/cassettes/test_collection_lifecycle.yaml
172
+ tests/cassettes/test_collection_notification_fallback.yaml
173
+ tests/cassettes/test_collections_offset_navigation[account_collections].yaml
174
+ tests/cassettes/test_collections_offset_navigation[account_in_collections].yaml
175
+ tests/cassettes/test_collections_page_iterator.yaml
148
176
  tests/cassettes/test_conversations.yaml
149
177
  tests/cassettes/test_date_hook.yaml
150
178
  tests/cassettes/test_directory.yaml
@@ -167,6 +195,7 @@ tests/cassettes/test_followed_hashtags.yaml
167
195
  tests/cassettes/test_get_pagination_info.yaml
168
196
  tests/cassettes/test_grouped_notification_pagination.yaml
169
197
  tests/cassettes/test_grouped_notifications.yaml
198
+ tests/cassettes/test_grouped_notifications_page_iterator.yaml
170
199
  tests/cassettes/test_hashtag_tl.yaml
171
200
  tests/cassettes/test_health.yaml
172
201
  tests/cassettes/test_home_tl.yaml
@@ -210,10 +239,17 @@ tests/cassettes/test_notifications_exclude_types.yaml
210
239
  tests/cassettes/test_notifications_mentions_only.yaml
211
240
  tests/cassettes/test_notifications_policy.yaml
212
241
  tests/cassettes/test_notifications_types.yaml
242
+ tests/cassettes/test_offset_iteration.yaml
243
+ tests/cassettes/test_offset_navigation.yaml
213
244
  tests/cassettes/test_pagination_iterator.yaml
245
+ tests/cassettes/test_pagination_page_iterator[False].yaml
246
+ tests/cassettes/test_pagination_page_iterator[True].yaml
214
247
  tests/cassettes/test_poll_illegal_vote.yaml
248
+ tests/cassettes/test_poll_with_media.yaml
215
249
  tests/cassettes/test_polls.yaml
216
250
  tests/cassettes/test_preferences.yaml
251
+ tests/cassettes/test_profile.yaml
252
+ tests/cassettes/test_profile_update.yaml
217
253
  tests/cassettes/test_public_tl.yaml
218
254
  tests/cassettes/test_public_tl_anonymous.yaml
219
255
  tests/cassettes/test_push_delete.yaml
@@ -225,6 +261,8 @@ tests/cassettes/test_report.yaml
225
261
  tests/cassettes/test_scheduled_status.yaml
226
262
  tests/cassettes/test_scheduled_status_datetimeobjects.pkl
227
263
  tests/cassettes/test_search.yaml
264
+ tests/cassettes/test_search_offset_navigation[search].yaml
265
+ tests/cassettes/test_search_offset_navigation[search_v2].yaml
228
266
  tests/cassettes/test_server_time.yaml
229
267
  tests/cassettes/test_server_time_datetimeobjects.pkl
230
268
  tests/cassettes/test_status.yaml
@@ -263,8 +301,25 @@ tests/cassettes/test_status_update_quote_approval_policy.yaml
263
301
  tests/cassettes/test_status_update_with_media_edit.yaml
264
302
  tests/cassettes/test_stream_direct.yaml
265
303
  tests/cassettes/test_stream_healthy.yaml
304
+ tests/cassettes/test_stream_public_only_media.yaml
266
305
  tests/cassettes/test_stream_user_direct.yaml
267
306
  tests/cassettes/test_stream_user_local.yaml
307
+ tests/cassettes/test_stream_user_shared_websocket.ws.yaml
308
+ tests/cassettes/test_stream_user_shared_websocket.yaml
309
+ tests/cassettes/test_stream_websocket_hashtag[False].ws.yaml
310
+ tests/cassettes/test_stream_websocket_hashtag[False].yaml
311
+ tests/cassettes/test_stream_websocket_hashtag[True].ws.yaml
312
+ tests/cassettes/test_stream_websocket_hashtag[True].yaml
313
+ tests/cassettes/test_stream_websocket_only_media.ws.yaml
314
+ tests/cassettes/test_stream_websocket_only_media.yaml
315
+ tests/cassettes/test_stream_websocket_subscribe_unsubscribe.ws.yaml
316
+ tests/cassettes/test_stream_websocket_subscribe_unsubscribe.yaml
317
+ tests/cassettes/test_stream_websocket_subscription_error.ws.yaml
318
+ tests/cassettes/test_stream_websocket_subscription_error.yaml
319
+ tests/cassettes/test_stream_websocket_unsubscribe_context_manager.ws.yaml
320
+ tests/cassettes/test_stream_websocket_unsubscribe_context_manager.yaml
321
+ tests/cassettes/test_stream_websocket_user_direct.ws.yaml
322
+ tests/cassettes/test_stream_websocket_user_direct.yaml
268
323
  tests/cassettes/test_suggested_tags.yaml
269
324
  tests/cassettes/test_timeline_disabled.yaml
270
325
  tests/cassettes/test_timeline_link_fails.yaml
@@ -285,14 +340,31 @@ tests/cassettes_entity_tests/test_entity_accountcreationerrordetailsfield.yaml
285
340
  tests/cassettes_entity_tests/test_entity_accountfield.yaml
286
341
  tests/cassettes_entity_tests/test_entity_activity.yaml
287
342
  tests/cassettes_entity_tests/test_entity_announcement.yaml
343
+ tests/cassettes_entity_tests/test_entity_annualreport.yaml
344
+ tests/cassettes_entity_tests/test_entity_annualreportdatav1.yaml
345
+ tests/cassettes_entity_tests/test_entity_annualreportdatav2.yaml
346
+ tests/cassettes_entity_tests/test_entity_annualreportnameandcount.yaml
347
+ tests/cassettes_entity_tests/test_entity_annualreportpercentiles.yaml
348
+ tests/cassettes_entity_tests/test_entity_annualreportstate.yaml
349
+ tests/cassettes_entity_tests/test_entity_annualreporttimeseriesentryv1.yaml
350
+ tests/cassettes_entity_tests/test_entity_annualreporttimeseriesentryv2.yaml
351
+ tests/cassettes_entity_tests/test_entity_annualreporttopstatusesv1.yaml
352
+ tests/cassettes_entity_tests/test_entity_annualreporttopstatusesv2.yaml
353
+ tests/cassettes_entity_tests/test_entity_annualreporttypedistribution.yaml
288
354
  tests/cassettes_entity_tests/test_entity_application.yaml
355
+ tests/cassettes_entity_tests/test_entity_collection.yaml
356
+ tests/cassettes_entity_tests/test_entity_collectionitem.yaml
357
+ tests/cassettes_entity_tests/test_entity_collections.yaml
358
+ tests/cassettes_entity_tests/test_entity_collectionwithaccounts.yaml
289
359
  tests/cassettes_entity_tests/test_entity_context.yaml
290
360
  tests/cassettes_entity_tests/test_entity_conversation.yaml
291
361
  tests/cassettes_entity_tests/test_entity_credentialaccountsource.yaml
362
+ tests/cassettes_entity_tests/test_entity_credentialaccountstate.yaml
292
363
  tests/cassettes_entity_tests/test_entity_customemoji.yaml
293
364
  tests/cassettes_entity_tests/test_entity_domainblock.yaml
294
365
  tests/cassettes_entity_tests/test_entity_extendeddescription.yaml
295
366
  tests/cassettes_entity_tests/test_entity_familiarfollowers.yaml
367
+ tests/cassettes_entity_tests/test_entity_featureapproval.yaml
296
368
  tests/cassettes_entity_tests/test_entity_featuredtag.yaml
297
369
  tests/cassettes_entity_tests/test_entity_filter.yaml
298
370
  tests/cassettes_entity_tests/test_entity_filterkeyword.yaml
@@ -348,6 +420,8 @@ tests/cassettes_entity_tests/test_entity_polloption.yaml
348
420
  tests/cassettes_entity_tests/test_entity_preferences.yaml
349
421
  tests/cassettes_entity_tests/test_entity_previewcard.yaml
350
422
  tests/cassettes_entity_tests/test_entity_previewcardauthor.yaml
423
+ tests/cassettes_entity_tests/test_entity_profile.yaml
424
+ tests/cassettes_entity_tests/test_entity_profilefield.yaml
351
425
  tests/cassettes_entity_tests/test_entity_quote.yaml
352
426
  tests/cassettes_entity_tests/test_entity_quoteapproval.yaml
353
427
  tests/cassettes_entity_tests/test_entity_reaction.yaml
@@ -359,6 +433,7 @@ tests/cassettes_entity_tests/test_entity_scheduledstatus.yaml
359
433
  tests/cassettes_entity_tests/test_entity_scheduledstatusparams.yaml
360
434
  tests/cassettes_entity_tests/test_entity_searchv2.yaml
361
435
  tests/cassettes_entity_tests/test_entity_shallowquote.yaml
436
+ tests/cassettes_entity_tests/test_entity_shallowtag.yaml
362
437
  tests/cassettes_entity_tests/test_entity_status.yaml
363
438
  tests/cassettes_entity_tests/test_entity_statusedit.yaml
364
439
  tests/cassettes_entity_tests/test_entity_statusmention.yaml
@@ -373,6 +448,9 @@ tests/cassettes_entity_tests/test_entity_unreadnotificationscount.yaml
373
448
  tests/cassettes_entity_tests/test_entity_userlist.yaml
374
449
  tests/cassettes_entity_tests/test_entity_webpushsubscription.yaml
375
450
  tests/cassettes_entity_tests/test_entity_webpushsubscriptionalerts.yaml
451
+ tests/cassettes_entity_tests/test_entity_wrappedannualreports.yaml
452
+ tests/cassettes_entity_tests/test_entity_wrappedcollection.yaml
453
+ tests/cassettes_entity_tests/test_entity_wrappedcollectionitem.yaml
376
454
  tests/cassettes_old_pagination/test_fetch_next_previous.yaml
377
455
  tests/cassettes_old_pagination/test_fetch_next_previous_from_pagination_info.yaml
378
456
  tests/cassettes_pre_2_9_2/test_notifications_dismiss.yaml
@@ -41,3 +41,6 @@ pytz
41
41
  [webpush]
42
42
  http_ece>=1.0.5
43
43
  cryptography>=1.6.0
44
+
45
+ [websocket_streaming]
46
+ websocket-client>=1.0.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Mastodon.py
3
- Version: 2.2.2
3
+ Version: 2.3.2
4
4
  Summary: Python wrapper for the Mastodon API
5
5
  Author-email: Lorenz Diener <lorenzd+mastodonpypypi@gmail.com>
6
6
  License: MIT
@@ -21,6 +21,8 @@ Requires-Dist: decorator>=4.0.0
21
21
  Provides-Extra: webpush
22
22
  Requires-Dist: http_ece>=1.0.5; extra == "webpush"
23
23
  Requires-Dist: cryptography>=1.6.0; extra == "webpush"
24
+ Provides-Extra: websocket-streaming
25
+ Requires-Dist: websocket-client>=1.0.0; extra == "websocket-streaming"
24
26
  Provides-Extra: blurhash
25
27
  Requires-Dist: blurhash>=1.1.4; extra == "blurhash"
26
28
  Provides-Extra: grapheme
@@ -52,7 +54,7 @@ Dynamic: license-file
52
54
  Mastodon.py
53
55
  ===========
54
56
  Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API.
55
- Feature complete for public API as of Mastodon version 4.5.8 and easy to get started with:
57
+ Feature complete for public API as of Mastodon version 4.7.3 and easy to get started with:
56
58
 
57
59
  .. code-block:: python
58
60
 
@@ -1,7 +1,7 @@
1
1
  Mastodon.py
2
2
  ===========
3
3
  Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API.
4
- Feature complete for public API as of Mastodon version 4.5.8 and easy to get started with:
4
+ Feature complete for public API as of Mastodon version 4.7.3 and easy to get started with:
5
5
 
6
6
  .. code-block:: python
7
7
 
@@ -26,7 +26,8 @@ modes are not thread safe).
26
26
 
27
27
  .. attribute:: Mastodon.ratelimit_reset
28
28
 
29
- Time at which the rate limit will next be reset, as a POSIX timestamp.
29
+ Time at which the rate limit will next be reset, as a POSIX timestamp, or
30
+ ``None`` if the server did not provide a usable reset time.
30
31
 
31
32
  .. attribute:: Mastodon.ratelimit_limit
32
33
 
@@ -34,13 +35,15 @@ modes are not thread safe).
34
35
 
35
36
  .. attribute:: Mastodon.ratelimit_lastcall
36
37
 
37
- Time at which these values have last been seen and updated, as a POSIX timestamp.
38
+ Time at which these values have last been seen and updated, as a POSIX
39
+ timestamp, or ``None`` if no rate limit information has been received yet.
38
40
 
39
41
  In "wait" mode, once a request hits the rate limit, Mastodon.py will wait until
40
42
  the rate limit resets and then try again, until the request succeeds or an error
41
43
  is encountered. This mode is for applications that would rather just not worry about rate limits
42
44
  much, don't poll the API all that often, and are okay with a call sometimes just taking
43
- a while.
45
+ a while. If the server does not provide a reset time, Mastodon.py retries with
46
+ exponential backoff between 2 seconds and 5 minutes.
44
47
 
45
48
  In "pace" mode, Mastodon.py will delay each new request after the first one such that,
46
49
  if requests were to continue at the same rate, only a certain fraction (set in the
@@ -49,7 +52,8 @@ be (and by default, is) greater than one. If the rate limit is hit, "pace" behav
49
52
  "wait". This mode is probably the most advanced one and allows you to just poll in
50
53
  a loop without ever sleeping at all yourself. It is for applications that would rather
51
54
  just pretend there is no such thing as a rate limit and are fine with sometimes not
52
- being very interactive.
55
+ being very interactive. Pace mode raises a `MastodonRatelimitError` if the server
56
+ provides rate limit information without a usable reset time.
53
57
 
54
58
  In addition to the per-user limit, there is a per-IP limit of 7500 requests per 5
55
59
  minute time slot, and tighter limits on logins. Mastodon.py does not make any effort
@@ -85,18 +89,29 @@ instance may choose to return less results than you requested - by default, Mast
85
89
  will return no more than 40 statuses and no more than 80 accounts no matter how high
86
90
  you set the limit.
87
91
 
88
- The responses returned by paginated endpoints contain a "link" header that specifies
89
- which parameters to use to get the next and previous pages. Mastodon.py parses these
90
- and stores them (if present) in the first (for the previous page) and last (for the
91
- next page) item of the returned list as _pagination_prev and _pagination_next. They
92
- are accessible only via attribute-style access. Note that this means that if you
93
- want to persist pagination info with your data, you'll have to take care of that
94
- manually (or persist objects, not just dicts).
92
+ Paginated responses use ``PaginatableList``, with navigation metadata stored on the
93
+ Internally. The pagination helpers support both ID cursors and offset/limit pagination.
94
+
95
+ Use the object's ``to_json()`` and ``Entity.from_json()`` methods to preserve
96
+ pagination metadata when saving and restoring a page. Converting the response to
97
+ a plain list discards this metadata.
95
98
 
96
99
  There are convenience functions available for fetching the previous and next page of
97
100
  a paginated request as well as for fetching all pages starting from a first page.
98
101
  For details, see :ref:`fetch_next() <fetch_next()>`, :ref:`fetch_previous() <fetch_previous()>`.
99
- and :ref:`fetch_remaining() <fetch_remaining()>`.
102
+ and :ref:`fetch_remaining() <fetch_remaining()>`. There is also an iterator available to
103
+ iterate through all items in a paginated response (:ref:`pagination_page_iterator() <pagination_page_iterator()>`),
104
+ and an iterator for complete pages (:ref:`pagination_page_iterator() <pagination_page_iterator()>`).
105
+
106
+ You can retrieve pagination information using :ref:`get_pagination_info() <get_pagination_info()>`.
107
+
108
+ Some endpoints are paginated "inside out" - a wrapper object is returned from the endpoint
109
+ which has pagination information attached, but the list that is paginated is not the
110
+ top-level object itself but rather, a list nested inside of it. Currently, this is the case
111
+ for Collections, GroupedNotifications, and Search when a result_type is specified. For these
112
+ endpoints, `fetch_next`, `fetch_previous` and `pagination_page_iterator` are supported,
113
+ but `fetch_remaining` and `pagination_iterator` are not, since how exactly to merge the top
114
+ level object is ambiguous.
100
115
 
101
116
  Async refreshes
102
117
  ---------------
@@ -143,12 +158,53 @@ correspond to times, with a low resolution, so it is possible to convert a time
143
158
  a Snowflake ID and search for posts between two dates. Mastodon.py will do the
144
159
  conversion for you automatically when you pass a `datetime` object as the id.
145
160
 
146
- Note that this functionality will *not* work on anything but Mastodon and forks,
147
- and that it is somewhat inexact due to the relatively low resolution.
161
+ ID formats are not standardized across Mastodon-compatible servers. Mastodon
162
+ and Pleroma forks use Snowflake IDs (encoded as base62, for the latter), Misskey
163
+ and forks use lexicographically sortable IDs with very varied configurable formats,
164
+ SNAC uses low-resolution-timestamp prefixed hash IDs. Pixelfed uses numeric snowflake
165
+ IDs, but they are not the same kind of snowflake IDs mastodon uses so if you convert
166
+ them to datetimes or compare them to other servers, you will get nonsense results, and
167
+ there isn't really much I can do about that.
168
+
169
+ Where we have an actual Snowflake ID (Mastodon, Pleromalikes), Mastodon.py
170
+ `MaybeSnowflakeIdType` objects allow for numerical comparison and conversion
171
+ to datetime objects:
172
+
173
+ .. code-block:: python
174
+
175
+ statuses = sorted(statuses, key=lambda status: status.id)
176
+
177
+ Trying to compare or convert IDs that are not recognized as Snowflake IDs will
178
+ result in a `TypeError`. If you want to sort IDs lexicographically, and you
179
+ are confidence that you are in a situation where this is the correct thing to do,
180
+ you can cast them to strings for sorting. For example:
181
+
182
+ .. code-block:: python
183
+
184
+ statuses = sorted(statuses, key=lambda status: str(status.id))
185
+
186
+ Alternately, for maximum compatibility, avoid doing this, and compare the
187
+ statuses created-at times instead - this is slower, but should be more reliable
188
+ across all kinds of different implementations.
189
+
190
+ Persisting things
191
+ -----------------
192
+ Mastodon.py has special functions for dumping any return value from an API call to
193
+ a JSON object and to turn that JSON back into a Mastodon.py object.
194
+ This will also persist type information and possible pagination information,
195
+ to make it possible to fully restore the original Mastodon.py object from the JSON.
196
+
197
+ .. code-block:: python
198
+
199
+ json_data = mastodon_object.to_json()
200
+ restored_object = Entity.from_json(json_data)
201
+
202
+ Read more in the documentation for the :ref:`to_json() <to_json()>` and
203
+ :ref:`from_json() <from_json()>` methods.
148
204
 
149
205
  Versioning
150
206
  ----------
151
- Mastodon.py will check if a certain endpoint is available before doing API
207
+ Mastodon.py can check if a certain endpoint is available before doing API
152
208
  calls. By default, it checks against the version of Mastodon retrieved on
153
209
  init(), or the version you specified. Mastodon.py can be set (in the
154
210
  constructor) to either check if an endpoint is available at all (this is the
@@ -1,7 +1,6 @@
1
1
  Return values
2
2
  =============
3
3
  .. py:module:: mastodon
4
- :no-index:
5
4
  .. py:class: Mastodon
6
5
 
7
6
  Unless otherwise specified, all data is returned as Python dictionaries, matching
@@ -35,7 +34,7 @@ All return values can be converted from and to JSON using the `to_json()` and `f
35
34
  methods defined on the `mastodon.types_base.Entity` class.
36
35
 
37
36
  Base types
38
- ==========
37
+ ----------
39
38
  .. autoclass:: mastodon.types_base.AttribAccessDict
40
39
  :members:
41
40
 
@@ -57,8 +56,11 @@ Base types
57
56
  .. autoclass:: mastodon.types_base.EntityList
58
57
  :members:
59
58
 
59
+ .. autoclass:: mastodon.types_base.EmptyResponse
60
+ :members:
61
+
60
62
  Return types
61
- ============
63
+ ------------
62
64
  .. autoclass:: mastodon.return_types.Account
63
65
  :members:
64
66
 
@@ -71,6 +73,9 @@ Return types
71
73
  .. autoclass:: mastodon.return_types.CredentialAccountSource
72
74
  :members:
73
75
 
76
+ .. autoclass:: mastodon.return_types.CredentialAccountState
77
+ :members:
78
+
74
79
  .. autoclass:: mastodon.return_types.Status
75
80
  :members:
76
81
 
@@ -245,9 +250,6 @@ Return types
245
250
  .. autoclass:: mastodon.return_types.InstanceTimelinesAccessFeedConfiguration
246
251
  :members:
247
252
 
248
- .. autoclass:: mastodon.return_types.InstanceAnnualReportCampaign
249
- :members:
250
-
251
253
  .. autoclass:: mastodon.return_types.Nodeinfo
252
254
  :members:
253
255
 
@@ -422,6 +424,75 @@ Return types
422
424
  .. autoclass:: mastodon.return_types.AsyncRefresh
423
425
  :members:
424
426
 
427
+ .. autoclass:: mastodon.return_types.Profile
428
+ :members:
429
+
430
+ .. autoclass:: mastodon.return_types.ProfileField
431
+ :members:
432
+
433
+ .. autoclass:: mastodon.return_types.ShallowTag
434
+ :members:
435
+
436
+ .. autoclass:: mastodon.return_types.FeatureApproval
437
+ :members:
438
+
439
+ .. autoclass:: mastodon.return_types.WrappedCollection
440
+ :members:
441
+
442
+ .. autoclass:: mastodon.return_types.Collections
443
+ :members:
444
+
445
+ .. autoclass:: mastodon.return_types.CollectionWithAccounts
446
+ :members:
447
+
448
+ .. autoclass:: mastodon.return_types.WrappedCollectionItem
449
+ :members:
450
+
451
+ .. autoclass:: mastodon.return_types.NotificationFallback
452
+ :members:
453
+
454
+ .. autoclass:: mastodon.return_types.AnnualReportEvent
455
+ :members:
456
+
457
+ .. autoclass:: mastodon.return_types.AnnualReportState
458
+ :members:
459
+
460
+ .. autoclass:: mastodon.return_types.AnnualReport
461
+ :members:
462
+
463
+ .. autoclass:: mastodon.return_types.WrappedAnnualReports
464
+ :members:
465
+
466
+ .. autoclass:: mastodon.return_types.AnnualReportDataV2
467
+ :members:
468
+
469
+ .. autoclass:: mastodon.return_types.AnnualReportDataV1
470
+ :members:
471
+
472
+ .. autoclass:: mastodon.return_types.AnnualReportTopStatusesV2
473
+ :members:
474
+
475
+ .. autoclass:: mastodon.return_types.AnnualReportTopStatusesV1
476
+ :members:
477
+
478
+ .. autoclass:: mastodon.return_types.AnnualReportTimeSeriesEntryV2
479
+ :members:
480
+
481
+ .. autoclass:: mastodon.return_types.AnnualReportTimeSeriesEntryV1
482
+ :members:
483
+
484
+ .. autoclass:: mastodon.return_types.AnnualReportTypeDistribution
485
+ :members:
486
+
487
+ .. autoclass:: mastodon.return_types.AnnualReportNameAndCount
488
+ :members:
489
+
490
+ .. autoclass:: mastodon.return_types.AnnualReportAccountAndCount
491
+ :members:
492
+
493
+ .. autoclass:: mastodon.return_types.AnnualReportPercentiles
494
+ :members:
495
+
425
496
  Deprecated types
426
497
  ================
427
498
  .. autoclass:: mastodon.return_types.Filter