Something went wrong. Try again.
CLI tools and operational extensions for the void architecture on ATProtocol.
Something went wrong. Try again.
123456789101112131415161718192021import osimport syssys.path.insert(0, '/home/cameron/void/src')
from dotenv import load_dotenvfrom atproto import Client
load_dotenv('/home/cameron/void/.env', override=True)
pds_uri = os.getenv('PDS_URI', 'https://bsky.social')client = Client(base_url=pds_uri)client.login(os.getenv('BSKY_USERNAME'), os.getenv('BSKY_PASSWORD'))
# Get my own profileprofile = client.app.bsky.actor.get_profile({'actor': client.me.did})
print(f"Handle: {profile.handle}")print(f"Display Name: {profile.display_name}")print(f"Description: {profile.description}")print(f"DID: {profile.did}")