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.101.0
->==0.108.0
==0.23.3
->==0.26.0
==5.8.0
->==5.13.0
==6.11.0
->==6.13.0
<=8.0.29
-><=8.2.0
==1.25
->==1.26.3
==10.0.1
->==10.2.0
==0.17.1
->==0.19.0
==1.10.1
->==1.10.13
==7.1.2
->==7.4.4
==4.0.0
->==4.1.0
==6.0
->==6.0.1
==13.3.3
->==13.7.0
==0.0.8
->==0.0.14
==0.27.0
->==0.34.0
==0.42.0
->==0.47.1
==0.18.2
->==0.25.0
==1.3.3
->==1.7.0
==0.21.0
->==0.30.2
Release Notes
tiangolo/fastapi (fastapi)
v0.108.0
Compare Source
Upgrades
>=0.29.0,<0.33.0
, update docs and usage of templates with new Starlette arguments. PR #10846 by @tiangolo.v0.107.0
Compare Source
Upgrades
Docs
v0.106.0
Compare Source
Breaking Changes
Using resources from dependencies with
yield
in background tasks is no longer supported.This change is what supports the new features, read below. 🤓
Dependencies with
yield
,HTTPException
and Background TasksDependencies with
yield
now can raiseHTTPException
and other exceptions afteryield
. 🎉Read the new docs here: Dependencies with
yield
andHTTPException
.Before FastAPI 0.106.0, raising exceptions after
yield
was not possible, the exit code in dependencies withyield
was executed after the response was sent, so Exception Handlers would have already run.This was designed this way mainly to allow using the same objects "yielded" by dependencies inside of background tasks, because the exit code would be executed after the background tasks were finished.
Nevertheless, as this would mean waiting for the response to travel through the network while unnecessarily holding a resource in a dependency with yield (for example a database connection), this was changed in FastAPI 0.106.0.
Additionally, a background task is normally an independent set of logic that should be handled separately, with its own resources (e.g. its own database connection).
If you used to rely on this behavior, now you should create the resources for background tasks inside the background task itself, and use internally only data that doesn't depend on the resources of dependencies with
yield
.For example, instead of using the same database session, you would create a new database session inside of the background task, and you would obtain the objects from the database using this new session. And then instead of passing the object from the database as a parameter to the background task function, you would pass the ID of that object and then obtain the object again inside the background task function.
The sequence of execution before FastAPI 0.106.0 was like the diagram in the Release Notes for FastAPI 0.106.0.
The new execution flow can be found in the docs: Execution of dependencies with
yield
.v0.105.0
Compare Source
Features
Annotated[str, Field(), Query()]
. PR #10773 by @tiangolo.Refactors
Docs
Internal
v0.104.1
Compare Source
Fixes
Docs
docs/en/docs/tutorial/metadata.md
. PR #10433 by @worldworm.docs/en/docs/tutorial/path-params.md
. PR #10043 by @giuliowaitforitdavide.docs/en/docs/reference/dependencies.md
. PR #10465 by @suravshresth.docs/en/docs/tutorial/body-nested-models.md
. PR #10468 by @yogabonito.pydantic.Required
indocs/en/docs/tutorial/query-params-str-validations.md
. PR #10469 by @yogabonito.docs/en/docs/reference/index.md
. PR #10467 by @tarsil.Internal
docs/en/docs/async.md
anddocs/zh/docs/async.md
to make them relative. PR #10498 by @hasnatsajid.docs/em/docs/async.md
. PR #10507 by @hasnatsajid.docs/em/docs/index.md
, Python 3.8. PR #10521 by @kerriop.CITATION.cff
file for academic citations. PR #10496 by @tiangolo.v0.104.0
Compare Source
Features
BackgroundTasks
, refactor docs structure. PR #10392 by @tiangolo. New docs at FastAPI Reference - Code API.Upgrades
Internal
v0.103.2
Compare Source
Refactors
Translations
docs/uk/docs/tutorial/extra-data-types.md
. PR #10132 by @ArtemKhymenko.docs/fr/docs/advanced/path-operation-advanced-configuration.md
,docs/fr/docs/alternatives.md
,docs/fr/docs/async.md
,docs/fr/docs/features.md
,docs/fr/docs/help-fastapi.md
,docs/fr/docs/index.md
,docs/fr/docs/python-types.md
,docs/fr/docs/tutorial/body.md
,docs/fr/docs/tutorial/first-steps.md
,docs/fr/docs/tutorial/query-params.md
. PR #10154 by @s-rigaud.docs/zh/docs/async.md
. PR #5591 by @mkdir700.docs/tutorial/security/simple-oauth2.md
. PR #3844 by @jaystone776.docs/ko/docs/deployment/cloud.md
. PR #10191 by @Sion99.docs/ja/docs/deployment/https.md
. PR #10298 by @tamtam-fitness.docs/ru/docs/tutorial/body-fields.md
. PR #10224 by @AlertRED.docs/pl/docs/help-fastapi.md
. PR #10121 by @romabozhanovgithub.docs/ru/docs/tutorial/header-params.md
. PR #10226 by @AlertRED.docs/zh/docs/deployment/versions.md
. PR #10276 by @xzmeng.Internal
v0.103.1
Compare Source
Fixes
Docs
regex
topattern
. PR #10085 by @pablodorrio.docs/en/docs/deployment/server-workers.md
. PR #10066 by @tamtam-fitness.docs/en/docs/tutorial/extra-data-types.md
. PR #10155 by @hasnatsajid.docs/en/docs/tutorial/handling-errors.md
. PR #10170 by @poupapaa.docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
. PR #10172 by @ragul-kachiappan.Translations
docs/pt/docs/tutorial/path-params.md
. PR #10126 by @LecoOliveira.docs/yo/docs/index.md
. PR #10033 by @AfolabiOlaoluwa.docs/uk/docs/python-types.md
. PR #10080 by @rostik1410.docs/vi/docs/tutorial/first-steps.md
anddocs/vi/docs/tutorial/index.md
. PR #10088 by @magiskboy.docs/uk/docs/alternatives.md
. PR #10060 by @whysage.docs/uk/docs/tutorial/index.md
. PR #10079 by @rostik1410.docs/en/docs/how-to/separate-openapi-schemas.md
anddocs/en/docs/tutorial/schema-extra-example.md
. PR #10189 by @xzmeng.docs/zh/docs/advanced/generate-clients.md
. PR #9883 by @funny-cat-happy.Refactors
fastapi/applications.py
. PR #10045 by @AhsanSheraz.Internal
v0.103.0
Compare Source
Features
openapi_examples
in all FastAPI parameters. PR #10152 by @tiangolo.Docs
v0.102.0
Compare Source
Features
separate_input_output_schemas=False
. PR #10145 by @tiangolo.Refactors
Docs
Internal
v0.101.1
Compare Source
Fixes
ResponseValidationError
printable details, to show up in server error logs. PR #10078 by @tiangolo.Refactors
fastapi/params.py
. PR #9854 by @russbiggs.fastapi/concurrency.py
andfastapi/routing.py
. PR #9590 by @ElliottLarsen.Docs
docs/en/docs/contributing.md
. PR #9878 by @VicenteMerino.docs/en/docs/tutorial/bigger-applications.md
. PR #9806 by @theonlykingpin.Translations
docs/ja/docs/deployment/concepts.md
. PR #10062 by @tamtam-fitness.docs/ja/docs/deployment/server-workers.md
. PR #10064 by @tamtam-fitness.docs/ja/docs/deployment/docker.md
. PR #10073 by @tamtam-fitness.docs/uk/docs/fastapi-people.md
. PR #10059 by @rostik1410.docs/uk/docs/tutorial/cookie-params.md
. PR #10032 by @rostik1410.docs/ru/docs/deployment/docker.md
. PR #9971 by @Xewus.docs/vi/docs/python-types.md
. PR #10047 by @magiskboy.docs/ru/docs/tutorial/dependencies/global-dependencies.md
. PR #9970 by @dudyaosuplayer.docs/ur/docs/benchmarks.md
. PR #9974 by @AhsanSheraz.Internal
encode/httpx (httpx)
v0.26.0
Compare Source
Added
proxy
argument was added. You should use theproxy
argument instead of the deprecatedproxies
, or usemounts=
for more complex configurations. (#2879)Deprecated
proxies
argument is now deprecated. It will still continue to work, but it will be removed in the future. (#2879)Fixed
NO_PROXY
envvar cases when a fully qualified URL is supplied as the value. (#2741)raw_path
does not include URL query component. (#2999)Response.iter_text()
cannot yield empty strings. (#2998)v0.25.2
Compare Source
Added
__init__()
methods. (#2938)v0.25.1
Compare Source
Added
Fixed
ValueError
onResponse.encoding
being set afterResponse.text
has been accessed. (#2852)v0.25.0
Compare Source
Removed
Added
Extensions
fromMapping[Str, Any]
toMutableMapping[Str, Any]
. (#2803)socket_options
argument tohttpx.HTTPTransport
andhttpx.AsyncHTTPTransport
classes. (#2716)Response.raise_for_status()
method now returns the response instance. For example:data = httpx.get('...').raise_for_status().json()
. (#2776)Fixed
500
error response instead of exceptions whenraise_app_exceptions=False
is set onASGITransport
. (#2669)WSGITransport
environs have aSERVER_PROTOCOL
. (#2708)%2F
in query parameters (#2723)httpstatuses.com
for HTTP error reference (#2768)v0.24.1
Compare Source
Added
InvalidURL
exceptions. (#2675)Fixed
NO_PROXY
environment variable. (#2659)NetRCAuth()
toNone
to use the stdlib default. (#2667)v0.24.0
Compare Source
Changed
TRACE
log level, and we no longer use theHTTPX_LOG_LEVEL
environment variable to auto-configure logging. We now have a significant amount ofDEBUG
logging available at the network level. Full documentation is available at https://www.python-httpx.org/logging/ (#2547, encode/httpcore#648)Response.iter_lines()
method now matches the stdlib behaviour and does not include the newline characters. It also resolves a performance issue. (#2423)requests
, but is in line with browser behavior in Chrome, Safari, and Firefox. Both options are RFC valid. (#2543)httpx.NetRCAuth()
authentication class. See the documentation at https://www.python-httpx.org/advanced/#netrc-support (#2525)Removed
rfc3986
dependancy has been removed. (#2252)python/importlib_resources (importlib_resources)
v5.13.0
Compare Source
v5.12.0
Compare Source
v5.11.1
Compare Source
v5.11.0
Compare Source
v5.10.4
Compare Source
v5.10.3
Compare Source
v5.10.2
Compare Source
v5.10.1
Compare Source
v5.10.0
Compare Source
v5.9.0
Compare Source
v5.8.1
Compare Source
DiamondLightSource/ispyb-api (ispyb)
v6.13.0
Compare Source
ispyb.job
: bug fix - sweeps may start counting at 0v6.12.1
Compare Source
v6.12.0
Compare Source
insert_subsample_for_image_full_path()
to use stored procedure v2 and add optional parameterexperiment_type
numpy/numpy (numpy)
v1.26.3
Compare Source
v1.26.2
: 1.26.2 releaseCompare Source
NumPy 1.26.2 Release Notes
NumPy 1.26.2 is a maintenance release that fixes bugs and regressions
discovered after the 1.26.1 release. The 1.26.release series is the last
planned minor release series before NumPy 2.0. The Python versions
supported by this release are 3.9-3.12.
Contributors
A total of 13 people contributed to this release. People with a "+" by
their names contributed a patch for the first time.
Pull requests merged
A total of 25 pull requests were merged for this release.
import_array()
noexcept
to shuffle helpersallow-noblas
option to true.np.dtype
to itself doesn't crashChecksums
MD5
Configuration
📅 Schedule: Branch creation - "after 7am and before 4pm on monday" in timezone Europe/London, 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.