2025-08-19 08:26:51 +00:00
|
|
|
Utility: Pagination, Blurhash, Other Utilities
|
|
|
|
==============================================
|
2022-11-28 22:50:02 +00:00
|
|
|
.. py:module:: mastodon
|
2025-02-15 20:26:08 +00:00
|
|
|
:no-index:
|
2022-11-28 22:50:02 +00:00
|
|
|
.. py:class: Mastodon
|
|
|
|
|
|
|
|
Pagination
|
|
|
|
----------
|
|
|
|
These functions allow for convenient retrieval of paginated data.
|
|
|
|
|
|
|
|
.. _fetch_next():
|
|
|
|
.. automethod:: Mastodon.fetch_next
|
|
|
|
.. _fetch_previous():
|
|
|
|
.. automethod:: Mastodon.fetch_previous
|
|
|
|
.. _fetch_remaining():
|
|
|
|
.. automethod:: Mastodon.fetch_remaining
|
2025-08-16 16:01:08 +00:00
|
|
|
.. _pagination_iterator():
|
|
|
|
.. automethod:: Mastodon.pagination_iterator
|
|
|
|
.. _get_pagination_info():
|
|
|
|
.. automethod:: Mastodon.get_pagination_info
|
2025-08-16 16:16:02 +00:00
|
|
|
|
2022-11-28 22:50:02 +00:00
|
|
|
Blurhash decoding
|
|
|
|
-----------------
|
|
|
|
This function allows for easy basic decoding of blurhash strings to images.
|
|
|
|
This requires Mastodon.pys optional "blurhash" feature dependencies.
|
|
|
|
|
|
|
|
.. automethod:: Mastodon.decode_blurhash
|
2025-02-15 14:49:49 +00:00
|
|
|
|
|
|
|
Cache control
|
|
|
|
-------------
|
|
|
|
.. automethod:: Mastodon.clear_caches
|
|
|
|
|
|
|
|
Other utilities
|
|
|
|
---------------
|
|
|
|
.. automethod:: Mastodon.get_approx_server_time
|
2025-08-19 08:26:51 +00:00
|
|
|
.. _get_status_length():
|
2025-08-16 17:51:25 +00:00
|
|
|
.. automethod:: Mastodon.get_status_length
|
2025-08-19 08:26:51 +00:00
|
|
|
|