from mastodon import Mastodon from config import TOOT_API_BASE_URL, TOOT_CLIENT_SECRET, TOOT_ACCESS_TOKEN, TOOT_CLIENT_ID ''' https://mastodonpy.readthedocs.io/en/stable/index.html ''' mastodon_client = Mastodon(client_id=TOOT_CLIENT_ID, client_secret=TOOT_CLIENT_SECRET, api_base_url=TOOT_API_BASE_URL, access_token=TOOT_ACCESS_TOKEN)