Update dependency fastapi to <0.116#3
Open
mend-for-github-com[bot] wants to merge 1 commit intomasterfrom
Open
Update dependency fastapi to <0.116#3mend-for-github-com[bot] wants to merge 1 commit intomasterfrom
mend-for-github-com[bot] wants to merge 1 commit intomasterfrom
Conversation
950bf77 to
ace5b9e
Compare
ace5b9e to
2f9f283
Compare
2f9f283 to
9fac539
Compare
9fac539 to
4434f34
Compare
4434f34 to
6425059
Compare
6425059 to
5c7172b
Compare
5c7172b to
5b407d5
Compare
5b407d5 to
c6af85d
Compare
c6af85d to
39ef32c
Compare
39ef32c to
5a0f59a
Compare
5a0f59a to
5112c22
Compare
5112c22 to
019cdcf
Compare
019cdcf to
ef21c97
Compare
ef21c97 to
b707bd7
Compare
b707bd7 to
ed58240
Compare
ed58240 to
72272cb
Compare
72272cb to
f66a734
Compare
f66a734 to
8de3be2
Compare
8de3be2 to
c3a6bf1
Compare
c3a6bf1 to
e0ca560
Compare
e0ca560 to
55b7618
Compare
55b7618 to
da2fc2a
Compare
da2fc2a to
78fde5a
Compare
78fde5a to
6631208
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
<0.86-><0.116Release Notes
fastapi/fastapi (fastapi)
v0.115.0Compare Source
Highlights
Now you can declare
Query,Header, andCookieparameters with Pydantic models. 🎉QueryParameter ModelsUse Pydantic models for
Queryparameters:Read the new docs: Query Parameter Models.
HeaderParameter ModelsUse Pydantic models for
Headerparameters:Read the new docs: Header Parameter Models.
CookieParameter ModelsUse Pydantic models for
Cookieparameters:Read the new docs: Cookie Parameter Models.
Forbid Extra Query (Cookie, Header) Parameters
Use Pydantic models to restrict extra values for
Queryparameters (also applies toHeaderandCookieparameters).To achieve it, use Pydantic's
model_config = {"extra": "forbid"}:This applies to
Query,Header, andCookieparameters, read the new docs:Features
Query,Cookie,Header. PR #12199 by @tiangolo.Translations
docs/pt/docs/advanced/security/http-basic-auth.md. PR #12195 by @ceb10n.Internal
v0.114.2Compare Source
Fixes
alias. PR #12194 by @Wurstnase.Translations
docs/pt/docs/tutorial/request-form-models.md. PR #12175 by @ceb10n.docs/zh/docs/project-generation.md. PR #12170 by @waketzheng.docs/nl/docs/python-types.md. PR #12158 by @maxscheijen.Internal
v0.114.1Compare Source
Refactors
Docs
docs/en/docs/environment-variables.md. PR #12169 by @prometek.Translations
docs/pt/docs/virtual-environments.md. PR #12163 by @marcelomarkus.docs/pt/docs/environment-variables.md. PR #12162 by @marcelomarkus.docs/pt/docs/tutorial/testing.md. PR #12164 by @marcelomarkus.docs/pt/docs/tutorial/debugging.md. PR #12165 by @marcelomarkus.docs/ko/docs/project-generation.md. PR #12157 by @BORA040126.Internal
issue-manager.yml. PR #12159 by @tiangolo.fastapi/params.py. PR #12143 by @surreal30.v0.114.0Compare Source
You can restrict form fields to only include those declared in a Pydantic model and forbid any extra field sent in the request using Pydantic's
model_config = {"extra": "forbid"}:Read the new docs: Form Models - Forbid Extra Form Fields.
Features
Docs
Internal
v0.113.0Compare Source
Now you can declare form fields with Pydantic models:
Read the new docs: Form Models.
Features
Formparameters. PR #12129 by @tiangolo.Internal
v0.112.4Compare Source
This release is mainly a big internal refactor to enable adding support for Pydantic models for
Formfields, but that feature comes in the next release.This release shouldn't affect apps using FastAPI in any way. You don't even have to upgrade to this version yet. It's just a checkpoint. 🤓
Refactors
embedbody fields, do not overwrite fields, compute once per router, refactor internals in preparation for Pydantic models inForm,Queryand others. PR #12117 by @tiangolo.Internal
Formparameters" to make a checkpoint release. PR #12128 by @tiangolo.Formparameters. PR #12127 by @tiangolo. Reverted to make a checkpoint release with only refactors.v0.112.3Compare Source
This release is mainly internal refactors, it shouldn't affect apps using FastAPI in any way. You don't even have to upgrade to this version yet. There are a few bigger releases coming right after. 🚀
Refactors
check_file_field(), rename toensure_multipart_is_installed()to clarify its purpose. PR #12106 by @tiangolo.create_response_field()tocreate_model_field()as it's used for more than response models. PR #12103 by @tiangolo.solve_dependencies()using dataclasses. PR #12100 by @tiangolo.analyze_param()to structure data with dataclasses instead of tuple. PR #12099 by @tiangolo.Docs
time.perf_counter()in middlewares. PR #12095 by @tiangolo.time.time()totime.perf_counter(). PR #11957 by @domdent.docs_src/path_params_numeric_validations/tutorial006.py. PR #11478 by @MuhammadAshiqAmeer.docs/en/docs/async.md. PR #12062 by @Alec-Gillis.response_classparameter, validations, and returning a response directly. PR #12067 by @tiangolo.CMDexec form. PR #11960 by @GPla.Translations
docs/nl/docs/features.md. PR #12101 by @maxscheijen.docs/pt/docs/advanced/testing-events.md. PR #12108 by @ceb10n.docs/pt/docs/advanced/security/index.md. PR #12114 by @ceb10n.docs/nl/docs/index.md. PR #12042 by @svlandeg.docs/zh/docs/how-to/index.md. PR #12070 by @synthpop123.Internal
include-hidden-filestoTruewhen using theupload-artifactGH action. PR #12118 by @svlandeg.latest-changesGitHub Action. PR #12073 by @tiangolo.v0.112.2Compare Source
Fixes
allow_inf_nanoption for Param and Body classes. PR #11867 by @giunio-prc.app.include_routermerges nested lifespans. PR #9630 by @Lancetnik.Refactors
FastAPI.add_api_route(). PR #10240 by @ordinary-jamie.Docs
docs/en/docs/virtual-environments.md. PR #12064 by @aymenkrifa.Security. PR #11168 by @0shah0.docs/en/docs/tutorial/body-multiple-params.md. PR #11978 by @svlandeg.email-validatordependency with dash. PR #11515 by @jirikuncar.docs/es/docs/project-generation.md. PR #11947 by @alejsdev.compresslevelparameter on docs forGZipMiddleware. PR #11350 by @junah201.docs/en/docs/tutorial/body.mdwith Python 3.10 union type example. PR #11415 by @rangzen.Translations
docs/pt/docs/tutorial/request_file.md. PR #12018 by @Joao-Pedro-P-Holanda.docs/ja/docs/learn/index.md. PR #11592 by @ukwhatn.docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md. PR #12028 by @xuvjso.docs/ur/docs/benchmarks.md. PR #10046 by @AhsanSheraz.Internal
.gitignore. PR #11940 by @gitworkflows.v0.112.1Compare Source
Upgrades
>=0.37.2,<0.39.0. PR #11876 by @musicinmybrain.Docs
Translations
docs/pt/docs/tutorial/bigger-applications.md. PR #11971 by @marcelomarkus.docs/pt/docs/advanced/testing-websockets.md. PR #11994 by @ceb10n.docs/pt/docs/advanced/testing-dependencies.md. PR #11995 by @ceb10n.docs/pt/docs/advanced/using-request-directly.md. PR #11956 by @ceb10n.docs/fr/docs/tutorial/body-multiple-params.md. PR #11796 by @pe-brian.docs/zh/docs/tutorial/query-params.md. PR #11557 by @caomingpei.docs/zh/docs/advanced/testing-dependencies.md. PR #11944 by @bestony.docs/pt/docs/advanced/sub-applications.mdanddocs/pt/docs/advanced/behind-a-proxy.md. PR #11856 by @marcelomarkus.docs/pt/docs/tutorial/cors.mdanddocs/pt/docs/tutorial/middleware.md. PR #11916 by @wesinalves.docs/fr/docs/tutorial/path-params-numeric-validations.md. PR #11788 by @pe-brian.Internal
pyproject.toml, shows in PyPI. PR #11152 by @Pierre-VF.deploy_docs_status.pyto account for deploy URLs with or without trailing slash. PR #11965 by @tiangolo.v0.112.0Compare Source
Breaking Changes
pip install "fastapi[standard]"with standard dependencies andpython -m fastapi. PR #11935 by @tiangolo.Summary
Install with:
pip install "fastapi[standard]"Other Changes
fastapi-cli[standard] >=0.0.5.Technical Details
Before this,
fastapiwould include the standard dependencies, with Uvicorn and thefastapi-cli, etc.And
fastapi-slimwould not include those standard dependencies.Now
fastapidoesn't include those standard dependencies unless you install withpip install "fastapi[standard]".Before, you would install
pip install fastapi, now you should include thestandardoptional dependencies (unless you want to exclude one of those):pip install "fastapi[standard]".This change is because having the standard optional dependencies installed by default was being inconvenient to several users, and having to install instead
fastapi-slimwas not being a feasible solution.Discussed here: #11522 and here: #11525
Docs
Translations
docs/pt/docs/alternatives.md. PR #11931 by @ceb10n.docs/ru/docs/tutorial/dependencies/sub-dependencies.md. PR #10515 by @AlertRED.docs/pt/docs/advanced/response-change-status-code.md. PR #11863 by @ceb10n.docs/pt/docs/reference/background.md. PR #11849 by @lucasbalieiro.docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md. PR #11848 by @Joao-Pedro-P-Holanda.docs/pt/docs/reference/apirouter.md. PR #11843 by @lucasbalieiro.Internal
approved-1. PR #11907 by @tiangolo.v0.111.1Compare Source
Upgrades
orjsonandujsonfrom default dependencies. PR #11842 by @tiangolo.pip install "fastapi[all]". But they not included inpip install fastapi.Docs
docs/en/docs/fastapi-cli.md. PR #11716 by @alejsdev.docs/en/docs/fastapi-cli.md. PR #11715 by @alejsdev.docs/en/docs/tutorial/body-multiple-params.md. PR #11698 by @mwb-u.security/first-steps.md. PR #11674 by @alejsdev.security/first-steps.md. PR #11673 by @alejsdev.path-params-numeric-validations.md. PR #11672 by @alejsdev.AnnotatedandQuery()params. PR #11664 by @tiangolo.fastapi/applications.py. PR #11593 by @petarmaric.fastapi-cli.md. PR #11524 by @svlandeg.Translations
docs/es/docs/how-to/graphql.md. PR #11697 by @camigomezdev.docs/pt/docs/reference/index.md. PR #11840 by @lucasbalieiro.docs/pt/docs/tutorial/dependencies/sub-dependencies.md. PR #11792 by @Joao-Pedro-P-Holanda.docs/tr/docs/tutorial/request-forms.md. PR #11553 by @hasansezertasan.docs/pt/docs/reference/exceptions.md. PR #11834 by @lucasbalieiro.docs/pt/docs/tutorial/dependencies/global-dependencies.md. PR #11826 by @Joao-Pedro-P-Holanda.docs/pt/docs/how-to/general.md. PR #11825 by @lucasbalieiro.docs/pt/docs/advanced/async-tests.md. PR #11808 by @ceb10n.docs/uk/docs/tutorial/first-steps.md. PR #11809 by @vkhoroshchak.docs/pt/docs/tutorial/dependencies/dependencies-in-path-operation-operators.md. PR #11804 by @Joao-Pedro-P-Holanda.docs/zh/docs/fastapi-cli.md. PR #11786 by @logan2d5.docs/pt/docs/advanced/openapi-webhooks.md. PR #11791 by @ceb10n.docs/tutorial/security/oauth2-jwt.md. PR #11781 by @logan2d5.docs/fr/docs/async.md. PR #11787 by @pe-brian.docs/pt/docs/advanced/advanced-dependencies.md. PR #11775 by @ceb10n.docs/pt/docs/tutorial/dependencies/classes-as-dependencies.md. PR #11768 by @Joao-Pedro-P-Holanda.docs/pt/docs/advanced/additional-status-codes.md. PR #11753 by @ceb10n.docs/pt/docs/tutorial/dependencies/index.md. PR #11757 by @Joao-Pedro-P-Holanda.docs/pt/docs/advanced/settings.md. PR #11739 by @Joao-Pedro-P-Holanda.docs/fr/docs/learn/index.md. PR #11712 by @benjaminvandammeholberton.docs/pt/docs/how-to/index.md. PR #11731 by @vhsenna.docs/pt/docs/advanced/additional-responses.md. PR #11736 by @ceb10n.docs/pt/docs/advanced/benchmarks.md. PR #11713 by @ceb10n.docs/ko/docs/tutorial/response-status-code.md. PR #11718 by @nayeonkinn.docs/ko/docs/tutorial/extra-data-types.md. PR #11711 by @nayeonkinn.docs/ko/docs/tutorial/body-nested-models.md. PR #11710 by @nayeonkinn.docs/pt/docs/advanced/fastapi-cli.md. PR #11641 by @ayr-ton.docs/zh-hant/docs/fastapi-people.md. PR #11639 by @hsuanchi.docs/tr/docs/advanced/index.md. PR #11606 by @hasansezertasan.docs/tr/docs/deployment/cloud.md. PR #11610 by @hasansezertasan.docs/tr/docs/advanced/security/index.md. PR #11609 by @hasansezertasan.docs/tr/docs/advanced/testing-websockets.md. PR #11608 by @hasansezertasan.docs/tr/docs/how-to/general.md. PR #11607 by @hasansezertasan.docs/zh/docs/advanced/templates.md. PR #11620 by @chaoless.docs/tr/docs/deployment/index.md. PR #11605 by @hasansezertasan.docs/tr/docs/tutorial/static-files.md. PR #11599 by @hasansezertasan.docs/pl/docs/fastapi-people.md. PR #10196 by @isulim.docs/tr/docs/advanced/wsgi.md. PR #11575 by @hasansezertasan.docs/tr/docs/tutorial/cookie-params.md. PR #11561 by @hasansezertasan.docs/ru/docs/about/index.md. PR #10961 by @s111d.docs/zh/docs/tutorial/sql-databases.md. PR #11539 by @chaoless.docs/zh/docs/how-to/configure-swagger-ui.md. PR #11501 by @Lucas-lyh./docs/advanced/security/http-basic-auth.md. PR #11512 by @nick-cjyx9.Internal
v0.111.0Compare Source
Features
fastapicommand. PR #11522 by @tiangolo.Try it out with:
Refactors
fastapi-slimincluding optional extrasfastapi-slim[standard], andfastapiincluding by default the samestandardextras. PR #11503 by @tiangolo.v0.110.3Compare Source
Latest Changes
Docs
fastapi/security/api_key.py. PR #11481 by @ch33zer.security/http.py. PR #11455 by @omarmoo5.Translations
docs/zh-hant/benchmarks.md. PR #11484 by @KNChiu.docs/zh/docs/fastapi-people.md. PR #11476 by @billzhong.docs/zh/docs/how-to/index.mdanddocs/zh/docs/how-to/general.md. PR #11443 by @billzhong.docs/es/docs/tutorial/cookie-params.md. PR #11410 by @fabianfalon.Internal
v0.110.2Compare Source
Fixes
UndefinedType. PR #9929 by [@arjwilliams](https://togithub.com/arjwilliamConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.