Skip to content

v0.3.0 — YouTube Shorts · Redis backend · 102 tests

Choose a tag to compare

@Matthew-Selvam Matthew-Selvam released this 21 May 05:53
· 95 commits to main since this release

What's new in v0.3.0

📹 YouTube Shorts adapter

`adapters/youtube.py` — full Data API v3 resumable upload flow:

  • OAuth2 refresh token flow (run once, store, never re-auth)
  • Auto-appends `#Shorts` to description for correct YouTube classification
  • Account-scoped refresh tokens
  • Privacy whitelist (public/unlisted/private)
  • Format key: `youtube_short` { video_path, title?, description?, tags?, privacy?, caption? }

The AI caption adapter also understands YouTube — emits `{title, description}` shape with 100/5000 char enforcement.

🔴 Redis queue backend

`api/queue.py` — opt-in via `REDIS_URL`:

  • Multi-worker safe via guarded `queued → publishing` transition
  • Fast `list_due` via ZSET keyed by scheduled_for epoch
  • Single `QueueProtocol` interface across both backends — worker code unchanged

```bash
docker compose --profile redis up -d # bundles redis:7-alpine
```

`pip install open-dispatch[redis]` to add the optional dep.

✅ Adapter test coverage

30+ new unit tests in `tests/test_adapters.py` + `tests/test_redis_queue.py` — mock-based, no network, no real creds. Every platform exercised across missing-creds / empty-payload / happy-path / HTTP-error paths.

Stats

  • 102 tests passing (up from 60 in v0.2.0)
  • 7 platforms supported: Twitter / X, Bluesky, Telegram, Instagram, LinkedIn, Threads, YouTube Shorts
  • 49 source files, 0 new runtime dependencies (Redis is optional)

Coming next

  • TikTok adapter (still waiting on Content Posting API approval)
  • Postgres queue (for cross-region multi-worker)
  • Media transcoding (per-platform image/video resize)