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

Bluesky API client for bluemastodon.
 
This module handles interactions with the Bluesky API, including authentication,
fetching posts, and parsing post content.

 
Classes
       
builtins.object
BlueskyClient

 
class BlueskyClient(builtins.object)
    BlueskyClient(config: bluemastodon.config.BlueskyConfig)
 
Client for interacting with the Bluesky API.
 
  Methods defined here:
__init__(self, config: bluemastodon.config.BlueskyConfig)
Initialize the Bluesky client.
 
Args:
    config: Bluesky configuration with credentials
authenticate(self) -> bool
Authenticate with the Bluesky API.
 
Returns:
    True if authentication was successful, False otherwise
ensure_authenticated(self) -> bool
Check authentication and re-authenticate if needed.
 
Returns:
    True if authenticated, False otherwise
get_recent_posts(self, hours_back: int = 24, limit: int = 20) -> List[bluemastodon.models.BlueskyPost]
Get recent posts from the authenticated user.
 
Args:
    hours_back: How many hours to look back
    limit: Maximum number of posts to return
 
Returns:
    List of BlueskyPost objects
 
Raises:
    ValueError: If not authenticated

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

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