Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

elizaOS BlueSky Plugin (Python)

Python implementation of the BlueSky plugin for elizaOS using the AT Protocol.

Installation

pip install elizaos-plugin-bluesky

Usage

from elizaos_plugin_bluesky import BlueSkyClient, BlueSkyConfig

# Create configuration
config = BlueSkyConfig(
    handle="your-handle.bsky.social",
    password="your-app-password",
)

# Or load from environment
config = BlueSkyConfig.from_env()

# Create client
async with BlueSkyClient(config) as client:
    # Authenticate
    await client.authenticate()

    # Create a post
    from elizaos_plugin_bluesky import CreatePostRequest, CreatePostContent

    request = CreatePostRequest(
        content=CreatePostContent(text="Hello from Python!")
    )
    post = await client.send_post(request)
    print(f"Created post: {post.uri}")

    # Get timeline
    from elizaos_plugin_bluesky import TimelineRequest

    timeline = await client.get_timeline(TimelineRequest(limit=10))
    for item in timeline.feed:
        print(f"@{item.post.author.handle}: {item.post.record.text}")

Environment Variables

Required:

  • BLUESKY_HANDLE: Your BlueSky handle
  • BLUESKY_PASSWORD: Your app password

Optional:

  • BLUESKY_SERVICE: BlueSky service URL (default: https://bsky.social)
  • BLUESKY_DRY_RUN: Enable dry run mode (default: false)
  • BLUESKY_POLL_INTERVAL: Notification polling interval in seconds (default: 60)
  • BLUESKY_ENABLE_POSTING: Enable automated posting (default: true)
  • BLUESKY_ENABLE_DMS: Enable direct messaging (default: true)

Development

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Type checking
mypy elizaos_plugin_bluesky

# Linting
ruff check .
ruff format .

License

MIT

Metadata

Release files for elizaos-plugin-bluesky 2.0.0a5

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

Source distribution (sdist)

Source distribution for elizaos-plugin-bluesky 2.0.0a5
File Size Uploaded
elizaos_plugin_bluesky-2.0.0a5.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elizaos-plugin-bluesky 2.0.0a5
File Interpreter ABI Platform
elizaos_plugin_bluesky-2.0.0a5-py3-none-any.whl Python 3 none any Details

Total release size: 22.2 kB

Release files / elizaos_plugin_bluesky-2.0.0a5.tar.gz

Download URL elizaos_plugin_bluesky-2.0.0a5.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
64ffd9c3cbd69635e007146c5daf2ba024937dc4cd3e734de9f3e3a5c704096e
BLAKE2b-256 checksum
How to use checksums
1adf30f1971c4818c4fcb770743b9d89d6d06a67cf1ed5f870aac34e6506d13f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / elizaos_plugin_bluesky-2.0.0a5-py3-none-any.whl

Download URL elizaos_plugin_bluesky-2.0.0a5-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6c1c9df795c9237c8572f30f7014df46d3c3a6be970b81147ee6506756bee12
BLAKE2b-256 checksum
How to use checksums
1cdee309911a27bee0fb232fa85c4290f7335b3ae7d64fa7cfa7cdc708660aac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

2.0.0a5 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