social media crossposting tool. 3rd time's the charm
mastodon misskey crossposting bluesky
1from multiprocessing import Value 2 3 4URI = "at://" 5URI_LEN = len(URI) 6 7 8class AtUri: 9 @classmethod 10 def record_uri(cls, uri: str) -> tuple[str, str, str]: 11 did, collection, rid = uri[URI_LEN:].split("/") 12 if not (did and collection and rid): 13 raise ValueError(f"Ivalid record uri {uri}!") 14 return did, collection, rid