.. _dootle.mastodon.actions: ======================= dootle.mastodon.actions ======================= .. py:module:: dootle.mastodon.actions .. autoapi-nested-parse:: See EOF for license/metadata/notes as applicable Classes ------- .. autoapisummary:: dootle.mastodon.actions.MastodonSetup dootle.mastodon.actions.MastodonPost Module Contents =============== .. _dootle.mastodon.actions.MastodonSetup: .. py:class:: MastodonSetup Default Mastodon Setup, using secrets from doot.locs.mastodon_secrets loads the secrets as a chainguard, and accesses mastodon.access_token and mastodon.url ensures thers an "image_temp" location .. py:attribute:: _instance :type: ClassVar[jgdv.Maybe[mastodon.Mastodon]] :value: None .. _dootle.mastodon.actions.MastodonPost: .. py:class:: MastodonPost Default Mastodon Poster .. py:method:: _post_text(_instance, text) -> bool .. py:method:: _post_image(_instance, text, _image_path, _image_desc) -> bool .. py:method:: _handle_resolution(task) -> None .. py:method:: _get_resolution(filepath: pathlib.Path) -> str .. py:method:: _maybe_compress_file(task) -> dict | bool