Mastodon.py 2.1.4__tar.gz → 2.2.0__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 (488) hide show
  1. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/CHANGELOG.rst +14 -0
  2. {mastodon_py-2.1.4 → mastodon_py-2.2.0/Mastodon.py.egg-info}/PKG-INFO +6 -6
  3. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/Mastodon.py.egg-info/SOURCES.txt +18 -0
  4. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/Mastodon.py.egg-info/requires.txt +9 -8
  5. {mastodon_py-2.1.4/Mastodon.py.egg-info → mastodon_py-2.2.0}/PKG-INFO +6 -6
  6. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/README.rst +1 -1
  7. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/01_general.rst +12 -0
  8. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/02_return_values.rst +21 -1
  9. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/05_statuses.rst +13 -1
  10. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/12_utilities.rst +17 -0
  11. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/15_everything.rst +26 -0
  12. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/conf.py +2 -2
  13. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/index.rst +1 -1
  14. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/Mastodon.py +3 -2
  15. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/accounts.py +35 -6
  16. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/admin.py +6 -6
  17. mastodon_py-2.2.0/mastodon/async_refresh.py +152 -0
  18. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/conversations.py +1 -1
  19. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/hashtags.py +1 -1
  20. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/internals.py +27 -2
  21. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/notifications.py +4 -2
  22. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/push.py +21 -5
  23. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/relationships.py +2 -2
  24. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/return_types.py +588 -20
  25. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/statuses.py +95 -12
  26. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/streaming.py +3 -0
  27. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/suggestions.py +1 -1
  28. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/timeline.py +2 -2
  29. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/trends.py +1 -1
  30. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/types_base.py +20 -16
  31. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/utility.py +6 -2
  32. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/pyproject.toml +6 -5
  33. mastodon_py-2.2.0/tests/cassettes/test_account.yaml +120 -0
  34. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_account_block_unblock.yaml +35 -35
  35. mastodon_py-2.1.4/tests/cassettes/test_account_pin_unpin.yaml → mastodon_py-2.2.0/tests/cassettes/test_account_endorse_unendorse.yaml +95 -95
  36. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_account_familiar_followers.yaml +89 -89
  37. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_account_follow_unfollow.yaml +37 -37
  38. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_account_followers.yaml +20 -23
  39. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_account_following.yaml +21 -24
  40. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_account_lookup.yaml +47 -47
  41. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_account_mute_unmute.yaml +65 -64
  42. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_account_notes.yaml +25 -25
  43. mastodon_py-2.1.4/tests/cassettes/test_account_endorse_unendorse.yaml → mastodon_py-2.2.0/tests/cassettes/test_account_pin_unpin.yaml +94 -94
  44. mastodon_py-2.2.0/tests/cassettes/test_account_pinned.yaml +525 -0
  45. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_account_relationships.yaml +24 -27
  46. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_account_remove_from_followers.yaml +100 -100
  47. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_account_search.yaml +66 -66
  48. mastodon_py-2.2.0/tests/cassettes/test_account_update_credentials.yaml +2093 -0
  49. mastodon_py-2.2.0/tests/cassettes/test_account_update_credentials_no_avatar.yaml +1012 -0
  50. mastodon_py-2.1.4/tests/cassettes/test_account_update_credentials_no_avatar.yaml → mastodon_py-2.2.0/tests/cassettes/test_account_update_credentials_no_header.yaml +23 -23
  51. mastodon_py-2.2.0/tests/cassettes/test_account_update_credentials_quote_policy.yaml +197 -0
  52. mastodon_py-2.2.0/tests/cassettes/test_account_update_credentials_source_and_privacy.yaml +69 -0
  53. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_account_update_credentials_too_many_fields.yaml +9 -9
  54. mastodon_py-2.2.0/tests/cassettes/test_accounts.yaml +179 -0
  55. mastodon_py-2.2.0/tests/cassettes/test_admin_accounts.yaml +184 -0
  56. mastodon_py-2.2.0/tests/cassettes/test_admin_accounts_v1.yaml +184 -0
  57. mastodon_py-2.2.0/tests/cassettes/test_admin_accounts_v2.yaml +241 -0
  58. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_admin_canonical_email_block.yaml +125 -125
  59. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_admin_domain_blocks.yaml +61 -61
  60. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_admin_email_domain_blocks.yaml +50 -50
  61. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_admin_ip_blocks.yaml +71 -71
  62. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_admin_moderation.yaml +294 -294
  63. mastodon_py-2.2.0/tests/cassettes/test_admin_reports.yaml +824 -0
  64. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_admin_stats.yaml +31 -31
  65. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_admin_trends.yaml +35 -35
  66. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_app_account_create.yaml +47 -47
  67. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_app_account_create_invalid.yaml +36 -36
  68. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_app_verify_credentials.yaml +11 -11
  69. mastodon_py-2.2.0/tests/cassettes/test_attribute_access.yaml +134 -0
  70. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_auth_request_url.yaml +16 -16
  71. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_blocks.yaml +9 -9
  72. mastodon_py-2.2.0/tests/cassettes/test_bookmarks.yaml +452 -0
  73. mastodon_py-2.2.0/tests/cassettes/test_conversations.yaml +400 -0
  74. mastodon_py-2.2.0/tests/cassettes/test_date_hook.yaml +134 -0
  75. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_directory.yaml +11 -11
  76. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_domain_block_unblock.yaml +19 -19
  77. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_domain_blocks.yaml +8 -8
  78. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_emoji.yaml +10 -10
  79. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_favourites.yaml +9 -9
  80. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_featured_tags.yaml +63 -63
  81. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_featured_tags_2.yaml +69 -66
  82. mastodon_py-2.2.0/tests/cassettes/test_fetch_next_previous.yaml +1653 -0
  83. mastodon_py-2.2.0/tests/cassettes/test_fetch_next_previous_after_persist.yaml +1653 -0
  84. mastodon_py-2.2.0/tests/cassettes/test_fetch_next_previous_from_pagination_info.yaml +1653 -0
  85. mastodon_py-2.2.0/tests/cassettes/test_fetch_remaining.yaml +4270 -0
  86. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_follow_request_authorize.yaml +64 -64
  87. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_follow_request_reject.yaml +51 -51
  88. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_follow_requests.yaml +8 -8
  89. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_follow_suggestions.yaml +26 -26
  90. mastodon_py-2.2.0/tests/cassettes/test_follow_with_notify_reblog.yaml +677 -0
  91. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_followed_hashtags.yaml +64 -64
  92. mastodon_py-2.2.0/tests/cassettes/test_get_pagination_info.yaml +1487 -0
  93. mastodon_py-2.2.0/tests/cassettes/test_grouped_notification_pagination.yaml +1630 -0
  94. mastodon_py-2.2.0/tests/cassettes/test_grouped_notifications.yaml +580 -0
  95. mastodon_py-2.2.0/tests/cassettes/test_hashtag_tl.yaml +199 -0
  96. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_health.yaml +8 -8
  97. mastodon_py-2.2.0/tests/cassettes/test_home_tl.yaml +268 -0
  98. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_home_tl_anonymous_throws.yaml +7 -7
  99. mastodon_py-2.2.0/tests/cassettes/test_id_hook.yaml +134 -0
  100. mastodon_py-2.2.0/tests/cassettes/test_id_hook_in_reply_to.yaml +266 -0
  101. mastodon_py-2.2.0/tests/cassettes/test_id_hook_within_reblog.yaml +269 -0
  102. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_instance.yaml +11 -11
  103. mastodon_py-2.2.0/tests/cassettes/test_instance_activity.yaml +63 -0
  104. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_instance_domain_blocks.yaml +8 -8
  105. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_instance_extended_description.yaml +10 -10
  106. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_instance_languages.yaml +136 -136
  107. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_instance_peers.yaml +28 -28
  108. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_instance_rules.yaml +10 -10
  109. mastodon_py-2.2.0/tests/cassettes/test_instance_v1.yaml +65 -0
  110. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_lang_for_errors.yaml +17 -17
  111. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_list_add_remove_account.yaml +153 -153
  112. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_list_by_account.yaml +75 -75
  113. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_list_create.yaml +28 -28
  114. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_list_timeline.yaml +104 -104
  115. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_list_update.yaml +53 -53
  116. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_log_in_none.yaml +8 -8
  117. mastodon_py-2.2.0/tests/cassettes/test_markers.yaml +257 -0
  118. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_media_post[False].yaml +64 -68
  119. mastodon_py-2.2.0/tests/cassettes/test_media_post[True].yaml +35759 -0
  120. mastodon_py-2.1.4/tests/cassettes/test_media_post_pathlib.yaml → mastodon_py-2.2.0/tests/cassettes/test_media_post_file.yaml +16 -16
  121. mastodon_py-2.2.0/tests/cassettes/test_media_post_multiple.yaml +1944 -0
  122. mastodon_py-2.2.0/tests/cassettes/test_media_post_pathlib.yaml +1006 -0
  123. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_media_update.yaml +38 -38
  124. mastodon_py-2.2.0/tests/cassettes/test_min_max_id.yaml +382 -0
  125. mastodon_py-2.2.0/tests/cassettes/test_min_max_id_datetimes.yaml +258 -0
  126. mastodon_py-2.2.0/tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl +0 -0
  127. mastodon_py-2.2.0/tests/cassettes/test_mutes.yaml +63 -0
  128. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_nodeinfo.yaml +20 -20
  129. mastodon_py-2.2.0/tests/cassettes/test_notification_requests_accept.yaml +1555 -0
  130. mastodon_py-2.2.0/tests/cassettes/test_notifications.yaml +385 -0
  131. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_notifications_clear.yaml +9 -9
  132. mastodon_py-2.2.0/tests/cassettes/test_notifications_dismiss.yaml +262 -0
  133. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_notifications_exclude_and_types.yaml +67 -67
  134. mastodon_py-2.2.0/tests/cassettes/test_notifications_exclude_types.yaml +193 -0
  135. mastodon_py-2.2.0/tests/cassettes/test_notifications_mentions_only.yaml +264 -0
  136. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_notifications_policy.yaml +27 -27
  137. mastodon_py-2.2.0/tests/cassettes/test_notifications_types.yaml +323 -0
  138. mastodon_py-2.2.0/tests/cassettes/test_pagination_iterator.yaml +4633 -0
  139. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_poll_illegal_vote.yaml +33 -33
  140. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_polls.yaml +73 -73
  141. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_preferences.yaml +11 -11
  142. mastodon_py-2.2.0/tests/cassettes/test_public_tl.yaml +306 -0
  143. mastodon_py-2.2.0/tests/cassettes/test_public_tl_anonymous.yaml +218 -0
  144. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_push_delete.yaml +30 -30
  145. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_push_set.yaml +23 -23
  146. mastodon_py-2.2.0/tests/cassettes/test_push_set_all_events.yaml +66 -0
  147. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_push_update.yaml +68 -68
  148. mastodon_py-2.2.0/tests/cassettes/test_push_update_all_events.yaml +130 -0
  149. mastodon_py-2.2.0/tests/cassettes/test_report.yaml +263 -0
  150. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_scheduled_status.yaml +78 -78
  151. mastodon_py-2.2.0/tests/cassettes/test_scheduled_status_datetimeobjects.pkl +0 -0
  152. mastodon_py-2.2.0/tests/cassettes/test_search.yaml +185 -0
  153. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_server_time.yaml +39 -39
  154. mastodon_py-2.2.0/tests/cassettes/test_server_time_datetimeobjects.pkl +0 -0
  155. mastodon_py-2.2.0/tests/cassettes/test_status.yaml +196 -0
  156. mastodon_py-2.2.0/tests/cassettes/test_status_card.yaml +198 -0
  157. mastodon_py-2.2.0/tests/cassettes/test_status_context.yaml +193 -0
  158. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_status_delete_media.yaml +119 -119
  159. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_status_edit.yaml +74 -74
  160. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_status_empty.yaml +10 -10
  161. mastodon_py-2.2.0/tests/cassettes/test_status_fav_unfav.yaml +263 -0
  162. mastodon_py-2.2.0/tests/cassettes/test_status_favourited_by.yaml +263 -0
  163. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_status_missing.yaml +8 -8
  164. mastodon_py-2.2.0/tests/cassettes/test_status_mute_unmute.yaml +264 -0
  165. mastodon_py-2.2.0/tests/cassettes/test_status_pin_unpin.yaml +264 -0
  166. mastodon_py-2.2.0/tests/cassettes/test_status_post[Content warning-None].yaml +136 -0
  167. mastodon_py-2.2.0/tests/cassettes/test_status_post[Content warning-direct].yaml +136 -0
  168. mastodon_py-2.2.0/tests/cassettes/test_status_post[Content warning-private].yaml +136 -0
  169. mastodon_py-2.2.0/tests/cassettes/test_status_post[Content warning-public].yaml +136 -0
  170. mastodon_py-2.2.0/tests/cassettes/test_status_post[Content warning-unlisted].yaml +136 -0
  171. mastodon_py-2.2.0/tests/cassettes/test_status_post[None-None].yaml +134 -0
  172. mastodon_py-2.2.0/tests/cassettes/test_status_post[None-direct].yaml +134 -0
  173. mastodon_py-2.2.0/tests/cassettes/test_status_post[None-private].yaml +134 -0
  174. mastodon_py-2.2.0/tests/cassettes/test_status_post[None-public].yaml +134 -0
  175. mastodon_py-2.2.0/tests/cassettes/test_status_post[None-unlisted].yaml +134 -0
  176. mastodon_py-2.2.0/tests/cassettes/test_status_post_with_quote.yaml +276 -0
  177. mastodon_py-2.2.0/tests/cassettes/test_status_post_with_quote_approval_policy.yaml +201 -0
  178. mastodon_py-2.2.0/tests/cassettes/test_status_quote_approval_visibility.yaml +602 -0
  179. mastodon_py-2.2.0/tests/cassettes/test_status_quote_revoke.yaml +347 -0
  180. mastodon_py-2.2.0/tests/cassettes/test_status_quotes.yaml +193 -0
  181. mastodon_py-2.2.0/tests/cassettes/test_status_reblog_unreblog.yaml +267 -0
  182. mastodon_py-2.2.0/tests/cassettes/test_status_reblog_visibility.yaml +338 -0
  183. mastodon_py-2.2.0/tests/cassettes/test_status_reblogged_by.yaml +453 -0
  184. mastodon_py-2.2.0/tests/cassettes/test_status_reply.yaml +323 -0
  185. mastodon_py-2.2.0/tests/cassettes/test_status_reply_with_quote.yaml +457 -0
  186. mastodon_py-2.2.0/tests/cassettes/test_status_translate.yaml +195 -0
  187. mastodon_py-2.2.0/tests/cassettes/test_status_update_quote_approval_policy.yaml +205 -0
  188. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_status_update_with_media_edit.yaml +82 -82
  189. mastodon_py-2.2.0/tests/cassettes/test_stream_direct.yaml +374 -0
  190. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_stream_healthy.yaml +15 -15
  191. mastodon_py-2.2.0/tests/cassettes/test_stream_user_direct.yaml +859 -0
  192. mastodon_py-2.2.0/tests/cassettes/test_stream_user_local.yaml +366 -0
  193. mastodon_py-2.2.0/tests/cassettes/test_suggested_tags.yaml +196 -0
  194. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_timeline_link_fails.yaml +8 -8
  195. mastodon_py-2.2.0/tests/cassettes/test_toot.yaml +134 -0
  196. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_translation_languages.yaml +10 -10
  197. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_trending_links.yaml +8 -8
  198. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_trending_statuses.yaml +8 -8
  199. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_trending_tags.yaml +16 -16
  200. mastodon_py-2.2.0/tests/cassettes/test_unauthed_home_tl_throws.yaml +192 -0
  201. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_v2_filters_keywords.yaml +83 -83
  202. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_v2_filters_statuses.yaml +105 -105
  203. mastodon_py-2.2.0/tests/cassettes/test_verify_credentials.yaml +120 -0
  204. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes/test_verify_version.yaml +67 -67
  205. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_account.yaml +56 -47
  206. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_accountcreationerrordetailsfield.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_accountcreationerror.yaml +27 -23
  207. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_accountcreationerrordetails.yaml +27 -23
  208. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_accountcreationerror.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_accountcreationerrordetailsfield.yaml +26 -22
  209. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_accountfield.yaml +24 -21
  210. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_activity.yaml +91 -0
  211. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_announcement.yaml +97 -0
  212. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_application.yaml +18 -16
  213. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_context.yaml +139 -0
  214. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_conversation.yaml +1423 -0
  215. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_credentialaccountsource.yaml +32 -26
  216. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_customemoji.yaml +37 -31
  217. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_domainblock.yaml +3213 -0
  218. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_extendeddescription.yaml +22 -19
  219. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_familiarfollowers.yaml +10 -9
  220. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_featuredtag.yaml +13 -11
  221. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_filter.yaml +13 -11
  222. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_filterkeyword.yaml +13 -11
  223. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_filterresult.yaml +34 -30
  224. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_filterstatus.yaml +26 -22
  225. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_filterv2.yaml +13 -11
  226. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_groupednotificationsresults.yaml +289 -0
  227. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_instance.yaml +48 -30
  228. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_instancepollconfiguration.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instanceaccountconfiguration.yaml +164 -102
  229. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_instanceconfiguration.yaml +48 -30
  230. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_instanceurlsv2.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instanceconfigurationv2.yaml +57 -35
  231. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_instanceusage.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instancecontact.yaml +164 -102
  232. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_instanceicon.yaml +57 -35
  233. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_instancecontact.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instancemediaconfiguration.yaml +164 -102
  234. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_instancemediaconfiguration.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instancepollconfiguration.yaml +164 -102
  235. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instanceregistrations.yaml +443 -0
  236. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_instancestatistics.yaml +48 -30
  237. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_instanceaccountconfiguration.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instancestatusconfiguration.yaml +164 -102
  238. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_instanceusageusers.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instancethumbnail.yaml +164 -102
  239. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_instancethumbnailversions.yaml +164 -102
  240. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_instanceregistrations.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instancetimelinesaccessconfiguration.yaml +57 -35
  241. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_instanceconfigurationv2.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instancetimelinesaccessfeedconfiguration.yaml +58 -36
  242. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instancetranslationconfiguration.yaml +443 -0
  243. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_instanceurls.yaml +96 -60
  244. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_instancetranslationconfiguration.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instanceurlsv2.yaml +57 -35
  245. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_rule.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instanceusage.yaml +164 -102
  246. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instanceusageusers.yaml +1306 -0
  247. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_instancev2.yaml +443 -0
  248. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_instancevapidkey.yaml +57 -35
  249. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_marker.yaml +13 -11
  250. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_mediaattachmentmetadatacontainer.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_mediaattachment.yaml +67 -56
  251. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_mediaattachmentaudiometadata.yaml +31 -27
  252. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_mediaattachmentcolors.yaml +31 -27
  253. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_mediaattachmentfocuspoint.yaml +36 -29
  254. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_mediaattachmentimagemetadata.yaml +36 -29
  255. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_mediaattachment.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_mediaattachmentmetadatacontainer.yaml +67 -56
  256. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_mediaattachmentvideometadata.yaml +70 -59
  257. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_nodeinfosoftware.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_nodeinfo.yaml +31 -36
  258. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_nodeinfo.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_nodeinfometadata.yaml +30 -35
  259. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_nodeinfoservices.yaml +30 -35
  260. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_nodeinfometadata.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_nodeinfosoftware.yaml +30 -35
  261. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_nodeinfousage.yaml +162 -0
  262. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_nodeinfousageusers.yaml +30 -35
  263. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_notification.yaml +661 -0
  264. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_notificationgroup.yaml +289 -0
  265. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_notificationpolicy.yaml +13 -11
  266. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_notificationpolicysummary.yaml +13 -11
  267. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_oauthserverinfo.yaml +23 -20
  268. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_oauthuserinfo.yaml +37 -32
  269. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_partialaccountwithavatar.yaml +2314 -0
  270. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_polloption.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_poll.yaml +40 -35
  271. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_poll.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_polloption.yaml +40 -35
  272. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_preferences.yaml +19 -16
  273. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_previewcard.yaml +138 -91
  274. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_previewcardauthor.yaml +148 -103
  275. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_quote.yaml +54 -46
  276. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_statusmention.yaml → mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_quoteapproval.yaml +37 -31
  277. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_reaction.yaml +97 -0
  278. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_relationship.yaml +18 -16
  279. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_role.yaml +32 -26
  280. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_rule.yaml +1306 -0
  281. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_ruletranslation.yaml +164 -102
  282. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_scheduledstatus.yaml +22 -20
  283. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_scheduledstatusparams.yaml +22 -20
  284. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_searchv2.yaml +373 -239
  285. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_shallowquote.yaml +54 -46
  286. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_status.yaml +79 -66
  287. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_statusedit.yaml +71 -59
  288. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_statusmention.yaml +133 -0
  289. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_statussource.yaml +15 -13
  290. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_suggestion.yaml +1100 -0
  291. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_supportedlocale.yaml +48 -45
  292. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_tag.yaml +190 -144
  293. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_taghistory.yaml +189 -143
  294. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_termsofservice.yaml +19 -19
  295. mastodon_py-2.2.0/tests/cassettes_entity_tests/test_entity_trendinglinkhistory.yaml +248 -0
  296. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_unreadnotificationscount.yaml +16 -14
  297. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_userlist.yaml +13 -11
  298. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_webpushsubscription.yaml +17 -15
  299. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_entity_tests/test_entity_webpushsubscriptionalerts.yaml +17 -15
  300. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/conftest.py +2 -2
  301. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_account.py +36 -0
  302. mastodon_py-2.2.0/tests/test_async_refresh.py +329 -0
  303. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_entities.py +51 -0
  304. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_push.py +24 -0
  305. mastodon_py-2.2.0/tests/test_quotes.py +91 -0
  306. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_status_length.py +7 -2
  307. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_streaming.py +8 -0
  308. mastodon_py-2.2.0/tests/test_types_base.py +110 -0
  309. mastodon_py-2.1.4/tests/cassettes/test_account.yaml +0 -125
  310. mastodon_py-2.1.4/tests/cassettes/test_account_pinned.yaml +0 -525
  311. mastodon_py-2.1.4/tests/cassettes/test_account_update_credentials.yaml +0 -2093
  312. mastodon_py-2.1.4/tests/cassettes/test_account_update_credentials_no_header.yaml +0 -1012
  313. mastodon_py-2.1.4/tests/cassettes/test_accounts.yaml +0 -183
  314. mastodon_py-2.1.4/tests/cassettes/test_admin_accounts.yaml +0 -184
  315. mastodon_py-2.1.4/tests/cassettes/test_admin_accounts_v1.yaml +0 -184
  316. mastodon_py-2.1.4/tests/cassettes/test_admin_accounts_v2.yaml +0 -241
  317. mastodon_py-2.1.4/tests/cassettes/test_admin_reports.yaml +0 -824
  318. mastodon_py-2.1.4/tests/cassettes/test_attribute_access.yaml +0 -134
  319. mastodon_py-2.1.4/tests/cassettes/test_bookmarks.yaml +0 -452
  320. mastodon_py-2.1.4/tests/cassettes/test_conversations.yaml +0 -400
  321. mastodon_py-2.1.4/tests/cassettes/test_date_hook.yaml +0 -134
  322. mastodon_py-2.1.4/tests/cassettes/test_fetch_next_previous.yaml +0 -1653
  323. mastodon_py-2.1.4/tests/cassettes/test_fetch_next_previous_after_persist.yaml +0 -1653
  324. mastodon_py-2.1.4/tests/cassettes/test_fetch_next_previous_from_pagination_info.yaml +0 -1653
  325. mastodon_py-2.1.4/tests/cassettes/test_fetch_remaining.yaml +0 -4270
  326. mastodon_py-2.1.4/tests/cassettes/test_follow_with_notify_reblog.yaml +0 -645
  327. mastodon_py-2.1.4/tests/cassettes/test_get_pagination_info.yaml +0 -1487
  328. mastodon_py-2.1.4/tests/cassettes/test_grouped_notification_pagination.yaml +0 -1630
  329. mastodon_py-2.1.4/tests/cassettes/test_grouped_notifications.yaml +0 -580
  330. mastodon_py-2.1.4/tests/cassettes/test_hashtag_tl.yaml +0 -199
  331. mastodon_py-2.1.4/tests/cassettes/test_home_tl.yaml +0 -225
  332. mastodon_py-2.1.4/tests/cassettes/test_id_hook.yaml +0 -134
  333. mastodon_py-2.1.4/tests/cassettes/test_id_hook_in_reply_to.yaml +0 -266
  334. mastodon_py-2.1.4/tests/cassettes/test_id_hook_within_reblog.yaml +0 -269
  335. mastodon_py-2.1.4/tests/cassettes/test_instance_activity.yaml +0 -63
  336. mastodon_py-2.1.4/tests/cassettes/test_instance_v1.yaml +0 -65
  337. mastodon_py-2.1.4/tests/cassettes/test_markers.yaml +0 -257
  338. mastodon_py-2.1.4/tests/cassettes/test_media_post[True].yaml +0 -35759
  339. mastodon_py-2.1.4/tests/cassettes/test_media_post_file.yaml +0 -1006
  340. mastodon_py-2.1.4/tests/cassettes/test_media_post_multiple.yaml +0 -1944
  341. mastodon_py-2.1.4/tests/cassettes/test_min_max_id.yaml +0 -382
  342. mastodon_py-2.1.4/tests/cassettes/test_min_max_id_datetimes.yaml +0 -258
  343. mastodon_py-2.1.4/tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl +0 -0
  344. mastodon_py-2.1.4/tests/cassettes/test_mutes.yaml +0 -61
  345. mastodon_py-2.1.4/tests/cassettes/test_notification_requests_accept.yaml +0 -1521
  346. mastodon_py-2.1.4/tests/cassettes/test_notifications.yaml +0 -385
  347. mastodon_py-2.1.4/tests/cassettes/test_notifications_dismiss.yaml +0 -262
  348. mastodon_py-2.1.4/tests/cassettes/test_notifications_exclude_types.yaml +0 -197
  349. mastodon_py-2.1.4/tests/cassettes/test_notifications_mentions_only.yaml +0 -264
  350. mastodon_py-2.1.4/tests/cassettes/test_notifications_types.yaml +0 -323
  351. mastodon_py-2.1.4/tests/cassettes/test_pagination_iterator.yaml +0 -4633
  352. mastodon_py-2.1.4/tests/cassettes/test_public_tl.yaml +0 -298
  353. mastodon_py-2.1.4/tests/cassettes/test_public_tl_anonymous.yaml +0 -215
  354. mastodon_py-2.1.4/tests/cassettes/test_report.yaml +0 -263
  355. mastodon_py-2.1.4/tests/cassettes/test_scheduled_status_datetimeobjects.pkl +0 -0
  356. mastodon_py-2.1.4/tests/cassettes/test_search.yaml +0 -185
  357. mastodon_py-2.1.4/tests/cassettes/test_server_time_datetimeobjects.pkl +0 -0
  358. mastodon_py-2.1.4/tests/cassettes/test_status.yaml +0 -196
  359. mastodon_py-2.1.4/tests/cassettes/test_status_card.yaml +0 -198
  360. mastodon_py-2.1.4/tests/cassettes/test_status_context.yaml +0 -193
  361. mastodon_py-2.1.4/tests/cassettes/test_status_fav_unfav.yaml +0 -263
  362. mastodon_py-2.1.4/tests/cassettes/test_status_favourited_by.yaml +0 -263
  363. mastodon_py-2.1.4/tests/cassettes/test_status_mute_unmute.yaml +0 -264
  364. mastodon_py-2.1.4/tests/cassettes/test_status_pin_unpin.yaml +0 -264
  365. mastodon_py-2.1.4/tests/cassettes/test_status_post[Content warning-None].yaml +0 -136
  366. mastodon_py-2.1.4/tests/cassettes/test_status_post[Content warning-direct].yaml +0 -136
  367. mastodon_py-2.1.4/tests/cassettes/test_status_post[Content warning-private].yaml +0 -136
  368. mastodon_py-2.1.4/tests/cassettes/test_status_post[Content warning-public].yaml +0 -136
  369. mastodon_py-2.1.4/tests/cassettes/test_status_post[Content warning-unlisted].yaml +0 -136
  370. mastodon_py-2.1.4/tests/cassettes/test_status_post[None-None].yaml +0 -134
  371. mastodon_py-2.1.4/tests/cassettes/test_status_post[None-direct].yaml +0 -134
  372. mastodon_py-2.1.4/tests/cassettes/test_status_post[None-private].yaml +0 -134
  373. mastodon_py-2.1.4/tests/cassettes/test_status_post[None-public].yaml +0 -134
  374. mastodon_py-2.1.4/tests/cassettes/test_status_post[None-unlisted].yaml +0 -134
  375. mastodon_py-2.1.4/tests/cassettes/test_status_reblog_unreblog.yaml +0 -267
  376. mastodon_py-2.1.4/tests/cassettes/test_status_reblog_visibility.yaml +0 -332
  377. mastodon_py-2.1.4/tests/cassettes/test_status_reblogged_by.yaml +0 -447
  378. mastodon_py-2.1.4/tests/cassettes/test_status_reply.yaml +0 -323
  379. mastodon_py-2.1.4/tests/cassettes/test_status_translate.yaml +0 -195
  380. mastodon_py-2.1.4/tests/cassettes/test_stream_direct.yaml +0 -371
  381. mastodon_py-2.1.4/tests/cassettes/test_stream_user_direct.yaml +0 -866
  382. mastodon_py-2.1.4/tests/cassettes/test_stream_user_local.yaml +0 -367
  383. mastodon_py-2.1.4/tests/cassettes/test_suggested_tags.yaml +0 -196
  384. mastodon_py-2.1.4/tests/cassettes/test_toot.yaml +0 -134
  385. mastodon_py-2.1.4/tests/cassettes/test_unauthed_home_tl_throws.yaml +0 -192
  386. mastodon_py-2.1.4/tests/cassettes/test_verify_credentials.yaml +0 -126
  387. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_activity.yaml +0 -89
  388. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_announcement.yaml +0 -92
  389. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_context.yaml +0 -127
  390. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_conversation.yaml +0 -1386
  391. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_domainblock.yaml +0 -2350
  392. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_groupednotificationsresults.yaml +0 -414
  393. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_instancestatusconfiguration.yaml +0 -1244
  394. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_instancethumbnail.yaml +0 -1244
  395. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_instancev2.yaml +0 -421
  396. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_nodeinfousage.yaml +0 -167
  397. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_notification.yaml +0 -704
  398. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_notificationgroup.yaml +0 -414
  399. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_partialaccountwithavatar.yaml +0 -2159
  400. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_reaction.yaml +0 -92
  401. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_suggestion.yaml +0 -1022
  402. mastodon_py-2.1.4/tests/cassettes_entity_tests/test_entity_trendinglinkhistory.yaml +0 -223
  403. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/LICENSE +0 -0
  404. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/MANIFEST.in +0 -0
  405. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/Mastodon.py.egg-info/dependency_links.txt +0 -0
  406. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/Mastodon.py.egg-info/top_level.txt +0 -0
  407. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/03_errors.rst +0 -0
  408. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/04_auth.rst +0 -0
  409. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/06_accounts.rst +0 -0
  410. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/07_timelines.rst +0 -0
  411. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/08_instances.rst +0 -0
  412. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/09_notifications.rst +0 -0
  413. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/10_streaming.rst +0 -0
  414. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/11_misc.rst +0 -0
  415. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/13_admin.rst +0 -0
  416. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/14_contributing.rst +0 -0
  417. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/Makefile +0 -0
  418. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/docs/update_everything_page.sh +0 -0
  419. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/__init__.py +0 -0
  420. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/_url_regex.py +0 -0
  421. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/authentication.py +0 -0
  422. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/compat.py +0 -0
  423. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/defaults.py +0 -0
  424. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/endorsements.py +0 -0
  425. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/errors.py +0 -0
  426. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/favourites.py +0 -0
  427. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/filters.py +0 -0
  428. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/instance.py +0 -0
  429. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/lists.py +0 -0
  430. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/media.py +0 -0
  431. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/polls.py +0 -0
  432. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/preferences.py +0 -0
  433. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/py.typed +0 -0
  434. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/reports.py +0 -0
  435. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/search.py +0 -0
  436. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/streaming_endpoints.py +0 -0
  437. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/mastodon/versions.py +0 -0
  438. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/setup.cfg +0 -0
  439. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/setup.py +0 -0
  440. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/README.markdown +0 -0
  441. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/__init__.py +0 -0
  442. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/amewatson.jpg +0 -0
  443. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_old_pagination/test_fetch_next_previous.yaml +0 -0
  444. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_old_pagination/test_fetch_next_previous_from_pagination_info.yaml +0 -0
  445. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_pre_2_9_2/test_notifications_dismiss.yaml +0 -0
  446. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_pre_2_9_2/test_search.yaml +0 -0
  447. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_pre_2_9_2/test_status_card.yaml +0 -0
  448. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_pre_4_0_0/test_filter_clientside.yaml +0 -0
  449. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_pre_4_0_0/test_filter_create.yaml +0 -0
  450. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_pre_4_0_0/test_filter_serverside.yaml +0 -0
  451. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_pre_4_0_0/test_filter_update.yaml +0 -0
  452. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_pre_4_0_0/test_media_post.yaml +0 -0
  453. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_pre_4_4_0/test_log_in_password.yaml +0 -0
  454. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_pre_4_4_0/test_log_in_password_incorrect.yaml +0 -0
  455. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_pre_4_4_0/test_log_in_password_to_file.yaml +0 -0
  456. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_pre_4_4_0/test_zzz_revoke.yaml +0 -0
  457. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_special/test_scheduled_status_long_datetimeobjects.pkl +0 -0
  458. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_special/test_scheduled_status_long_part1.yaml +0 -0
  459. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_special/test_scheduled_status_long_part2.yaml +0 -0
  460. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/cassettes_special/test_scheduled_status_long_text.pkl +0 -0
  461. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/image.jpg +0 -0
  462. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/run_mastodon_for_tests.sh +0 -0
  463. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/setup.sql +0 -0
  464. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_admin.py +0 -0
  465. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_auth.py +0 -0
  466. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_blurhash.py +0 -0
  467. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_bookmarks.py +0 -0
  468. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_constructor.py +0 -0
  469. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_create_app.py +0 -0
  470. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_domain_blocks.py +0 -0
  471. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_errors.py +0 -0
  472. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_filters.py +0 -0
  473. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_follow_requests.py +0 -0
  474. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_hooks.py +0 -0
  475. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_instance.py +0 -0
  476. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_lists.py +0 -0
  477. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_markers.py +0 -0
  478. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_media.py +0 -0
  479. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_notifications.py +0 -0
  480. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_pagination.py +0 -0
  481. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_polls.py +0 -0
  482. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_reports.py +0 -0
  483. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_search.py +0 -0
  484. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_status.py +0 -0
  485. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_timeline.py +0 -0
  486. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_trends.py +0 -0
  487. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/test_zzz_revoke.py +0 -0
  488. {mastodon_py-2.1.4 → mastodon_py-2.2.0}/tests/video.mp4 +0 -0
