fastapi 0.115.5__py3-none-any.whl → 0.115.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fastapi might be problematic. Click here for more details.
- fastapi/__init__.py +1 -1
- fastapi/_compat.py +3 -3
- fastapi/concurrency.py +2 -2
- {fastapi-0.115.5.dist-info → fastapi-0.115.7.dist-info}/METADATA +9 -9
- {fastapi-0.115.5.dist-info → fastapi-0.115.7.dist-info}/RECORD +8 -8
- {fastapi-0.115.5.dist-info → fastapi-0.115.7.dist-info}/WHEEL +0 -0
- {fastapi-0.115.5.dist-info → fastapi-0.115.7.dist-info}/entry_points.txt +0 -0
- {fastapi-0.115.5.dist-info → fastapi-0.115.7.dist-info}/licenses/LICENSE +0 -0
fastapi/__init__.py
CHANGED
fastapi/_compat.py
CHANGED
|
@@ -21,12 +21,10 @@ from typing import (
|
|
|
21
21
|
from fastapi.exceptions import RequestErrorModel
|
|
22
22
|
from fastapi.types import IncEx, ModelNameMap, UnionType
|
|
23
23
|
from pydantic import BaseModel, create_model
|
|
24
|
-
from pydantic.version import VERSION as
|
|
24
|
+
from pydantic.version import VERSION as PYDANTIC_VERSION
|
|
25
25
|
from starlette.datastructures import UploadFile
|
|
26
26
|
from typing_extensions import Annotated, Literal, get_args, get_origin
|
|
27
27
|
|
|
28
|
-
# Reassign variable to make it reexported for mypy
|
|
29
|
-
PYDANTIC_VERSION = P_VERSION
|
|
30
28
|
PYDANTIC_VERSION_MINOR_TUPLE = tuple(int(x) for x in PYDANTIC_VERSION.split(".")[:2])
|
|
31
29
|
PYDANTIC_V2 = PYDANTIC_VERSION_MINOR_TUPLE[0] == 2
|
|
32
30
|
|
|
@@ -47,6 +45,8 @@ sequence_annotation_to_type = {
|
|
|
47
45
|
|
|
48
46
|
sequence_types = tuple(sequence_annotation_to_type.keys())
|
|
49
47
|
|
|
48
|
+
Url: Type[Any]
|
|
49
|
+
|
|
50
50
|
if PYDANTIC_V2:
|
|
51
51
|
from pydantic import PydanticSchemaGenerationError as PydanticSchemaGenerationError
|
|
52
52
|
from pydantic import TypeAdapter
|
fastapi/concurrency.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from contextlib import asynccontextmanager as asynccontextmanager
|
|
2
2
|
from typing import AsyncGenerator, ContextManager, TypeVar
|
|
3
3
|
|
|
4
|
-
import anyio
|
|
4
|
+
import anyio.to_thread
|
|
5
5
|
from anyio import CapacityLimiter
|
|
6
6
|
from starlette.concurrency import iterate_in_threadpool as iterate_in_threadpool # noqa
|
|
7
7
|
from starlette.concurrency import run_in_threadpool as run_in_threadpool # noqa
|
|
@@ -28,7 +28,7 @@ async def contextmanager_in_threadpool(
|
|
|
28
28
|
except Exception as e:
|
|
29
29
|
ok = bool(
|
|
30
30
|
await anyio.to_thread.run_sync(
|
|
31
|
-
cm.__exit__, type(e), e,
|
|
31
|
+
cm.__exit__, type(e), e, e.__traceback__, limiter=exit_limiter
|
|
32
32
|
)
|
|
33
33
|
)
|
|
34
34
|
if not ok:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fastapi
|
|
3
|
-
Version: 0.115.
|
|
3
|
+
Version: 0.115.7
|
|
4
4
|
Summary: FastAPI framework, high performance, easy to learn, fast to code, ready for production
|
|
5
5
|
Author-Email: =?utf-8?q?Sebasti=C3=A1n_Ram=C3=ADrez?= <tiangolo@gmail.com>
|
|
6
6
|
Classifier: Intended Audience :: Information Technology
|
|
@@ -20,6 +20,7 @@ Classifier: Framework :: AsyncIO
|
|
|
20
20
|
Classifier: Framework :: FastAPI
|
|
21
21
|
Classifier: Framework :: Pydantic
|
|
22
22
|
Classifier: Framework :: Pydantic :: 1
|
|
23
|
+
Classifier: Framework :: Pydantic :: 2
|
|
23
24
|
Classifier: Intended Audience :: Developers
|
|
24
25
|
Classifier: License :: OSI Approved :: MIT License
|
|
25
26
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
@@ -36,21 +37,21 @@ Project-URL: Repository, https://github.com/fastapi/fastapi
|
|
|
36
37
|
Project-URL: Issues, https://github.com/fastapi/fastapi/issues
|
|
37
38
|
Project-URL: Changelog, https://fastapi.tiangolo.com/release-notes/
|
|
38
39
|
Requires-Python: >=3.8
|
|
39
|
-
Requires-Dist: starlette<0.
|
|
40
|
+
Requires-Dist: starlette<0.46.0,>=0.40.0
|
|
40
41
|
Requires-Dist: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4
|
|
41
42
|
Requires-Dist: typing-extensions>=4.8.0
|
|
42
43
|
Provides-Extra: standard
|
|
43
44
|
Requires-Dist: fastapi-cli[standard]>=0.0.5; extra == "standard"
|
|
44
45
|
Requires-Dist: httpx>=0.23.0; extra == "standard"
|
|
45
|
-
Requires-Dist: jinja2>=
|
|
46
|
-
Requires-Dist: python-multipart>=0.0.
|
|
46
|
+
Requires-Dist: jinja2>=3.1.5; extra == "standard"
|
|
47
|
+
Requires-Dist: python-multipart>=0.0.18; extra == "standard"
|
|
47
48
|
Requires-Dist: email-validator>=2.0.0; extra == "standard"
|
|
48
49
|
Requires-Dist: uvicorn[standard]>=0.12.0; extra == "standard"
|
|
49
50
|
Provides-Extra: all
|
|
50
51
|
Requires-Dist: fastapi-cli[standard]>=0.0.5; extra == "all"
|
|
51
52
|
Requires-Dist: httpx>=0.23.0; extra == "all"
|
|
52
|
-
Requires-Dist: jinja2>=
|
|
53
|
-
Requires-Dist: python-multipart>=0.0.
|
|
53
|
+
Requires-Dist: jinja2>=3.1.5; extra == "all"
|
|
54
|
+
Requires-Dist: python-multipart>=0.0.18; extra == "all"
|
|
54
55
|
Requires-Dist: itsdangerous>=1.1.0; extra == "all"
|
|
55
56
|
Requires-Dist: pyyaml>=5.3.1; extra == "all"
|
|
56
57
|
Requires-Dist: ujson!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,>=4.0.1; extra == "all"
|
|
@@ -109,7 +110,7 @@ The key features are:
|
|
|
109
110
|
|
|
110
111
|
<!-- sponsors -->
|
|
111
112
|
|
|
112
|
-
<a href="https://
|
|
113
|
+
<a href="https://blockbee.io?ref=fastapi" target="_blank" title="BlockBee Cryptocurrency Payment Gateway"><img src="https://fastapi.tiangolo.com/img/sponsors/blockbee.png"></a>
|
|
113
114
|
<a href="https://platform.sh/try-it-now/?utm_source=fastapi-signup&utm_medium=banner&utm_campaign=FastAPI-signup-June-2023" target="_blank" title="Build, run and scale your apps on a modern, reliable, and secure PaaS."><img src="https://fastapi.tiangolo.com/img/sponsors/platform-sh.png"></a>
|
|
114
115
|
<a href="https://www.porter.run" target="_blank" title="Deploy FastAPI on AWS with a few clicks"><img src="https://fastapi.tiangolo.com/img/sponsors/porter.png"></a>
|
|
115
116
|
<a href="https://bump.sh/fastapi?utm_source=fastapi&utm_medium=referral&utm_campaign=sponsor" target="_blank" title="Automate FastAPI documentation generation with Bump.sh"><img src="https://fastapi.tiangolo.com/img/sponsors/bump-sh.svg"></a>
|
|
@@ -124,7 +125,6 @@ The key features are:
|
|
|
124
125
|
<a href="https://databento.com/" target="_blank" title="Pay as you go for market data"><img src="https://fastapi.tiangolo.com/img/sponsors/databento.svg"></a>
|
|
125
126
|
<a href="https://speakeasy.com?utm_source=fastapi+repo&utm_medium=github+sponsorship" target="_blank" title="SDKs for your API | Speakeasy"><img src="https://fastapi.tiangolo.com/img/sponsors/speakeasy.png"></a>
|
|
126
127
|
<a href="https://www.svix.com/" target="_blank" title="Svix - Webhooks as a service"><img src="https://fastapi.tiangolo.com/img/sponsors/svix.svg"></a>
|
|
127
|
-
<a href="https://www.codacy.com/?utm_source=github&utm_medium=sponsors&utm_id=pioneers" target="_blank" title="Take code reviews from hours to minutes"><img src="https://fastapi.tiangolo.com/img/sponsors/codacy.png"></a>
|
|
128
128
|
<a href="https://www.stainlessapi.com/?utm_source=fastapi&utm_medium=referral" target="_blank" title="Stainless | Generate best-in-class SDKs"><img src="https://fastapi.tiangolo.com/img/sponsors/stainless.png"></a>
|
|
129
129
|
|
|
130
130
|
<!-- /sponsors -->
|
|
@@ -522,7 +522,7 @@ FastAPI depends on Pydantic and Starlette.
|
|
|
522
522
|
|
|
523
523
|
### `standard` Dependencies
|
|
524
524
|
|
|
525
|
-
When you install FastAPI with `pip install "fastapi[standard]"` it comes the `standard` group of optional dependencies:
|
|
525
|
+
When you install FastAPI with `pip install "fastapi[standard]"` it comes with the `standard` group of optional dependencies:
|
|
526
526
|
|
|
527
527
|
Used by Pydantic:
|
|
528
528
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
fastapi-0.115.
|
|
2
|
-
fastapi-0.115.
|
|
3
|
-
fastapi-0.115.
|
|
4
|
-
fastapi-0.115.
|
|
5
|
-
fastapi/__init__.py,sha256=
|
|
1
|
+
fastapi-0.115.7.dist-info/METADATA,sha256=l7odQfcUJbwC775AF8m6m92HVzEp6MkoxMsSzH-Eg1A,27101
|
|
2
|
+
fastapi-0.115.7.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
|
3
|
+
fastapi-0.115.7.dist-info/entry_points.txt,sha256=GCf-WbIZxyGT4MUmrPGj1cOHYZoGsNPHAvNkT6hnGeA,61
|
|
4
|
+
fastapi-0.115.7.dist-info/licenses/LICENSE,sha256=Tsif_IFIW5f-xYSy1KlhAy7v_oNEU4lP2cEnSQbMdE4,1086
|
|
5
|
+
fastapi/__init__.py,sha256=Av5a_p_jzaCRpJx9pGytQuyaCqnrGRP2VFybtfgqocg,1081
|
|
6
6
|
fastapi/__main__.py,sha256=bKePXLdO4SsVSM6r9SVoLickJDcR2c0cTOxZRKq26YQ,37
|
|
7
|
-
fastapi/_compat.py,sha256=
|
|
7
|
+
fastapi/_compat.py,sha256=Rg7kA7uue4Z6yr8T7hf8b7G6PeC_06mK004Nnykijfk,23953
|
|
8
8
|
fastapi/applications.py,sha256=Ix-o9pQAWhEDf9J0Q1hZ0nBB1uP72c-Y3oiYzvrwqiM,176316
|
|
9
9
|
fastapi/background.py,sha256=rouLirxUANrcYC824MSMypXL_Qb2HYg2YZqaiEqbEKI,1768
|
|
10
10
|
fastapi/cli.py,sha256=OYhZb0NR_deuT5ofyPF2NoNBzZDNOP8Salef2nk-HqA,418
|
|
11
|
-
fastapi/concurrency.py,sha256=
|
|
11
|
+
fastapi/concurrency.py,sha256=MirfowoSpkMQZ8j_g0ZxaQKpV6eB3G-dB5TgcXCrgEA,1424
|
|
12
12
|
fastapi/datastructures.py,sha256=b2PEz77XGq-u3Ur1Inwk0AGjOsQZO49yF9C7IPJ15cY,5766
|
|
13
13
|
fastapi/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
fastapi/dependencies/models.py,sha256=Pjl6vx-4nZ5Tta9kJa3-RfQKkXtCpS09-FhMgs9eWNs,1507
|
|
@@ -47,4 +47,4 @@ fastapi/testclient.py,sha256=nBvaAmX66YldReJNZXPOk1sfuo2Q6hs8bOvIaCep6LQ,66
|
|
|
47
47
|
fastapi/types.py,sha256=nFb36sK3DSoqoyo7Miwy3meKK5UdFBgkAgLSzQlUVyI,383
|
|
48
48
|
fastapi/utils.py,sha256=y8Bj5ttMaI9tS4D60OUgXqKnktBr99NdYUnHHV9LgoY,7948
|
|
49
49
|
fastapi/websockets.py,sha256=419uncYObEKZG0YcrXscfQQYLSWoE10jqxVMetGdR98,222
|
|
50
|
-
fastapi-0.115.
|
|
50
|
+
fastapi-0.115.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|