Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@halcy halcy released this 15 Feb 20:58

This is a big release. Everything for 4.3.0 support has been added, a lot of refactoring has happened, the library is now fully typed. Backwards compatibility SHOULD have been maintained - no existing code should break - but please be extra careful about upgrading.

  • Absolutely massive rework of entities and typing. There are now proper classes for all entities, and typing is now used throughout the library. There is an attempt here to be backwards compatible, and none of my tests break.
  • Documentation fixes based on the new entities and typing.
  • Added information that streaming API access is now auth mandatory (Thanks @leahoswald)
  • Removed six dependency, since we don't care about 2.x anymore (Thanks @a-detiste)
  • Support level is now 4.3.0
  • Note that logging in with passwords is deprecated and to be removed in 4.4.0
  • Clarify the use of code (Thanks @lasseedfast)
  • Improved docstring for visibility (Thanks @ashwinvis)
  • Added offset parameter to trending_statuses (Thanks @Teqed)
  • We're now using space age technology (pyproject.toml - thanks @codl)
  • Add py.typed marker (Thanks @ZeeD for the suggestion)
  • Added CITATION.cff (Thanks @hauschke for the suggestion)
  • Fixed a potential issue with modification to locals (Thanks Konano)
  • Added support for 4.3.0 accounts endpoint (Thanks AlexKalopsia)
  • Fix version parsing for GoToSocial (Thanks gmemstr)
  • Updated docs to reflect the fact that startign with 4.4.0, the password grant type is no longer supported.
  • Added support for following tags (followed_tags, tag_follow, tag_unfollow, tag)
  • Fix library not working with -O2 (Thanks mirabilos for the report)
  • Version check mode now defaults to "none", since it keeps causing more problems than it solves.
  • Document media (Thanks LunarLambda for the report)
  • Added json serialization and deserialization for returned entities
  • Added missing event types and a catch-all event for streaming API
  • Add v1 and v2 variants for instance
  • Add canonical domain block support (admin_canonical_email_blocks, admin_canonical_email_block, admin_canonical_email_block_create, admin_canonical_email_block_delete)
  • Add trending link timeline (timeline_link)
  • Update suggestions endpoint and return value
  • Add with_suspended parameter to account_relationships
  • Add forward_to_domains parameter to reports
  • Add account_delete_avatar and account_delete_header
  • Add statuses method to retrieve multiple statuses at once
  • Add automatic conversion of datetime objects to flake IDs for min/max/since_id fields where appropriate
  • Add notifications_unread_count
  • Add media attachment editing
  • Add email domain blocking support (admin_email_domain_blocks, admin_email_domain_block, admin_email_domain_block_create, admin_email_domain_block_delete)
  • Add instance_extended_description
  • Add instance_translation_languages, translation support (status_translate)
  • Add trend admin functions (admin_trending_tags, admin_trending_statuses, admin_trending_links, admin_approve_trending_link, admin_reject_trending_link, admin_approve_trending_status, admin_reject_trending_status, admin_approve_trending_tag, admin_reject_trending_tag)
  • Add admin IP block functions (admin_ip_blocks, admin_ip_block, admin_ip_block_create, admin_ip_block_delete)
  • Add instance_domain_blocks
  • Add notification policy and requests (notifications_policy, update_notifications_policy, notifications_requests, notification_request, accept_notification_request, reject_notification_request, notifications_merged, accept_multiple_notification_requests, dismiss_multiple_notification_requests)
  • Add instance_languages
  • Add notification grouping (grouped_notifications, grouped_notification, dismiss_grouped_notification, grouped_notification_accounts, unread_grouped_notifications_count)
  • Add v2 filer API (filters_v2, filter_v2, create_filter_v2, update_filter_v2, delete_filter_v2, filter_keywords_v2, add_filter_keyword_v2, delete_filter_keyword_v2, filter_statuses_v2, add_filter_status_v2, filter_status_v2, delete_filter_status_v2)

Docs: https://mastodonpy.readthedocs.io/en/2.0.0/
PyPi: https://pypi.org/project/Mastodon.py/2.0.0/