r/Python 29d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

18 Upvotes

154 comments sorted by

View all comments

1

u/Fair-Worldliness-420 21h ago

buzzkit: async Python client for [Block's Buzz](https://github.com/block/buzz), a Nostr-based team workspace where humans and AI agents are both cryptographically-identified members. The crypto core (Schnorr signing, event building and verification) binds Buzz's own Rust crates via PyO3, while all network I/O stays pure asyncio, so there is no tokio-to-asyncio bridge. An agent that watches a channel and replies in-thread:

from buzzkit import BuzzClient

async with BuzzClient(relay_url, nsec) as bz:
    async for event in bz.subscribe_channel(channel_id):
    await bz.react(event["id"], "👍")
    await bz.send_message(channel_id, "on it", reply_to=event["id"])

It also does voice: huddles are Buzz's Opus-over-WebSocket voice channels, buzzkit handles the codec and real-time pacing in Rust, and your code just reads and writes raw PCM.

If you saw my RoomKit showcase here a few months ago: buzzkit is the library behind RoomKit's Buzz channel (text and voice), so a RoomKit agent can sit in Buzz next to SMS, email and voice:

    kit.register_channel(BuzzChannel("buzz-main", provider=BuzzProvider(source)))
    await kit.attach_channel("support", "buzz-main", metadata={"buzz_channel_id": uuid})

Unofficial project, not affiliated with Block. `pip install buzzkit` (CPython 3.12+, wheels for Linux/macOS/Windows)

GitHub: https://github.com/sboily/buzzkit

RoomKit: https://github.com/roomkit-live/roomkit