bluemastodon.mastodon
index
/Users/tcole/code/claude/social-sync/src/bluemastodon/mastodon.py

Mastodon API client for bluemastodon.
 
This module handles interactions with the Mastodon API, including authentication,
posting content, and checking for duplicates.

 
Modules
       
re

 
Classes
       
builtins.object
MastodonClient

 
class MastodonClient(builtins.object)
    MastodonClient(config: bluemastodon.config.MastodonConfig)
 
Client for interacting with the Mastodon API.
 
  Methods defined here:
__init__(self, config: bluemastodon.config.MastodonConfig)
Initialize the Mastodon client.
 
Args:
    config: Configuration for the Mastodon API
ensure_authenticated(self) -> bool
Check authentication and re-verify if needed.
 
Returns:
    True if authenticated, False otherwise
post(self, post: bluemastodon.models.SocialPost) -> Optional[bluemastodon.models.MastodonPost]
Post content to Mastodon.
 
Args:
    post: The post to create on Mastodon
 
Returns:
    MastodonPost object if successful, None if failed
verify_credentials(self) -> bool
Verify the credentials for the Mastodon client.
 
Returns:
    True if credentials are valid, False otherwise

Data descriptors defined here:
__dict__
dictionary for instance variables
__weakref__
list of weak references to the object

 
Data
        List = typing.List
Optional = typing.Optional
Tuple = typing.Tuple
logger = <loguru.logger handlers=[(id=0, level=10, sink=<stderr>)]>