@@ -2,6 +2,20 @@ 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.2.0
6
+ ------
7
+ * Bumped support level to 4.5.0
8
+ * Switch from `grapheme` to `graphemeu` package, which is more maintained (thanks @CyberTailor for the report).
9
+ * Fix a crash due to unbound local in stream_public (Thanks @elnikkis for the report and fix)
10
+ * Fix invalid event error in heartbeats (Thanks @tribela for the report and fix)
11
+ * Add several missing parameters to `account_update_credentials`
12
+ * Add quote support (Several new endpoints and entities)
13
+ * Fix a bug in push subscriptions for status push subscriptions
14
+ * Fix a bug in Pleroma ID parsing
15
+ * Samples: Make samples work on Windows (Thanks @AllynH for the report and fix)
16
+ * Add support for async refreshes
17
+ * Fix various other bugs and documentation issues
18
+
5
19
  v2.1.4
6
20
  ------
7
21
  * Fix missing type annotation on `client_name` in `create_app()` (Thanks @thcrt )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Mastodon.py
3
- Version: 2.1.4
3
+ Version: 2.2.0
4
4
  Summary: Python wrapper for the Mastodon API
5
5
  Author-email: Lorenz Diener <lorenzd+mastodonpypypi@gmail.com>
6
6
  License: MIT
