dmoggles / blueskysocial

python client api for Bluesky Social network
MIT License
4 stars 0 forks source link

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()
client.authenticate(user_name, password)

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.