Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

AT Protocol Python Library

A wrapper for interacting with the AT Protocol API, specifically for the Bluesky social network.

Note: There are some hard-coded Bluesky method names in this library, so the current version will not work with other AT Protocol implementations. The plan is to change this as new servers become available.

Getting Started

To install the library, run:

pip install pyatproto

Quickstart

import pyatproto as atproto
import os

ENDPOINT = os.environ.get("ATPROTO_ENDPOINT")
USERNAME = os.environ.get("ATPROTO_USERNAME")
PASSWORD = os.environ.get("ATPROTO_PASSWORD")

ap = atproto.AtProtoConfiguration(ENDPOINT, USERNAME, PASSWORD)

create_post = ap.create_post("My First Post")

print(create_post)

Example Scripts

  • quickstart.py: Authenticate and create a post on Bluesky.
  • crawler.py: Find the messages posted by each person a user follows, recursively (rate limits prevent this being used for crawling the whole network without adjusting the logic, however).
  • unroll.py: Find the parent of a message for use with the bsky.link thread unrolling feature.

Contributing

Contributions are welcome, especially those that add more methods to the library. Please open an issue or pull request to contribute to the library.

License

This project is licensed under an MIT 0 License.

Contributors

  • capjamesg

Metadata

Release files for pyatproto 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyatproto 0.2.0
File Size Uploaded
pyatproto-0.2.0.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyatproto 0.2.0
File Interpreter ABI Platform
pyatproto-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / pyatproto-0.2.0.tar.gz

Download URL pyatproto-0.2.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
add36e898f5396cfa19df32dc9c18b7b1ed74734cf1943b683e11dfad5ab28e0
BLAKE2b-256 checksum
How to use checksums
66a587d0bec6df0ad8a21fd52896992bb5c674c68fe5d6a2e45962282d8be995
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release files / pyatproto-0.2.0-py3-none-any.whl

Download URL pyatproto-0.2.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55e31aed68aa946f862d67c1f28268a3c8dd8c0ae47db2aa02102223197d17fd
BLAKE2b-256 checksum
How to use checksums
3fb9f021a44a4e829caf024433fc3956e8e9acb4799e73dcc5d15b363e9e75ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page