@@ -17,17 +17,17 @@ Description-Content-Type: text/x-rst
17
17
  License-File: LICENSE
18
18
  Requires-Dist: requests>=2.4.2
19
19
  Requires-Dist: python-dateutil
20
- Requires-Dist: python-magic-bin; platform_system == "Windows"
21
- Requires-Dist: python-magic; platform_system != "Windows"
22
20
  Requires-Dist: decorator>=4.0.0
23
- Requires-Dist: blurhash>=1.1.4
24
21
  Provides-Extra: webpush
25
22
  Requires-Dist: http_ece>=1.0.5; extra == "webpush"
26
23
  Requires-Dist: cryptography>=1.6.0; extra == "webpush"
27
24
  Provides-Extra: blurhash
28
25
  Requires-Dist: blurhash>=1.1.4; extra == "blurhash"
29
26
  Provides-Extra: grapheme
30
- Requires-Dist: grapheme>=0.6.0; extra == "grapheme"
27
+ Requires-Dist: graphemeu>=0.7.2; extra == "grapheme"
28
+ Provides-Extra: magic
29
+ Requires-Dist: python-magic-bin; platform_system == "Windows" and extra == "magic"
30
+ Requires-Dist: python-magic; platform_system != "Windows" and extra == "magic"
31
31
  Provides-Extra: test
