Omer Shamash
653533566e
Allow streamable response classes
...
Basically classes such as `StreamingResponse` in `starlette` cannot work unless specified directly in the response-type due to this serialization concept (which they always fallback to use JSON)
There is the alternative which I opted out of for now, which is pass a `response_serialize: bool` parameter throughout the entire flow, it might be better but I wanted to avoid API changes (even through defaults) until any maintainer gives his opinion on the change
example usage:
```
# Here `response_class` is only used for documentation
@app.get('/test_before', response_class=StreamingResponse)
async def before_fix(msg: str):
async def txt_generator():
for i in range(10):
yield f'event: something\ndata: {i}\n\n'
return StreamingResponse(txt_generator())
# Here `response_class` is actually working
@app.get('/test_after', response_class=StreamingResponse)
async def after_fix(msg: str):
async def txt_generator():
for i in range(10):
yield f'event: something\ndata: {i}\n\n'
returntxt_generator()
```
2024-04-15 13:20:54 +03:00
github-actions
3425c834cc
📝 Update release notes
2024-04-06 15:44:16 +00:00
Anton Yakovlev
91606c3c38
🌐 Add Russian translation for `docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md` ( #11411 )
2024-04-06 10:43:55 -05:00
github-actions
7e161b3f9e
📝 Update release notes
2024-04-04 14:22:38 +00:00
Fabian Falon
9e074c2ed2
📝 Fix typo in `docs/es/docs/async.md` ( #11400 )
2024-04-04 09:20:53 -05:00
github-actions
886dc33f85
📝 Update release notes
2024-04-04 14:20:26 +00:00
Nazaré da Piedade
f810c65e7c
🌐 Add Portuguese translations for `learn/index.md` `resources/index.md` `help/index.md` `about/index.md` ( #10807 )
2024-04-04 09:20:02 -05:00
github-actions
8dfdf69d6b
📝 Update release notes
2024-04-03 16:23:13 +00:00
Lufa1u
7ae1f9003f
🌐 Update Russian translations for deployments docs ( #11271 )
2024-04-03 11:22:47 -05:00
github-actions
247b58e0f5
📝 Update release notes
2024-04-03 15:35:08 +00:00
Sk Imtiaz Ahmed
2e55203879
🌐 Add Bengali translations for `docs/bn/docs/python-types.md` ( #11376 )
2024-04-03 10:34:37 -05:00
github-actions
9490491595
📝 Update release notes
2024-04-03 03:42:35 +00:00
Jordan Shatford
71321f0129
📝 Update OpenAPI client generation docs to use `@hey-api/openapi-ts` ( #11339 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-04-02 22:42:11 -05:00
github-actions
a09c1a034d
📝 Update release notes
2024-04-02 22:38:55 +00:00
github-actions
ebcbe3c325
📝 Update release notes
2024-04-02 22:38:22 +00:00
DoHyun Kim
d6997ab2a0
🌐 Add Korean translation for `docs/ko/docs/tutorial/security/simple-oauth2.md` ( #5744 )
2024-04-02 17:37:23 -05:00
kty4119
5a297971a1
🌐 Add Korean translation for `docs/ko/docs/help-fastapi.md` ( #4139 )
2024-04-02 17:36:57 -05:00
github-actions
a85c02b85c
📝 Update release notes
2024-04-02 22:36:18 +00:00
Dong-Young Kim
c964d04004
🌐 Add Korean translation for `docs/ko/docs/advanced/events.md` ( #5087 )
2024-04-02 17:35:55 -05:00
github-actions
62705820d6
📝 Update release notes
2024-04-02 04:38:47 +00:00
SwftAlpc
31dabcb99c
🌐 Add Japanese translation for `docs/ja/docs/tutorial/path-operation-configuration.md` ( #1954 )
...
Co-authored-by: ryusuke.miyaji <bluce826@gmail.com>
Co-authored-by: ryuckel <36391432+ryuckel@users.noreply.github.com>
Co-authored-by: tokusumi <tksmtoms@gmail.com>
Co-authored-by: T. Tokusumi <41147016+tokusumi@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-04-01 23:38:26 -05:00
github-actions
e68b638f6e
📝 Update release notes
2024-04-02 04:31:41 +00:00
SwftAlpc
6dc9e4a7e4
🌐 Add Japanese translation for `docs/ja/docs/tutorial/request-forms-and-files.md` ( #1946 )
...
Co-authored-by: ryusuke.miyaji <bluce826@gmail.com>
Co-authored-by: ryuckel <36391432+ryuckel@users.noreply.github.com>
Co-authored-by: tokusumi <tksmtoms@gmail.com>
Co-authored-by: T. Tokusumi <41147016+tokusumi@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-04-01 23:31:22 -05:00
github-actions
01c3556e79
📝 Update release notes
2024-04-02 04:21:47 +00:00
Aleksandr Andrukhov
a9b0911470
🌐 Add Russian translation for `docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md` ( #10532 )
2024-04-01 23:21:06 -05:00
github-actions
c07fd2d499
📝 Update release notes
2024-04-02 04:18:33 +00:00
JungWooGeon
bfd6060996
🌐 Add Korean translation for `docs/ko/docs/tutorial/debugging.md` ( #5695 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-04-01 23:18:08 -05:00
github-actions
e98eb07944
📝 Update release notes
2024-04-02 03:23:15 +00:00
Sebastián Ramírez
1a24c1ef05
⬆️ Upgrade version of typer for docs ( #11393 )
2024-04-01 22:21:48 -05:00
Sebastián Ramírez
50a880b39f
🔖 Release version 0.110.1
2024-04-01 22:17:13 -05:00
github-actions
5f96d7ea8a
📝 Update release notes
2024-04-02 03:12:21 +00:00
dependabot[bot]
d3d9f60a1e
⬆ Bump actions/cache from 3 to 4 ( #10988 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-04-01 22:12:00 -05:00
github-actions
2016de07e0
📝 Update release notes
2024-04-02 02:56:08 +00:00
github-actions
c27439d0b4
📝 Update release notes
2024-04-02 02:54:32 +00:00
github-actions
597741771d
📝 Update release notes
2024-04-02 02:53:07 +00:00
Nadav Zingerman
eec612ca8d
🐛 Fix parameterless `Depends()` with generics ( #9479 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-04-01 21:52:56 -05:00
dependabot[bot]
3c39b1cc0b
⬆ Bump pypa/gh-action-pypi-publish from 1.8.11 to 1.8.14 ( #11318 )
...
Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish ) from 1.8.11 to 1.8.14.
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases )
- [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.8.11...v1.8.14 )
---
updated-dependencies:
- dependency-name: pypa/gh-action-pypi-publish
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 21:51:11 -05:00
github-actions
dce7c66275
📝 Update release notes
2024-04-02 02:51:05 +00:00
dependabot[bot]
7fb46eab07
⬆ Bump pillow from 10.1.0 to 10.2.0 ( #11011 )
...
Bumps [pillow](https://github.com/python-pillow/Pillow ) from 10.1.0 to 10.2.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases )
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst )
- [Commits](https://github.com/python-pillow/Pillow/compare/10.1.0...10.2.0 )
---
updated-dependencies:
- dependency-name: pillow
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-04-02 02:50:49 +00:00
dependabot[bot]
cf6070a491
⬆ Bump black from 23.3.0 to 24.3.0 ( #11325 )
...
Bumps [black](https://github.com/psf/black ) from 23.3.0 to 24.3.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/compare/23.3.0...24.3.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 21:50:33 -05:00
github-actions
58a1a7e8e1
📝 Update release notes
2024-04-02 02:49:14 +00:00
Aleksei Kotenko
9c80842cea
♻️ Update mypy ( #11049 )
...
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-04-01 21:48:51 -05:00
github-actions
1fcf3884e1
📝 Update release notes
2024-04-02 02:34:42 +00:00
Nils Lindemann
4d2e77cdb7
🌐 Add German translation for `docs/de/docs/tutorial/response-status-code.md` ( #10357 )
2024-04-01 21:32:57 -05:00
github-actions
2c0c220948
📝 Update release notes
2024-04-02 02:29:00 +00:00
Rafael Barbosa
0cf5ad8619
⬆️ Upgrade Starlette to >=0.37.2,<0.38.0, remove Starlette filterwarning for internal tests ( #11266 )
2024-04-01 21:28:39 -05:00
github-actions
3c4945e9ea
📝 Update release notes
2024-04-02 01:55:09 +00:00
Esteban Maya
ce2a580dd9
👷 Add cron to run test once a week on monday ( #11377 )
2024-04-01 20:54:47 -05:00
github-actions
8ed3b734cd
📝 Update release notes
2024-04-01 23:12:42 +00:00
Sebastián Ramírez
5282481d0f
👥 Update FastAPI People ( #11387 )
...
Co-authored-by: github-actions <github-actions@github.com>
2024-04-01 18:12:23 -05:00