atprotocol
🚧 Under construction 🚧
Python 3.10 wrapper for the ATProtocol API. It aims to closely emulate the Typescript implementation, including:
- APIs for ATProtocol and Bluesky
- Validation and (almost) complete types
Getting started
First install the package:
pip install atprotocol
Then in your application:
from atprotocol.bsky import BskyAgent
agent = BskyAgent()
Usage
Session management
Log into a server using these APIs. You'll need an active session for most methods.
from atprotocol.bsky import BskyAgent
agent = BskyAgent()
agent.login(identifier='jett.ai', password='letsgoduke')
API calls
These are the calls currently available in atprotocol. More are being added regularly.
# Feeds and content
agent.get_timeline()
agent.get_author_feed(actor, limit)
agent.get_post_thread(uri, depth)
agent.get_likes(uri, cid, limit)
agent.get_reposted_by(uri, cid, limit)
# Social graph
agent.get_followers(actor)
# Actors
agent.get_profile(actor)
agent.get_profiles(actors)
agent.search_actors(term, limit)
# Session management
agent.login(params)
Advanced
Generic agent
If you want a generic AT Protocol agent without methods related to the Bluesky social lexicon, use the AtpAgent instead of the BskyAgent.
from atprotocol import AtpAgent
agent = AtpAgent(service='https://example.com')
License
MIT
Metadata
Release files for atprotocol 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| atprotocol-0.0.2.tar.gz | 11.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atprotocol-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.4 kB
Release files / atprotocol-0.0.2.tar.gz
| Download URL | atprotocol-0.0.2.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6786c33a89842f62e485841a63eefb0158bf0d86b1a4e6e86c1e8d5151dd4948
|
|
BLAKE2b-256 checksum How to use checksums |
789c0f8ee2cd93dd07e9c22c979cd33fdf70ee649b73b79df9b6c27816db4a5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.8 Darwin/21.6.0
|
Release files / atprotocol-0.0.2-py3-none-any.whl
| Download URL | atprotocol-0.0.2-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa53d49bad5e0f2ca9d755d080e8eb481cdf20504c2acc2b8a9265850b551076
|
|
BLAKE2b-256 checksum How to use checksums |
8918658e1b55af0c35b9a075ce0e5c7e36dbb27c8a6afd8d55ad0bcb61446951
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.8 Darwin/21.6.0
|