32
32
  Requires-Dist: pytest; extra == "test"
33
33
  Requires-Dist: pytest-cov; extra == "test"
@@ -52,7 +52,7 @@ Dynamic: license-file
52
52
  Mastodon.py
53
53
  ===========
54
54
  Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API.
55
- Feature complete for public API as of Mastodon version 4.4.3 and easy to get started with:
55
+ Feature complete for public API as of Mastodon version 4.5.8 and easy to get started with:
56
56
 
57
57
  .. code-block:: python
58
58
 
@@ -33,6 +33,7 @@ mastodon/__init__.py
33
33
  mastodon/_url_regex.py
34
34
  mastodon/accounts.py
35
35
  mastodon/admin.py
36
+ mastodon/async_refresh.py
36
37
  mastodon/authentication.py
37
38
  mastodon/compat.py
38
39
  mastodon/conversations.py
@@ -73,6 +74,7 @@ tests/run_mastodon_for_tests.sh
73
74
  tests/setup.sql
74
75
  tests/test_account.py
75
76
  tests/test_admin.py
77
+ tests/test_async_refresh.py
76
78
  tests/test_auth.py
77
79
  tests/test_blurhash.py
78
80
  tests/test_bookmarks.py
@@ -92,6 +94,7 @@ tests/test_notifications.py
92
94
  tests/test_pagination.py
