Add SSE/chunked streaming support to the SDK
@rickstaa is already working on this.
Since Jun 15, 2026.
Assessment
This issue has not been assessed yet.
Description
What
Add SSE / chunked streaming support to call_runner in the Python SDK, so callers can consume live runner responses incrementally instead of waiting for the full body.
http.open_stream()— opens an HTTP request and hands back the live(session, response)without reading the body. Caller owns both. No total timeout (streams run indefinitely); only connect/first-byte are bounded. RaisesLivepeerHTTPErroron>= 400.LiveRunnerCallStream— returned bycall_runner(..., stream=True). Owns the aiohttp session/response, is an async context manager (or callaclose()), and exposes the body viaaiter_bytes()/aiter_lines()plusstatus/headers/content_type/runner.- Payment — streaming reuses the existing per-call 402 challenge/retry path;
open_streamraises before any body, so the payment retry catches it exactly like the non-streaming path. - Export
LiveRunnerCallStreamfrom the package root.
Why
Live runner apps that stream output (token-by-token LLM responses, progressive media) need an incremental response path in the SDK, without standing up the trickle/lv2v continuous-payment flow. This SSE path is one job, one upfront payment.
Implementation
Implemented in livepeer/livepeer-python-gateway#25 (builds on the live-runner work in #20).
- Dominant language
- Python
- Stars
- 1
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from livepeer/livepeer-python-gateway
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
livepeer/livepeer-python-gateway#64 · 1 comment ·
-
Improvement
Difficulty 1/5 Under an hour Newbie friendliness 68/100
livepeer/livepeer-python-gateway#27 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 70/100
livepeer/livepeer-python-gateway#12 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 76/100
livepeer/livepeer-python-gateway#62 · 3 comments ·
All issues in livepeer/livepeer-python-gateway
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100