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.3.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

blueskysocial-1.3.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for blueskysocial-1.3.0.tar.gz
Algorithm Hash digest
SHA256 f5eab326d5f183ae7b70a65162301f081856308741e8f8ebba2f1265146b4387
MD5 4c1b64499ef261dbdc3315614a2bd3d5
BLAKE2b-256 8c7aae2bfa5903847b0161a5995926b2e26ac69ef797aa1bfa2e1ad701f64189

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for blueskysocial-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 204acb439aaabce613bb7d0ef6649f3b888e3616f3185119c8ed24f2e0fa0284
MD5 8066f0b0e03784c99e772cdd069ec417
BLAKE2b-256 105acdee57bc4256bc5cb1d39980d2f0e896191b40de4c88fc267c821a8a94ef

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