The AT Protocol SDK for Python

インストール

1 python -m pip install atproto

アプリパスワード

使い方

1 >>> from atproto import Client
2 >>> client = Client()
3 >>> client.login('username', 'application_password or password')

自分の識別子。

1 >>> client.me.did

ポストのリストを取得。

1 >>> def showPosts():
2 ...     posts = client.app.bsky.feed.post.list(client.me.did, limit=10)
3 ...     for uri, post in posts.records.items():
4 ...         print(uri, post.text)
5 ...
6 >>> showPosts()