Skip to content

✨ Add support for streaming JSON Lines and binary data with yield#15022

Merged
tiangolo merged 25 commits intomasterfrom
stream-json
Feb 27, 2026
Merged

✨ Add support for streaming JSON Lines and binary data with yield#15022
tiangolo merged 25 commits intomasterfrom
stream-json

Conversation

@tiangolo
Copy link
Member

@tiangolo tiangolo commented Feb 27, 2026

✨ Add support for streaming JSON Lines and binary data with yield

This also upgrades Starlette from >=0.40.0 to >=0.46.0, as it's needed to properly unrwap and re-raise exceptions from exception groups.


This will be available in FastAPI 0.134.0, released in the next few hours. 🎉

@tiangolo tiangolo added the feature New feature or request label Feb 27, 2026
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 27, 2026

Merging this PR will not alter performance

✅ 20 untouched benchmarks


Comparing stream-json (ac362f3) with master (0901b40)1

Open in CodSpeed

Footnotes

  1. No successful run was found on master (5a4d3aa) during the generation of this report, so 0901b40 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@tiangolo tiangolo marked this pull request as ready for review February 27, 2026 18:56
@tiangolo tiangolo merged commit 749cefd into master Feb 27, 2026
39 checks passed
@tiangolo tiangolo deleted the stream-json branch February 27, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant