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.
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/CHANGELOG.rst +26 -2
- {mastodon_py-2.2.2 → mastodon_py-2.3.2/Mastodon.py.egg-info}/PKG-INFO +4 -2
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/Mastodon.py.egg-info/SOURCES.txt +78 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/Mastodon.py.egg-info/requires.txt +3 -0
- {mastodon_py-2.2.2/Mastodon.py.egg-info → mastodon_py-2.3.2}/PKG-INFO +4 -2
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/README.rst +1 -1
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/01_general.rst +71 -15
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/02_return_values.rst +77 -6
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/10_streaming.rst +70 -2
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/12_utilities.rst +2 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/15_everything.rst +104 -2
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/conf.py +2 -2
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/index.rst +1 -1
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/Mastodon.py +7 -3
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/__init__.py +3 -2
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/accounts.py +24 -17
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/admin.py +10 -5
- mastodon_py-2.3.2/mastodon/annual_reports.py +48 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/authentication.py +3 -2
- mastodon_py-2.3.2/mastodon/collections.py +121 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/compat.py +7 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/instance.py +4 -5
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/internals.py +205 -147
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/media.py +6 -3
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/notifications.py +21 -8
- mastodon_py-2.3.2/mastodon/profile.py +74 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/reports.py +11 -3
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/return_types.py +1330 -93
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/search.py +12 -2
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/statuses.py +5 -13
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/streaming.py +200 -27
- mastodon_py-2.3.2/mastodon/streaming_endpoints.py +188 -0
- mastodon_py-2.3.2/mastodon/streaming_websocket.py +346 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/trends.py +8 -8
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/types_base.py +228 -79
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/utility.py +55 -12
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/pyproject.toml +4 -1
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account.yaml +22 -21
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_block_unblock.yaml +31 -31
- 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
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_familiar_followers.yaml +73 -73
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_follow_unfollow.yaml +31 -30
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_followers.yaml +18 -18
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_following.yaml +17 -17
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_lookup.yaml +49 -43
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_mute_unmute.yaml +55 -59
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_notes.yaml +20 -20
- 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
- mastodon_py-2.3.2/tests/cassettes/test_account_pinned.yaml +541 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_relationships.yaml +21 -21
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_remove_from_followers.yaml +85 -83
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_search.yaml +57 -57
- mastodon_py-2.3.2/tests/cassettes/test_account_statuses_exclude_direct.yaml +470 -0
- mastodon_py-2.3.2/tests/cassettes/test_account_update_credentials.yaml +2104 -0
- 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
- 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
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_update_credentials_quote_policy.yaml +46 -41
- mastodon_py-2.3.2/tests/cassettes/test_account_update_credentials_source_and_privacy.yaml +204 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_account_update_credentials_too_many_fields.yaml +7 -7
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_accounts.yaml +30 -30
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_accounts.yaml +33 -31
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_accounts_v1.yaml +33 -31
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_accounts_v2.yaml +35 -35
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_canonical_email_block.yaml +96 -96
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_domain_blocks.yaml +51 -51
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_email_domain_blocks.yaml +40 -40
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_ip_blocks.yaml +59 -59
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_moderation.yaml +252 -252
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_reports.yaml +323 -130
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_stats.yaml +25 -25
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_admin_trends.yaml +27 -27
- mastodon_py-2.3.2/tests/cassettes/test_annual_report_event.yaml +65 -0
- mastodon_py-2.3.2/tests/cassettes/test_annual_report_state_and_generate.yaml +122 -0
- mastodon_py-2.3.2/tests/cassettes/test_annual_reports.yaml +177 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_app_account_create.yaml +40 -40
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_app_account_create_invalid.yaml +29 -29
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_app_verify_credentials.yaml +9 -9
- mastodon_py-2.3.2/tests/cassettes/test_async_refresh_id_extraction[entity].yaml +59 -0
- mastodon_py-2.3.2/tests/cassettes/test_async_refresh_id_extraction[integer].yaml +59 -0
- mastodon_py-2.3.2/tests/cassettes/test_async_refresh_id_extraction[response].yaml +123 -0
- mastodon_py-2.3.2/tests/cassettes/test_async_refresh_id_extraction[string].yaml +59 -0
- 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
- mastodon_py-2.3.2/tests/cassettes/test_attribute_access.yaml +138 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_auth_request_url.yaml +11 -11
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_blocks.yaml +7 -7
- mastodon_py-2.3.2/tests/cassettes/test_bookmarks.yaml +464 -0
- mastodon_py-2.3.2/tests/cassettes/test_collection_item_add_delete.yaml +371 -0
- mastodon_py-2.3.2/tests/cassettes/test_collection_item_revoke.yaml +365 -0
- mastodon_py-2.3.2/tests/cassettes/test_collection_lifecycle.yaml +371 -0
- mastodon_py-2.3.2/tests/cassettes/test_collection_notification_fallback.yaml +501 -0
- mastodon_py-2.3.2/tests/cassettes/test_collections_offset_navigation[account_collections].yaml +685 -0
- mastodon_py-2.3.2/tests/cassettes/test_collections_offset_navigation[account_in_collections].yaml +684 -0
- mastodon_py-2.3.2/tests/cassettes/test_collections_page_iterator.yaml +496 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_conversations.yaml +75 -71
- mastodon_py-2.3.2/tests/cassettes/test_date_hook.yaml +138 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_directory.yaml +9 -9
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_domain_block_unblock.yaml +14 -14
- mastodon_py-2.2.2/tests/cassettes/test_favourites.yaml → mastodon_py-2.3.2/tests/cassettes/test_domain_blocks.yaml +8 -8
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_emoji.yaml +8 -8
- mastodon_py-2.3.2/tests/cassettes/test_favourites.yaml +61 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_featured_tags.yaml +51 -49
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_featured_tags_2.yaml +59 -57
- mastodon_py-2.3.2/tests/cassettes/test_fetch_next_previous.yaml +1725 -0
- mastodon_py-2.3.2/tests/cassettes/test_fetch_next_previous_after_persist.yaml +1725 -0
- mastodon_py-2.3.2/tests/cassettes/test_fetch_next_previous_from_pagination_info.yaml +1725 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_fetch_remaining.yaml +803 -803
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_follow_request_authorize.yaml +57 -55
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_follow_request_reject.yaml +45 -43
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_follow_requests.yaml +7 -7
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_follow_suggestions.yaml +20 -20
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_follow_with_notify_reblog.yaml +111 -111
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_followed_hashtags.yaml +51 -51
- mastodon_py-2.3.2/tests/cassettes/test_get_pagination_info.yaml +1539 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_grouped_notification_pagination.yaml +296 -294
- mastodon_py-2.3.2/tests/cassettes/test_grouped_notifications.yaml +593 -0
- mastodon_py-2.3.2/tests/cassettes/test_grouped_notifications_page_iterator.yaml +459 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_hashtag_tl.yaml +47 -47
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_health.yaml +6 -6
- mastodon_py-2.3.2/tests/cassettes/test_home_tl.yaml +249 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_home_tl_anonymous_throws.yaml +7 -7
- mastodon_py-2.3.2/tests/cassettes/test_id_hook.yaml +138 -0
- mastodon_py-2.3.2/tests/cassettes/test_id_hook_in_reply_to.yaml +274 -0
- mastodon_py-2.3.2/tests/cassettes/test_id_hook_within_reblog.yaml +281 -0
- mastodon_py-2.3.2/tests/cassettes/test_instance.yaml +66 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_activity.yaml +9 -9
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_domain_blocks.yaml +7 -7
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_extended_description.yaml +8 -8
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_languages.yaml +16 -16
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_peers.yaml +21 -21
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_rules.yaml +8 -8
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_instance_v1.yaml +9 -9
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_lang_for_errors.yaml +19 -19
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_list_add_remove_account.yaml +123 -123
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_list_by_account.yaml +59 -59
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_list_create.yaml +22 -22
- mastodon_py-2.3.2/tests/cassettes/test_list_timeline.yaml +576 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_list_update.yaml +40 -40
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_log_in_none.yaml +6 -6
- mastodon_py-2.3.2/tests/cassettes/test_markers.yaml +261 -0
- mastodon_py-2.3.2/tests/cassettes/test_media_post[False].yaml +35764 -0
- mastodon_py-2.3.2/tests/cassettes/test_media_post[True].yaml +35764 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_media_post_file.yaml +14 -14
- mastodon_py-2.3.2/tests/cassettes/test_media_post_multiple.yaml +1828 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_media_post_pathlib.yaml +15 -15
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_media_update.yaml +35 -35
- mastodon_py-2.3.2/tests/cassettes/test_min_max_id.yaml +390 -0
- mastodon_py-2.3.2/tests/cassettes/test_min_max_id_datetimes.yaml +264 -0
- mastodon_py-2.3.2/tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl +0 -0
- mastodon_py-2.2.2/tests/cassettes/test_domain_blocks.yaml → mastodon_py-2.3.2/tests/cassettes/test_mutes.yaml +8 -8
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_nodeinfo.yaml +17 -17
- mastodon_py-2.3.2/tests/cassettes/test_notification_requests_accept.yaml +1591 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications.yaml +64 -62
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_clear.yaml +7 -7
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_dismiss.yaml +40 -40
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_exclude_and_types.yaml +54 -54
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_exclude_types.yaml +31 -31
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_mentions_only.yaml +42 -42
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_policy.yaml +21 -21
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_notifications_types.yaml +48 -48
- mastodon_py-2.3.2/tests/cassettes/test_offset_iteration.yaml +651 -0
- mastodon_py-2.3.2/tests/cassettes/test_offset_navigation.yaml +238 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_pagination_iterator.yaml +864 -864
- mastodon_py-2.3.2/tests/cassettes/test_pagination_page_iterator[False].yaml +415 -0
- mastodon_py-2.3.2/tests/cassettes/test_pagination_page_iterator[True].yaml +415 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_poll_illegal_vote.yaml +32 -32
- mastodon_py-2.3.2/tests/cassettes/test_poll_with_media.yaml +1268 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_polls.yaml +61 -61
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_preferences.yaml +10 -10
- mastodon_py-2.3.2/tests/cassettes/test_profile.yaml +129 -0
- mastodon_py-2.3.2/tests/cassettes/test_profile_update.yaml +2306 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_public_tl.yaml +95 -79
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_public_tl_anonymous.yaml +64 -57
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_push_delete.yaml +22 -22
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_push_set.yaml +20 -20
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_push_set_all_events.yaml +11 -11
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_push_update.yaml +55 -55
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_push_update_all_events.yaml +20 -20
- mastodon_py-2.3.2/tests/cassettes/test_report.yaml +271 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_scheduled_status.yaml +71 -71
- mastodon_py-2.3.2/tests/cassettes/test_scheduled_status_datetimeobjects.pkl +0 -0
- mastodon_py-2.3.2/tests/cassettes/test_search.yaml +189 -0
- mastodon_py-2.3.2/tests/cassettes/test_search_offset_navigation[search].yaml +415 -0
- mastodon_py-2.3.2/tests/cassettes/test_search_offset_navigation[search_v2].yaml +415 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_server_time.yaml +33 -33
- mastodon_py-2.3.2/tests/cassettes/test_server_time_datetimeobjects.pkl +0 -0
- mastodon_py-2.3.2/tests/cassettes/test_status.yaml +202 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_card.yaml +210 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_context.yaml +197 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_delete_media.yaml +138 -126
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_edit.yaml +64 -64
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_empty.yaml +10 -10
- mastodon_py-2.3.2/tests/cassettes/test_status_fav_unfav.yaml +271 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_favourited_by.yaml +271 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_missing.yaml +6 -6
- mastodon_py-2.3.2/tests/cassettes/test_status_mute_unmute.yaml +272 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_pin_unpin.yaml +272 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_post[Content warning-None].yaml +140 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_post[Content warning-direct].yaml +140 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_post[Content warning-private].yaml +140 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_post[Content warning-public].yaml +140 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_post[Content warning-unlisted].yaml +140 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_post[None-None].yaml +138 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_post[None-direct].yaml +138 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_post[None-private].yaml +138 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_post[None-public].yaml +138 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_post[None-unlisted].yaml +138 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_post_with_quote.yaml +288 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_post_with_quote_approval_policy.yaml +208 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_quote_approval_visibility.yaml +613 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_quote_revoke.yaml +356 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_quotes.yaml +197 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_reblog_unreblog.yaml +277 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_reblog_visibility.yaml +77 -71
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_reblogged_by.yaml +94 -88
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_reply.yaml +58 -58
- mastodon_py-2.3.2/tests/cassettes/test_status_reply_with_quote.yaml +494 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_translate.yaml +199 -0
- mastodon_py-2.3.2/tests/cassettes/test_status_update_quote_approval_policy.yaml +212 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_status_update_with_media_edit.yaml +70 -70
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_stream_direct.yaml +83 -79
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_stream_healthy.yaml +23 -23
- mastodon_py-2.3.2/tests/cassettes/test_stream_public_only_media.yaml +1508 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_user_direct.yaml +897 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_stream_user_local.yaml +73 -61
- mastodon_py-2.3.2/tests/cassettes/test_stream_user_shared_websocket.ws.yaml +19 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_user_shared_websocket.yaml +259 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_hashtag[False].ws.yaml +32 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_hashtag[False].yaml +391 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_hashtag[True].ws.yaml +44 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_hashtag[True].yaml +391 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_only_media.ws.yaml +33 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_only_media.yaml +1397 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_subscribe_unsubscribe.ws.yaml +14 -0
- 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
- mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_subscription_error.ws.yaml +12 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_subscription_error.yaml +129 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_unsubscribe_context_manager.ws.yaml +12 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_unsubscribe_context_manager.yaml +129 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_user_direct.ws.yaml +37 -0
- mastodon_py-2.3.2/tests/cassettes/test_stream_websocket_user_direct.yaml +391 -0
- mastodon_py-2.3.2/tests/cassettes/test_suggested_tags.yaml +339 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_timeline_disabled.yaml +196 -123
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_timeline_link_fails.yaml +17 -17
- mastodon_py-2.3.2/tests/cassettes/test_toot.yaml +138 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_translation_languages.yaml +8 -8
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_trending_links.yaml +6 -6
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_trending_statuses.yaml +7 -7
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_trending_tags.yaml +14 -14
- mastodon_py-2.3.2/tests/cassettes/test_unauthed_home_tl_throws.yaml +196 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_v2_filters_keywords.yaml +68 -68
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_v2_filters_statuses.yaml +92 -88
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes/test_verify_credentials.yaml +20 -20
- mastodon_py-2.3.2/tests/cassettes/test_verify_version.yaml +129 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_account.yaml +32 -28
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_accountcreationerror.yaml +12 -12
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_accountcreationerrordetails.yaml +12 -12
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_accountfield.yaml +14 -13
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_activity.yaml +24 -24
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_announcement.yaml +81 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreport.yaml +194 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreportdatav1.yaml +94 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreportdatav2.yaml +102 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreportnameandcount.yaml +94 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreportpercentiles.yaml +94 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreportstate.yaml +78 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreporttimeseriesentryv1.yaml +94 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreporttimeseriesentryv2.yaml +102 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreporttopstatusesv1.yaml +94 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreporttopstatusesv2.yaml +102 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_annualreporttypedistribution.yaml +94 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_application.yaml +7 -7
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_collection.yaml +954 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_collectionitem.yaml +954 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_collections.yaml +190 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_collectionwithaccounts.yaml +131 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_context.yaml +19 -17
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_conversation.yaml +731 -821
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_credentialaccountsource.yaml +107 -0
- 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
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_customemoji.yaml +17 -16
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_domainblock.yaml +192 -120
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_extendeddescription.yaml +135 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_familiarfollowers.yaml +16 -13
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_featureapproval.yaml +103 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_featuredtag.yaml +6 -6
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_filter.yaml +7 -7
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_filterkeyword.yaml +6 -6
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_filterresult.yaml +14 -13
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_filterstatus.yaml +12 -12
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_filterv2.yaml +7 -7
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_groupednotificationsresults.yaml +291 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instance.yaml +32 -31
- 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
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instanceconfiguration.yaml +32 -31
- 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
- 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
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instanceicon.yaml +38 -34
- 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
- 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
- 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
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instancestatistics.yaml +32 -31
- 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
- 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
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instancethumbnailversions.yaml +107 -98
- 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
- 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
- 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
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instanceurls.yaml +64 -62
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instanceurlsv2.yaml +37 -33
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instanceusage.yaml +1315 -0
- 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
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_instancev2.yaml +447 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_instancevapidkey.yaml +38 -34
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_marker.yaml +6 -6
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_mediaattachment.yaml +28 -26
- 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
- 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
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_mediaattachmentfocuspoint.yaml +14 -13
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_mediaattachmentimagemetadata.yaml +14 -13
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_mediaattachmentmetadatacontainer.yaml +29 -27
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_mediaattachmentvideometadata.yaml +29 -27
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_nodeinfo.yaml +24 -21
- 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
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_nodeinfoservices.yaml +24 -21
- 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
- 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
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_nodeinfousageusers.yaml +25 -22
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_notification.yaml +392 -353
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_notificationgroup.yaml +291 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_notificationpolicy.yaml +10 -9
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_notificationpolicysummary.yaml +10 -9
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_oauthserverinfo.yaml +6 -6
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_oauthuserinfo.yaml +11 -11
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_partialaccountwithavatar.yaml +2800 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_poll.yaml +15 -14
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_polloption.yaml +15 -14
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_preferences.yaml +6 -6
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_previewcard.yaml +84 -78
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_previewcardauthor.yaml +91 -84
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_profile.yaml +96 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_profilefield.yaml +96 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_quote.yaml +14 -12
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_quoteapproval.yaml +16 -15
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_reaction.yaml +81 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_relationship.yaml +7 -7
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_role.yaml +18 -15
- 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
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_ruletranslation.yaml +1315 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_scheduledstatus.yaml +22 -34
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_scheduledstatusparams.yaml +22 -34
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_searchv2.yaml +220 -222
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_shallowquote.yaml +14 -12
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_shallowtag.yaml +954 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_status.yaml +29 -27
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_statusedit.yaml +40 -36
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_statusmention.yaml +16 -15
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_statussource.yaml +6 -6
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_suggestion.yaml +1160 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_supportedlocale.yaml +17 -15
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_tag.yaml +143 -142
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_taghistory.yaml +143 -142
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_termsofservice.yaml +16 -16
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_trendinglinkhistory.yaml +267 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_unreadnotificationscount.yaml +10 -10
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_userlist.yaml +7 -7
- 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
- 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
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_wrappedannualreports.yaml +194 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_wrappedcollection.yaml +954 -0
- mastodon_py-2.3.2/tests/cassettes_entity_tests/test_entity_wrappedcollectionitem.yaml +131 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/conftest.py +18 -1
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/run_mastodon_for_tests.sh +5 -1
- mastodon_py-2.3.2/tests/seed_annual_report.rb +14 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/setup.sql +11 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_account.py +62 -21
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_admin.py +9 -0
- mastodon_py-2.3.2/tests/test_annual_reports.py +46 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_async_refresh.py +29 -0
- mastodon_py-2.3.2/tests/test_collections.py +155 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_entities.py +414 -26
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_lists.py +1 -1
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_media.py +39 -2
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_notifications.py +9 -5
- mastodon_py-2.3.2/tests/test_pagination.py +364 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_polls.py +14 -0
- mastodon_py-2.3.2/tests/test_profile.py +110 -0
- mastodon_py-2.3.2/tests/test_ratelimit.py +157 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_status.py +4 -4
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_streaming.py +170 -31
- mastodon_py-2.3.2/tests/test_streaming_websocket.py +287 -0
- mastodon_py-2.3.2/tests/test_types_base.py +265 -0
- mastodon_py-2.3.2/tests/test_websocket_cassette.py +80 -0
- mastodon_py-2.3.2/tests/websocket_cassette.py +172 -0
- mastodon_py-2.2.2/mastodon/streaming_endpoints.py +0 -103
- mastodon_py-2.2.2/tests/cassettes/test_account_pinned.yaml +0 -525
- mastodon_py-2.2.2/tests/cassettes/test_account_update_credentials.yaml +0 -2093
- mastodon_py-2.2.2/tests/cassettes/test_account_update_credentials_source_and_privacy.yaml +0 -69
- mastodon_py-2.2.2/tests/cassettes/test_attribute_access.yaml +0 -134
- mastodon_py-2.2.2/tests/cassettes/test_bookmarks.yaml +0 -452
- mastodon_py-2.2.2/tests/cassettes/test_date_hook.yaml +0 -134
- mastodon_py-2.2.2/tests/cassettes/test_fetch_next_previous.yaml +0 -1653
- mastodon_py-2.2.2/tests/cassettes/test_fetch_next_previous_after_persist.yaml +0 -1653
- mastodon_py-2.2.2/tests/cassettes/test_fetch_next_previous_from_pagination_info.yaml +0 -1653
- mastodon_py-2.2.2/tests/cassettes/test_get_pagination_info.yaml +0 -1487
- mastodon_py-2.2.2/tests/cassettes/test_grouped_notifications.yaml +0 -580
- mastodon_py-2.2.2/tests/cassettes/test_home_tl.yaml +0 -237
- mastodon_py-2.2.2/tests/cassettes/test_id_hook.yaml +0 -134
- mastodon_py-2.2.2/tests/cassettes/test_id_hook_in_reply_to.yaml +0 -266
- mastodon_py-2.2.2/tests/cassettes/test_id_hook_within_reblog.yaml +0 -269
- mastodon_py-2.2.2/tests/cassettes/test_list_timeline.yaml +0 -589
- mastodon_py-2.2.2/tests/cassettes/test_markers.yaml +0 -257
- mastodon_py-2.2.2/tests/cassettes/test_media_post[False].yaml +0 -35756
- mastodon_py-2.2.2/tests/cassettes/test_media_post[True].yaml +0 -35760
- mastodon_py-2.2.2/tests/cassettes/test_media_post_multiple.yaml +0 -1824
- mastodon_py-2.2.2/tests/cassettes/test_min_max_id.yaml +0 -382
- mastodon_py-2.2.2/tests/cassettes/test_min_max_id_datetimes.yaml +0 -258
- mastodon_py-2.2.2/tests/cassettes/test_min_max_id_datetimes_datetimeobjects.pkl +0 -0
- mastodon_py-2.2.2/tests/cassettes/test_mutes.yaml +0 -62
- mastodon_py-2.2.2/tests/cassettes/test_notification_requests_accept.yaml +0 -1556
- mastodon_py-2.2.2/tests/cassettes/test_report.yaml +0 -263
- mastodon_py-2.2.2/tests/cassettes/test_scheduled_status_datetimeobjects.pkl +0 -0
- mastodon_py-2.2.2/tests/cassettes/test_search.yaml +0 -185
- mastodon_py-2.2.2/tests/cassettes/test_server_time_datetimeobjects.pkl +0 -0
- mastodon_py-2.2.2/tests/cassettes/test_status.yaml +0 -196
- mastodon_py-2.2.2/tests/cassettes/test_status_card.yaml +0 -204
- mastodon_py-2.2.2/tests/cassettes/test_status_context.yaml +0 -193
- mastodon_py-2.2.2/tests/cassettes/test_status_fav_unfav.yaml +0 -263
- mastodon_py-2.2.2/tests/cassettes/test_status_favourited_by.yaml +0 -263
- mastodon_py-2.2.2/tests/cassettes/test_status_mute_unmute.yaml +0 -264
- mastodon_py-2.2.2/tests/cassettes/test_status_pin_unpin.yaml +0 -264
- mastodon_py-2.2.2/tests/cassettes/test_status_post[Content warning-None].yaml +0 -136
- mastodon_py-2.2.2/tests/cassettes/test_status_post[Content warning-direct].yaml +0 -136
- mastodon_py-2.2.2/tests/cassettes/test_status_post[Content warning-private].yaml +0 -136
- mastodon_py-2.2.2/tests/cassettes/test_status_post[Content warning-public].yaml +0 -136
- mastodon_py-2.2.2/tests/cassettes/test_status_post[Content warning-unlisted].yaml +0 -136
- mastodon_py-2.2.2/tests/cassettes/test_status_post[None-None].yaml +0 -134
- mastodon_py-2.2.2/tests/cassettes/test_status_post[None-direct].yaml +0 -134
- mastodon_py-2.2.2/tests/cassettes/test_status_post[None-private].yaml +0 -134
- mastodon_py-2.2.2/tests/cassettes/test_status_post[None-public].yaml +0 -134
- mastodon_py-2.2.2/tests/cassettes/test_status_post[None-unlisted].yaml +0 -134
- mastodon_py-2.2.2/tests/cassettes/test_status_post_with_quote.yaml +0 -276
- mastodon_py-2.2.2/tests/cassettes/test_status_post_with_quote_approval_policy.yaml +0 -202
- mastodon_py-2.2.2/tests/cassettes/test_status_quote_approval_visibility.yaml +0 -597
- mastodon_py-2.2.2/tests/cassettes/test_status_quote_revoke.yaml +0 -348
- mastodon_py-2.2.2/tests/cassettes/test_status_quotes.yaml +0 -193
- mastodon_py-2.2.2/tests/cassettes/test_status_reblog_unreblog.yaml +0 -267
- mastodon_py-2.2.2/tests/cassettes/test_status_reply_with_quote.yaml +0 -476
- mastodon_py-2.2.2/tests/cassettes/test_status_translate.yaml +0 -195
- mastodon_py-2.2.2/tests/cassettes/test_status_update_quote_approval_policy.yaml +0 -206
- mastodon_py-2.2.2/tests/cassettes/test_stream_user_direct.yaml +0 -859
- mastodon_py-2.2.2/tests/cassettes/test_suggested_tags.yaml +0 -196
- mastodon_py-2.2.2/tests/cassettes/test_toot.yaml +0 -134
- mastodon_py-2.2.2/tests/cassettes/test_unauthed_home_tl_throws.yaml +0 -192
- mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_announcement.yaml +0 -97
- mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_extendeddescription.yaml +0 -103
- mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_groupednotificationsresults.yaml +0 -289
- mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instancemediaconfiguration.yaml +0 -1306
- mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_instancetimelinesaccessfeedconfiguration.yaml +0 -443
- mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_notificationgroup.yaml +0 -289
- mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_partialaccountwithavatar.yaml +0 -2314
- mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_reaction.yaml +0 -97
- mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_rule.yaml +0 -1306
- mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_suggestion.yaml +0 -1100
- mastodon_py-2.2.2/tests/cassettes_entity_tests/test_entity_trendinglinkhistory.yaml +0 -248
- mastodon_py-2.2.2/tests/test_pagination.py +0 -169
- mastodon_py-2.2.2/tests/test_types_base.py +0 -110
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/LICENSE +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/MANIFEST.in +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/Mastodon.py.egg-info/dependency_links.txt +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/Mastodon.py.egg-info/top_level.txt +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/03_errors.rst +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/04_auth.rst +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/05_statuses.rst +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/06_accounts.rst +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/07_timelines.rst +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/08_instances.rst +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/09_notifications.rst +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/11_misc.rst +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/13_admin.rst +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/14_contributing.rst +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/Makefile +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/docs/update_everything_page.sh +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/_url_regex.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/async_refresh.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/conversations.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/defaults.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/endorsements.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/errors.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/favourites.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/filters.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/hashtags.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/lists.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/polls.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/preferences.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/push.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/py.typed +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/relationships.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/suggestions.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/timeline.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/mastodon/versions.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/setup.cfg +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/setup.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/README.markdown +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/__init__.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/amewatson.jpg +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_entity_tests/test_entity_accountcreationerrordetailsfield.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_old_pagination/test_fetch_next_previous.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_old_pagination/test_fetch_next_previous_from_pagination_info.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_2_9_2/test_notifications_dismiss.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_2_9_2/test_search.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_2_9_2/test_status_card.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_0_0/test_filter_clientside.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_0_0/test_filter_create.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_0_0/test_filter_serverside.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_0_0/test_filter_update.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_0_0/test_media_post.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_4_0/test_log_in_password.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_4_0/test_log_in_password_incorrect.yaml +0 -0
- {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
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_pre_4_4_0/test_zzz_revoke.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_special/test_scheduled_status_long_datetimeobjects.pkl +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_special/test_scheduled_status_long_part1.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_special/test_scheduled_status_long_part2.yaml +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/cassettes_special/test_scheduled_status_long_text.pkl +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/image.jpg +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_auth.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_blurhash.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_bookmarks.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_constructor.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_create_app.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_domain_blocks.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_errors.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_filters.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_follow_requests.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_hooks.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_instance.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_markers.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_push.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_quotes.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_reports.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_search.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_status_length.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_timeline.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_trends.py +0 -0
- {mastodon_py-2.2.2 → mastodon_py-2.3.2}/tests/test_zzz_revoke.py +0 -0
- {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.
|
|
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.
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Mastodon.py
|
|
3
|
-
Version: 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.
|
|
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.
|
|
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
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
147
|
-
and
|
|
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
|
|
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
|