93
95
  tests/test_polls.py
94
96
  tests/test_push.py
97
+ tests/test_quotes.py
95
98
  tests/test_reports.py
96
99
  tests/test_search.py
97
100
  tests/test_status.py
@@ -99,6 +102,7 @@ tests/test_status_length.py
99
102
  tests/test_streaming.py
100
103
  tests/test_timeline.py
101
104
  tests/test_trends.py
105
+ tests/test_types_base.py
102
106
  tests/test_zzz_revoke.py
103
107
  tests/video.mp4
104
108
  tests/cassettes/test_account.yaml
@@ -119,6 +123,8 @@ tests/cassettes/test_account_search.yaml
119
123
  tests/cassettes/test_account_update_credentials.yaml
120
124
  tests/cassettes/test_account_update_credentials_no_avatar.yaml
121
125
  tests/cassettes/test_account_update_credentials_no_header.yaml
126
+ tests/cassettes/test_account_update_credentials_quote_policy.yaml
127
+ tests/cassettes/test_account_update_credentials_source_and_privacy.yaml
122
128
  tests/cassettes/test_account_update_credentials_too_many_fields.yaml
123
129
  tests/cassettes/test_accounts.yaml
124
130
  tests/cassettes/test_admin_accounts.yaml
@@ -212,7 +218,9 @@ tests/cassettes/test_public_tl.yaml
212
218
  tests/cassettes/test_public_tl_anonymous.yaml
213
219
  tests/cassettes/test_push_delete.yaml
214
220
  tests/cassettes/test_push_set.yaml
221
+ tests/cassettes/test_push_set_all_events.yaml
215
222
  tests/cassettes/test_push_update.yaml
223
+ tests/cassettes/test_push_update_all_events.yaml
216
224
  tests/cassettes/test_report.yaml
217
225
  tests/cassettes/test_scheduled_status.yaml
218
226
  tests/cassettes/test_scheduled_status_datetimeobjects.pkl
@@ -240,11 +248,18 @@ tests/cassettes/test_status_post[None-direct].yaml
240
248
  tests/cassettes/test_status_post[None-private].yaml
241
249
  tests/cassettes/test_status_post[None-public].yaml
242
250
  tests/cassettes/test_status_post[None-unlisted].yaml
251
+ tests/cassettes/test_status_post_with_quote.yaml
252
+ tests/cassettes/test_status_post_with_quote_approval_policy.yaml
253
+ tests/cassettes/test_status_quote_approval_visibility.yaml
254
+ tests/cassettes/test_status_quote_revoke.yaml
255
+ tests/cassettes/test_status_quotes.yaml
243
256
  tests/cassettes/test_status_reblog_unreblog.yaml
