Skip to main content

bsky.social client library

Project description

gokyuzu - bluesky python client

Gökyüzü - "sky" in Turkish - is a python client for the bluesky social network.

Install

pip install gokyuzu

Sample Usage

from gokyuzu import Bluesky

bsky = Bluesky("handle.bsky.social", "PASSWORD")
response = bsky.resolveHandle("handle.bsky.social")
print(response.json())

Documentation

List of Implemented API Calls:

  • createAccount(self, email, handle, password, inviteCode)
  • getSession(self)
  • getAccountInviteCodes(self, limit=10)
  • getProfile(self, user_did)
  • getProfiles(self, user_dids)
  • getPopular(self, limit=10, cursor="")
  • getTimeline(self, limit=10, cursor="", algorithm="reverse-chronological")
  • getAuthorFeed(self, handle=None, user_did=None, limit=10, cursor="")
  • getPostThread(self, post_id, limit=10, cursor="")
  • getFollowers(self, handle=None, user_did=None, limit=10, cursor="")
  • getFollows(self, handle=None, user_did=None, limit=10, cursor="")
  • listNotifications(self, limit=10, cursor="")
  • updateSeen(self, limit=10, cursor="")
  • createRecord(self, repo, record, collection)
  • deleteRecord(self, repo, record, collection)
  • follow(self, handle=None, user_did=None)
  • unfollow(self, handle=None, user_did=None)
  • resolveHandle(self, handle)
  • updateHandle(self, handle)

Development

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Running tests

python -m unittest

Publishing to PyPI

# Build for PyPI
python -m build

# Test PyPI
python -m twine upload --repository testpypi dist/*
pip install --index-url https://test.pypi.org/simple/ --no-deps gokyuzu

# PyPI
python -m twine upload dist/*
pip install gokyuzu

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gokyuzu-1.0.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gokyuzu-1.0.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file gokyuzu-1.0.0.tar.gz.

File metadata

  • Download URL: gokyuzu-1.0.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for gokyuzu-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f6be5029459218287f43476ac745bd502476158d6df5b5421d36f470fe2b414d
MD5 9bee3eba08d22e31ea2c49f5a37ebfa7
BLAKE2b-256 2c6637434b865d6f072cd73c8a76035c52c7feef2c92d270125f05cb93dcc619

See more details on using hashes here.

File details

Details for the file gokyuzu-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: gokyuzu-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for gokyuzu-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85d345af997d3fdf4e67c1ec3ec8f99eaa905cc1019c04a16fbbf4ffe2aa86c8
MD5 2fc9f2003ad2f3f3d91497598929308b
BLAKE2b-256 851659f1e95a1c2f34c1b42615b8761b69d100784ee43fa4d5dac88714c42758

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page