Skip to main content

API for BlueSky social network

Project description

blueskysocial

blueskysocial is a Python library for managing social media posts and images. It provides a Client class for interacting with social media platforms, as well as classes for representing posts and images.

Installation

To install blueskysocial, you can use pip:

pip install blueskysocial

Usage

Making an individual post

from blueskysocial import Client, Post, Image

client = Client(user_name, password)
client.authenticate()

image = Image('path/to/image.jpg', alt_text='This is an image.')
post = Post('Hello, world!', 'This is my first post.', images=[image])
client.post(post)

Posting threads

from blueskysocial import Client, Post, Image

client = Client(user_name, password)
client.authenticate()

image = Image('path/to/image.jpg', alt_text='This is an image.')
post = Post('Hello, world!', 'This is my first post.', images=[image])
second_post = Post('Another Post')
client.post_thread([post,second_post])

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

blueskysocial is licensed under the MIT License. See LICENSE for more information.

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

blueskysocial-1.2.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

blueskysocial-1.2.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file blueskysocial-1.2.0.tar.gz.

File metadata

  • Download URL: blueskysocial-1.2.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for blueskysocial-1.2.0.tar.gz
Algorithm Hash digest
SHA256 322c553456a6a693fcc4c3fb5c72a39f01f76ab0118c5c34045af56bc0d765ea
MD5 d51cfd094da045df80477c49fcf76bf3
BLAKE2b-256 a81fe642f5fc0a0c0a88c14f8adafaa072ac6391e9053aaec55f217ef9ca1638

See more details on using hashes here.

File details

Details for the file blueskysocial-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for blueskysocial-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 012ae4d26f7c6a2810ff32e6e8183cd2f04d68e768dba1055321a805400153cc
MD5 66ce57ba9ba7d441a6975d8af85d1012
BLAKE2b-256 3b9042222551b3390256928e1b02ae3fa042566a0f2834041215d46b62c45203

See more details on using hashes here.

Supported by

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