244
257
  tests/cassettes/test_status_reblog_visibility.yaml
245
258
  tests/cassettes/test_status_reblogged_by.yaml
246
259
  tests/cassettes/test_status_reply.yaml
260
+ tests/cassettes/test_status_reply_with_quote.yaml
247
261
  tests/cassettes/test_status_translate.yaml
262
+ tests/cassettes/test_status_update_quote_approval_policy.yaml
248
263
  tests/cassettes/test_status_update_with_media_edit.yaml
249
264
  tests/cassettes/test_stream_direct.yaml
250
265
  tests/cassettes/test_stream_healthy.yaml
@@ -297,6 +312,8 @@ tests/cassettes_entity_tests/test_entity_instancestatistics.yaml
297
312
  tests/cassettes_entity_tests/test_entity_instancestatusconfiguration.yaml
298
313
  tests/cassettes_entity_tests/test_entity_instancethumbnail.yaml
299
314
  tests/cassettes_entity_tests/test_entity_instancethumbnailversions.yaml
315
+ tests/cassettes_entity_tests/test_entity_instancetimelinesaccessconfiguration.yaml
316
+ tests/cassettes_entity_tests/test_entity_instancetimelinesaccessfeedconfiguration.yaml
300
317
  tests/cassettes_entity_tests/test_entity_instancetranslationconfiguration.yaml
301
318
  tests/cassettes_entity_tests/test_entity_instanceurls.yaml
302
319
  tests/cassettes_entity_tests/test_entity_instanceurlsv2.yaml
@@ -331,6 +348,7 @@ tests/cassettes_entity_tests/test_entity_preferences.yaml
331
348
  tests/cassettes_entity_tests/test_entity_previewcard.yaml
332
349
  tests/cassettes_entity_tests/test_entity_previewcardauthor.yaml
333
350
  tests/cassettes_entity_tests/test_entity_quote.yaml
351
+ tests/cassettes_entity_tests/test_entity_quoteapproval.yaml
334
352
  tests/cassettes_entity_tests/test_entity_reaction.yaml
335
353
  tests/cassettes_entity_tests/test_entity_relationship.yaml
336
354
  tests/cassettes_entity_tests/test_entity_role.yaml
@@ -1,13 +1,6 @@
1
1
  requests>=2.4.2
2
2
  python-dateutil
3
3
  decorator>=4.0.0
4
- blurhash>=1.1.4
5
-
6
- [:platform_system != "Windows"]
7
- python-magic
8
-
9
- [:platform_system == "Windows"]
10
- python-magic-bin
11
4
 
12
5
  [blurhash]
13
6
  blurhash>=1.1.4
@@ -16,7 +9,15 @@ blurhash>=1.1.4
16
9
  sphinx-rtd-theme
17
10
 
18
11
  [grapheme]
19
- grapheme>=0.6.0
12
+ graphemeu>=0.7.2
13
+
14
+ [magic]
15
+
16
+ [magic:platform_system != "Windows"]
17
+ python-magic
18
+
19
+ [magic:platform_system == "Windows"]
20
+ python-magic-bin
20
21
 
21
22
  [test]
22
23
  pytest
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Mastodon.py
3
- Version: 2.1.4
3
+ Version: 2.2.0
4
4
  Summary: Python wrapper for the Mastodon API
5
5
  Author-email: Lorenz Diener <lorenzd+mastodonpypypi@gmail.com>
6
6
  License: MIT
@@ -17,17 +17,17 @@ Description-Content-Type: text/x-rst
17
17
  License-File: LICENSE
18
18
  Requires-Dist: requests>=2.4.2
19
19
  Requires-Dist: python-dateutil
20
- Requires-Dist: python-magic-bin; platform_system == "Windows"
21
- Requires-Dist: python-magic; platform_system != "Windows"
22
20
  Requires-Dist: decorator>=4.0.0
23
- Requires-Dist: blurhash>=1.1.4
24
21
  Provides-Extra: webpush
25
22
  Requires-Dist: http_ece>=1.0.5; extra == "webpush"
26
23
  Requires-Dist: cryptography>=1.6.0; extra == "webpush"
27
24
  Provides-Extra: blurhash
28
25
  Requires-Dist: blurhash>=1.1.4; extra == "blurhash"
29
26
  Provides-Extra: grapheme
30
- Requires-Dist: grapheme>=0.6.0; extra == "grapheme"
27
+ Requires-Dist: graphemeu>=0.7.2; extra == "grapheme"
28
+ Provides-Extra: magic
29
+ Requires-Dist: python-magic-bin; platform_system == "Windows" and extra == "magic"
30
+ Requires-Dist: python-magic; platform_system != "Windows" and extra == "magic"
31
31
  Provides-Extra: test
32
32
  Requires-Dist: pytest; extra == "test"
33
33
  Requires-Dist: pytest-cov; extra == "test"
@@ -52,7 +52,7 @@ Dynamic: license-file
52
52
  Mastodon.py
53
53
  ===========
54
54
  Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API.
55
- Feature complete for public API as of Mastodon version 4.4.3 and easy to get started with:
55
+ Feature complete for public API as of Mastodon version 4.5.8 and easy to get started with:
56
56
 
57
57
  .. code-block:: python
58
58
 
@@ -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.4.3 and easy to get started with:
4
+ Feature complete for public API as of Mastodon version 4.5.8 and easy to get started with:
5
5
 
6
6
  .. code-block:: python
7
7
 
@@ -98,6 +98,18 @@ a paginated request as well as for fetching all pages starting from a first page
98
98
  For details, see :ref:`fetch_next() <fetch_next()>`, :ref:`fetch_previous() <fetch_previous()>`.
99
99
  and :ref:`fetch_remaining() <fetch_remaining()>`.
100
100
 
101
+ Async refreshes
102
+ ---------------
103
+ Some API endpoints may return a ``Mastodon-Async-Refresh`` header, indicating that the
104
+ server is still fetching additional data in the background (e.g. fetching remote replies
105
+ for a status context, or refreshing the home timeline). Mastodon.py parses this header
106
+ and attaches the information to the returned object.
107
+
108
+ You can use :ref:`get_async_refresh_info() <get_async_refresh_info()>` to check whether
109
+ a result has async refresh information, :ref:`get_async_refresh_status() <get_async_refresh_status()>`
110
+ to poll the server for the current status of a refresh, and :ref:`await_async_refresh() <await_async_refresh()>`
111
+ to wait for a refresh to complete and then re-fetch the original resource.
112
+
101
113
  IDs and unpacking
102
114
  -----------------
103
115
  Mastodon's API uses IDs in several places: User IDs, Toot IDs, ...
@@ -80,6 +80,9 @@ Return types
80
80
  .. autoclass:: mastodon.return_types.ShallowQuote
81
81
  :members:
82
82
 
83
+ .. autoclass:: mastodon.return_types.QuoteApproval
84
+ :members:
85
+
83
86
  .. autoclass:: mastodon.return_types.StatusEdit
84
87
  :members:
85
88
 
@@ -164,6 +167,12 @@ Return types
164
167
  .. autoclass:: mastodon.return_types.SearchV2
165
168
  :members:
166
169
 
170
+ .. autoclass:: mastodon.return_types.Collection
171
+ :members:
172
+
173
+ .. autoclass:: mastodon.return_types.CollectionItem
174
+ :members:
175
+
167
176
  .. autoclass:: mastodon.return_types.Instance
168
177
  :members:
169
178
 
@@ -230,6 +239,15 @@ Return types
230
239
  .. autoclass:: mastodon.return_types.InstancePollConfiguration
231
240
  :members:
232
241
 
242
+ .. autoclass:: mastodon.return_types.InstanceTimelinesAccessConfiguration
243
+ :members:
244
+
245
+ .. autoclass:: mastodon.return_types.InstanceTimelinesAccessFeedConfiguration
246
+ :members:
247
+
248
+ .. autoclass:: mastodon.return_types.InstanceAnnualReportCampaign
249
+ :members:
250
+
233
251
  .. autoclass:: mastodon.return_types.Nodeinfo
234
252
  :members:
235
253
 
@@ -401,6 +419,9 @@ Return types
401
419
  .. autoclass:: mastodon.return_types.TermsOfService
402
420
  :members:
403
421
 
422
+ .. autoclass:: mastodon.return_types.AsyncRefresh
423
+ :members:
424
+
404
425
  Deprecated types
405
426
  ================
406
427
  .. autoclass:: mastodon.return_types.Filter
@@ -412,4 +433,3 @@ Deprecated types
412
433
  .. autoclass:: mastodon.return_types.IdentityProof
413
434
  :members:
414
435
 
415
-
@@ -93,4 +93,16 @@ These functions allow you to get machine translations for statuses, if the insta
93
93
 
94
94
  .. automethod:: Mastodon.status_translate
95
95
 
96
-
96
+ Quoting
97
+ --------
98
+ These functions allow you to get and update quote approval policies for statuses, as well as to get the quote approval status of a status.
99
+
100
+ Reading
101
+ ~~~~~~~
102
+ .. automethod:: Mastodon.status_quotes
103
+
104
+ Writing
105
+ ~~~~~~~
106
+ .. automethod:: Mastodon.status_quote_revoke
107
+ .. automethod:: Mastodon.status_update_quote_approval_policy
108
+
@@ -19,6 +19,23 @@ These functions allow for convenient retrieval of paginated data.
19
19
  .. _get_pagination_info():
20
20
  .. automethod:: Mastodon.get_pagination_info
21
21
 
22
+ Async refreshes
23
+ ---------------
24
+ Some API responses may include an ``Mastodon-Async-Refresh`` header, indicating that
25
+ the server is still fetching additional data in the background. These functions allow
26
+ you to check the status of such a refresh, wait for it to complete, or extract the
27
+ async refresh information from an API result.
28
+
29
+ Note that this functionality is considered *experimental* by the Mastodon project
30
+ and may be subject to changes in the future.
31
+
32
+ .. _get_async_refresh_info():
33
+ .. automethod:: Mastodon.get_async_refresh_info
34
+ .. _get_async_refresh_status():
35
+ .. automethod:: Mastodon.get_async_refresh_status
36
+ .. _await_async_refresh():
37
+ .. automethod:: Mastodon.await_async_refresh
38
+
22
39
  Blurhash decoding
23
40
  -----------------
24
41
  This function allows for easy basic decoding of blurhash strings to images.
@@ -36,6 +36,8 @@ Every function on a huge CTRL-F-able page
36
36
  :no-index:
37
37
  .. autoclass:: mastodon.return_types.ShallowQuote
38
38
  :no-index:
39
+ .. autoclass:: mastodon.return_types.QuoteApproval
40
+ :no-index:
39
41
  .. autoclass:: mastodon.return_types.StatusEdit
40
42
  :no-index:
41
43
  .. autoclass:: mastodon.return_types.FilterResult
@@ -92,6 +94,10 @@ Every function on a huge CTRL-F-able page
92
94
  :no-index:
93
95
  .. autoclass:: mastodon.return_types.SearchV2
94
96
  :no-index:
97
+ .. autoclass:: mastodon.return_types.Collection
98
+ :no-index:
99
+ .. autoclass:: mastodon.return_types.CollectionItem
100
+ :no-index:
95
101
  .. autoclass:: mastodon.return_types.Instance
96
102
  :no-index:
97
103
  .. autoclass:: mastodon.return_types.InstanceConfiguration
@@ -136,6 +142,12 @@ Every function on a huge CTRL-F-able page
136
142
  :no-index:
137
143
  .. autoclass:: mastodon.return_types.InstancePollConfiguration
138
144
  :no-index:
145
+ .. autoclass:: mastodon.return_types.InstanceTimelinesAccessConfiguration
146
+ :no-index:
147
+ .. autoclass:: mastodon.return_types.InstanceTimelinesAccessFeedConfiguration
148
+ :no-index:
149
+ .. autoclass:: mastodon.return_types.InstanceAnnualReportCampaign
150
+ :no-index:
139
151
  .. autoclass:: mastodon.return_types.Nodeinfo
140
152
  :no-index:
141
153
  .. autoclass:: mastodon.return_types.NodeinfoSoftware
@@ -250,6 +262,8 @@ Every function on a huge CTRL-F-able page
250
262
  :no-index:
251
263
  .. autoclass:: mastodon.return_types.TermsOfService
252
264
  :no-index:
265
+ .. autoclass:: mastodon.return_types.AsyncRefresh
266
+ :no-index:
253
267
  .. autoclass:: mastodon.return_types.Filter
254
268
  :no-index:
255
269
  .. autoclass:: mastodon.return_types.Search
@@ -350,6 +364,12 @@ Every function on a huge CTRL-F-able page
350
364
  :no-index:
351
365
  .. automethod:: Mastodon.status_translate
352
366
  :no-index:
367
+ .. automethod:: Mastodon.status_quotes
368
+ :no-index:
369
+ .. automethod:: Mastodon.status_quote_revoke
370
+ :no-index:
371
+ .. automethod:: Mastodon.status_update_quote_approval_policy
372
+ :no-index:
353
373
  .. automethod:: Mastodon.account_verify_credentials
354
374
  :no-index:
355
375
  .. automethod:: Mastodon.me
@@ -666,6 +686,12 @@ Every function on a huge CTRL-F-able page
666
686
  :no-index:
667
687
  .. automethod:: Mastodon.get_pagination_info
668
688
  :no-index:
689
+ .. automethod:: Mastodon.get_async_refresh_info
690
+ :no-index:
691
+ .. automethod:: Mastodon.get_async_refresh_status
692
+ :no-index:
693
+ .. automethod:: Mastodon.await_async_refresh
694
+ :no-index:
669
695
  .. automethod:: Mastodon.decode_blurhash
670
696
  :no-index:
671
697
  .. automethod:: Mastodon.clear_caches
@@ -66,9 +66,9 @@ author = u'Lorenz Diener'
66
66
  # built documents.
67
67
  #
68
68
  # The short X.Y version.
69
- version = u'2.1'
69
+ version = u'2.2'
70
70
  # The full version, including alpha/beta/rc tags.
71
- release = u'2.1.4'
71
+ release = u'2.2.0'
72
72
 
73
73
  # The language for content autogenerated by Sphinx. Refer to documentation
74
74
  # for a list of supported languages.
@@ -59,7 +59,7 @@ every aspect. This is a simple Python wrapper for that API, provided
59
59
  as a single Python module.
60
60
 
61
61
  Mastodon.py aims to implement the complete public Mastodon API. As
62
- of this time, it is feature complete for Mastodon version 4.4.3. The
62
+ of this time, it is feature complete for Mastodon version 4.5.8. The
63
63
  Mastodon compatible API layers of various other pieces of software as well
64
64
  as forks, while not an official target, should also be basically
65
65
  compatible, and Mastodon.py does make some allowances for behaviour that isn't
@@ -55,6 +55,7 @@ from mastodon.preferences import Mastodon as MastoPreferences
55
55
  from mastodon.push import Mastodon as MastoPush
56
56
  from mastodon.admin import Mastodon as MastoAdmin
57
57
  from mastodon.streaming_endpoints import Mastodon as MastoStreaming
58
+ from mastodon.async_refresh import Mastodon as MastoAsyncRefresh
58
59
 
59
60
 
60
61
  ###
@@ -64,7 +65,7 @@ from mastodon.streaming_endpoints import Mastodon as MastoStreaming
64
65
  ###
65
66
  class Mastodon(MastoUtility, MastoAuthentication, MastoAccounts, MastoInstance, MastoTimeline, MastoStatuses, MastoPolls, MastoNotifications, MastoHashtags,
66
67
  MastoFilters, MastoSuggestions, MastoEndorsements, MastoRelationships, MastoLists, MastoTrends, MastoSearch, MastoFavourites, MastoReports,
67
- MastoPreferences, MastoPush, MastoAdmin, MastoConversations, MastoMedia, MastoStreaming):
68
+ MastoPreferences, MastoPush, MastoAdmin, MastoConversations, MastoMedia, MastoStreaming, MastoAsyncRefresh):
68
69
  """
69
70
  Thorough and easy to use Mastodon
70
71
  API wrapper in Python.
@@ -72,7 +73,7 @@ class Mastodon(MastoUtility, MastoAuthentication, MastoAccounts, MastoInstance,
72
73
  Main class, imports most things from modules
73
74
  """
74
75
  # Support level
75
- __SUPPORTED_MASTODON_VERSION = "4.4.3"
76
+ __SUPPORTED_MASTODON_VERSION = "4.5.8"
76
77
  __MASTODON_PY_VERSION = "2.1.4"
77
78
 
78
79
  @staticmethod
@@ -115,7 +115,7 @@ class Mastodon(Internals):
115
115
  return response['access_token']
116
116
 
117
117
  @api_version("3.4.0", "3.4.0")
118
- def email_resend_confirmation(self):
118
+ def email_resend_confirmation(self) -> None:
119
119
  """
120
120
  Requests a re-send of the users confirmation mail for an unconfirmed logged in user.
121
121
 
@@ -386,13 +386,16 @@ class Mastodon(Internals):
386
386
  id = self.__unpack_id(id)
387
387
  return self.__api_request('POST', f'/api/v1/accounts/{id}/unmute')
388
388
 
389
- @api_version("1.1.1", "3.1.0")
389
+ @api_version("1.1.1", "4.2.0")
390
390
  def account_update_credentials(self, display_name: Optional[str] = None, note: Optional[str] = None,
391
391
  avatar: Optional[PathOrFile] = None, avatar_mime_type: Optional[str] = None,
392
392
  header: Optional[PathOrFile] = None, header_mime_type: Optional[str] = None,
393
393
  locked: Optional[bool] = None, bot: Optional[bool] = None,
394
394
  discoverable: Optional[bool] = None, fields: Optional[List[Tuple[str, str]]] = None,
395
- attribution_domains: Optional[List[str]] = None) -> Account:
395
+ hide_collections: Optional[bool] = None, indexable: Optional[bool] = None,
396
+ attribution_domains: Optional[List[str]] = None,
397
+ default_privacy: Optional[str] = None, default_sensitive: Optional[bool] = None,
398
+ default_language: Optional[str] = None, default_quote_policy: Optional[str] = None) -> Account:
396
399
  """
397
400
  Update the profile for the currently logged-in user.
398
401
 
@@ -407,12 +410,27 @@ class Mastodon(Internals):
407
410
 
408
411
  `discoverable` specifies whether the user should appear in the user directory.
409
412
 
413
+ `hide_collections` specifies whether to hide the user's follower and following lists.
414
+
415
+ `indexable` specifies whether the user's public posts should be searchable by anyone.
416
+
410
417
  `fields` can be a list of up to four name-value pairs (specified as tuples) to
411
418
  appear as semi-structured information in the user's profile.
412
419
 
413
420
  `attribution_domains` can be a list of domains that the user wants to allow to
414
421
  attribute content to them.
415
422
 
423
+ `default_privacy` sets the default posting privacy. One of ``'public'``, ``'unlisted'``,
424
+ or ``'private'``.
425
+
426
+ `default_sensitive` sets whether posts should be marked as sensitive by default.
427
+
428
+ `default_language` sets the default language for new posts (ISO 639-1 two-letter
429
+ language code).
430
+
431
+ `default_quote_policy` sets who is allowed to quote the user's posts by default.
432
+ One of ``'public'``, ``'followers'``, or ``'nobody'``.
433
+
416
434
  The returned object reflects the updated account.
417
435
  """
418
436
  params_initial = collections.OrderedDict(locals())
@@ -424,8 +442,19 @@ class Mastodon(Internals):
424
442
  params_initial[f'fields_attributes[{idx}][name]'] = field_name
425
443
  params_initial[f'fields_attributes[{idx}][value]'] = field_value
426
444
 
445
+ # Convert source[...] params to bracket notation
446
+ if default_privacy is not None:
447
+ params_initial['source[privacy]'] = default_privacy
448
+ if default_sensitive is not None:
449
+ params_initial['source[sensitive]'] = default_sensitive
450
+ if default_language is not None:
451
+ params_initial['source[language]'] = default_language
452
+ if default_quote_policy is not None:
453
+ params_initial['source[quote_policy]'] = default_quote_policy
454
+
427
455
  # Clean up params
428
- for param in ["avatar", "avatar_mime_type", "header", "header_mime_type", "fields"]:
456
+ for param in ["avatar", "avatar_mime_type", "header", "header_mime_type", "fields",
457
+ "default_privacy", "default_sensitive", "default_language", "default_quote_policy"]:
429
458
  if param in params_initial:
430
459
  del params_initial[param]
431
460
 
@@ -505,14 +534,14 @@ class Mastodon(Internals):
505
534
  return self.__api_request('GET', f'/api/v1/accounts/{id}/featured_tags')
506
535
 
507
536
  @api_version("4.2.0", "4.2.0")
508
- def account_delete_avatar(self):
537
+ def account_delete_avatar(self) -> None:
509
538
  """
510
539
  Delete the logged-in user's avatar.
511
540
  """
512
541
  self.__api_request('DELETE', '/api/v1/profile/avatar')
513
542
 
514
543
  @api_version("4.2.0", "4.2.0")
515
- def account_delete_header(self):
544
+ def account_delete_header(self) -> None:
516
545
  """
517
546
  Delete the logged-in user's header.
518
547
  """
@@ -61,7 +61,7 @@ class Mastodon(Internals):
61
61
  def admin_accounts(self, remote: bool = False, by_domain: Optional[str] = None, status: str = 'active', username: Optional[str] = None,
62
62
  display_name: Optional[str] = None, email: Optional[str] = None, ip: Optional[str] = None, staff_only: bool = False,
63
63
  max_id: Optional[IdType] = None, min_id: Optional[IdType] = None, since_id: Optional[IdType] = None,
64
- limit: Optional[int] = None):
64
+ limit: Optional[int] = None) -> List[AdminAccount]:
65
65
  """
66
66
  Currently a synonym for admin_accounts_v1, now deprecated. You are strongly encouraged to use admin_accounts_v2 instead, since this one is kind of bad.
67
67
 
@@ -208,7 +208,7 @@ class Mastodon(Internals):
208
208
 
209
209
  @api_version("2.9.1", "2.9.1")
210
210
  def admin_account_moderate(self, id: Union[Account, AdminAccount, IdType], action: Optional[str] = None, report_id: Optional[Union[AdminReport, PrimitiveIdType]] = None,
211
- warning_preset_id: Optional[PrimitiveIdType] = None, text: Optional[str] = None, send_email_notification: Optional[bool] = True):
211
+ warning_preset_id: Optional[PrimitiveIdType] = None, text: Optional[str] = None, send_email_notification: Optional[bool] = True) -> None:
212
212
  """
213
213
  Perform a moderation action on an account.
214
214
 
@@ -417,7 +417,7 @@ class Mastodon(Internals):
417
417
  return self.__api_request('PUT', f'/api/v1/admin/domain_blocks/{id}', params)
418
418
 
419
419
  @api_version("4.0.0", "4.0.0")
420
- def admin_delete_domain_block(self, id = Union[AdminDomainBlock, IdType]):
420
+ def admin_delete_domain_block(self, id: Union[AdminDomainBlock, IdType]) -> None:
421
421
  """
422
422
  Removes moderation action against a given domain. Requires scope `admin:write:domain_blocks`.
423
423
 
@@ -650,7 +650,7 @@ class Mastodon(Internals):
650
650
  return self.__api_request('POST', '/api/v1/admin/domain_allows', params)
651
651
 
652
652
  @api_version("4.0.0", "4.0.0")
653
- def admin_delete_domain_allow(self, id: Union[AdminDomainAllow, IdType]):
653
+ def admin_delete_domain_allow(self, id: Union[AdminDomainAllow, IdType]) -> None:
654
654
  """
655
655
  Remove a domain from the allowlist. Requires scope `admin:write:domain_allows`.
656
656
 
@@ -693,7 +693,7 @@ class Mastodon(Internals):
693
693
  return self.__api_request('POST', '/api/v1/admin/email_domain_blocks', params)
694
694
 
695
695
  @api_version("4.0.0", "4.0.0")
696
- def admin_delete_email_domain_block(self, id: IdType):
696
+ def admin_delete_email_domain_block(self, id: IdType) -> None:
697
697
  """
698
698
  Remove an email domain block. Requires scope `admin:write:email_domain_blocks`.
699
699
 
@@ -799,7 +799,7 @@ class Mastodon(Internals):
799
799
  return self.__api_request('PUT', f'/api/v1/admin/ip_blocks/{id}', params)
800
800
 
801
801
  @api_version("4.0.0", "4.0.0")
802
- def admin_delete_ip_block(self, id: Union[AdminIpBlock, IdType]):
802
+ def admin_delete_ip_block(self, id: Union[AdminIpBlock, IdType]) -> None:
803
803
  """
804
804
  Remove an IP block. Requires scope `admin:write:ip_blocks`.
805
805
  """