fastapi 0.120.0__py3-none-any.whl → 0.120.2__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/v2.py +24 -4
- {fastapi-0.120.0.dist-info → fastapi-0.120.2.dist-info}/METADATA +6 -4
- {fastapi-0.120.0.dist-info → fastapi-0.120.2.dist-info}/RECORD +7 -7
- {fastapi-0.120.0.dist-info → fastapi-0.120.2.dist-info}/WHEEL +0 -0
- {fastapi-0.120.0.dist-info → fastapi-0.120.2.dist-info}/entry_points.txt +0 -0
- {fastapi-0.120.0.dist-info → fastapi-0.120.2.dist-info}/licenses/LICENSE +0 -0
fastapi/__init__.py
CHANGED
fastapi/_compat/v2.py
CHANGED
|
@@ -207,11 +207,31 @@ def get_definitions(
|
|
|
207
207
|
override_mode: Union[Literal["validation"], None] = (
|
|
208
208
|
None if separate_input_output_schemas else "validation"
|
|
209
209
|
)
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
validation_fields = [field for field in fields if field.mode == "validation"]
|
|
211
|
+
serialization_fields = [field for field in fields if field.mode == "serialization"]
|
|
212
|
+
flat_validation_models = get_flat_models_from_fields(
|
|
213
|
+
validation_fields, known_models=set()
|
|
214
|
+
)
|
|
215
|
+
flat_serialization_models = get_flat_models_from_fields(
|
|
216
|
+
serialization_fields, known_models=set()
|
|
217
|
+
)
|
|
218
|
+
flat_validation_model_fields = [
|
|
219
|
+
ModelField(
|
|
220
|
+
field_info=FieldInfo(annotation=model),
|
|
221
|
+
name=model.__name__,
|
|
222
|
+
mode="validation",
|
|
223
|
+
)
|
|
224
|
+
for model in flat_validation_models
|
|
225
|
+
]
|
|
226
|
+
flat_serialization_model_fields = [
|
|
227
|
+
ModelField(
|
|
228
|
+
field_info=FieldInfo(annotation=model),
|
|
229
|
+
name=model.__name__,
|
|
230
|
+
mode="serialization",
|
|
231
|
+
)
|
|
232
|
+
for model in flat_serialization_models
|
|
214
233
|
]
|
|
234
|
+
flat_model_fields = flat_validation_model_fields + flat_serialization_model_fields
|
|
215
235
|
input_types = {f.type_ for f in fields}
|
|
216
236
|
unique_flat_model_fields = {
|
|
217
237
|
f for f in flat_model_fields if f.type_ not in input_types
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: fastapi
|
|
3
|
-
Version: 0.120.
|
|
3
|
+
Version: 0.120.2
|
|
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
|
+
License-Expression: MIT
|
|
7
|
+
License-File: LICENSE
|
|
6
8
|
Classifier: Intended Audience :: Information Technology
|
|
7
9
|
Classifier: Intended Audience :: System Administrators
|
|
8
10
|
Classifier: Operating System :: OS Independent
|
|
@@ -22,7 +24,6 @@ Classifier: Framework :: Pydantic
|
|
|
22
24
|
Classifier: Framework :: Pydantic :: 1
|
|
23
25
|
Classifier: Framework :: Pydantic :: 2
|
|
24
26
|
Classifier: Intended Audience :: Developers
|
|
25
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
26
27
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
27
28
|
Classifier: Programming Language :: Python :: 3.8
|
|
28
29
|
Classifier: Programming Language :: Python :: 3.9
|
|
@@ -39,7 +40,7 @@ Project-URL: Repository, https://github.com/fastapi/fastapi
|
|
|
39
40
|
Project-URL: Issues, https://github.com/fastapi/fastapi/issues
|
|
40
41
|
Project-URL: Changelog, https://fastapi.tiangolo.com/release-notes/
|
|
41
42
|
Requires-Python: >=3.8
|
|
42
|
-
Requires-Dist: starlette<0.
|
|
43
|
+
Requires-Dist: starlette<0.50.0,>=0.40.0
|
|
43
44
|
Requires-Dist: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4
|
|
44
45
|
Requires-Dist: typing-extensions>=4.8.0
|
|
45
46
|
Requires-Dist: annotated-doc>=0.0.2
|
|
@@ -129,6 +130,7 @@ The key features are:
|
|
|
129
130
|
<a href="https://www.coderabbit.ai/?utm_source=fastapi&utm_medium=badge&utm_campaign=fastapi" target="_blank" title="Cut Code Review Time & Bugs in Half with CodeRabbit"><img src="https://fastapi.tiangolo.com/img/sponsors/coderabbit.png"></a>
|
|
130
131
|
<a href="https://subtotal.com/?utm_source=fastapi&utm_medium=sponsorship&utm_campaign=open-source" target="_blank" title="The Gold Standard in Retail Account Linking"><img src="https://fastapi.tiangolo.com/img/sponsors/subtotal.svg"></a>
|
|
131
132
|
<a href="https://docs.railway.com/guides/fastapi?utm_medium=integration&utm_source=docs&utm_campaign=fastapi" target="_blank" title="Deploy enterprise applications at startup speed"><img src="https://fastapi.tiangolo.com/img/sponsors/railway.png"></a>
|
|
133
|
+
<a href="https://serpapi.com/?utm_source=fastapi_website" target="_blank" title="SerpApi: Web Search API"><img src="https://fastapi.tiangolo.com/img/sponsors/serpapi.png"></a>
|
|
132
134
|
<a href="https://databento.com/?utm_source=fastapi&utm_medium=sponsor&utm_content=display" target="_blank" title="Pay as you go for market data"><img src="https://fastapi.tiangolo.com/img/sponsors/databento.svg"></a>
|
|
133
135
|
<a href="https://speakeasy.com/editor?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>
|
|
134
136
|
<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>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
fastapi-0.120.
|
|
2
|
-
fastapi-0.120.
|
|
3
|
-
fastapi-0.120.
|
|
4
|
-
fastapi-0.120.
|
|
5
|
-
fastapi/__init__.py,sha256=
|
|
1
|
+
fastapi-0.120.2.dist-info/METADATA,sha256=a8IsNeNdi5v7EWRxg3Yhp0zPiamaRgtS7gjeLH9zKS0,28394
|
|
2
|
+
fastapi-0.120.2.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
3
|
+
fastapi-0.120.2.dist-info/entry_points.txt,sha256=GCf-WbIZxyGT4MUmrPGj1cOHYZoGsNPHAvNkT6hnGeA,61
|
|
4
|
+
fastapi-0.120.2.dist-info/licenses/LICENSE,sha256=Tsif_IFIW5f-xYSy1KlhAy7v_oNEU4lP2cEnSQbMdE4,1086
|
|
5
|
+
fastapi/__init__.py,sha256=EBFXuySE9cFdHp776KGtyn3c2qw3PNEgwUXloTRR1cE,1081
|
|
6
6
|
fastapi/__main__.py,sha256=bKePXLdO4SsVSM6r9SVoLickJDcR2c0cTOxZRKq26YQ,37
|
|
7
7
|
fastapi/_compat/__init__.py,sha256=8fa5XmM6_whr6YWuCs7KDdKR_gZ_AMmaxYW7GDn0eng,2718
|
|
8
8
|
fastapi/_compat/main.py,sha256=WDixlh9_5nfFuwWvbYQJNi8l5nDZdfbl2nMyTriG65c,10978
|
|
@@ -10,7 +10,7 @@ fastapi/_compat/may_v1.py,sha256=uiZpZTEVHBlD_Q3WYUW_BNW24X3yk_OwvHhCgPwTUco,297
|
|
|
10
10
|
fastapi/_compat/model_field.py,sha256=SrSoXEcloGXKAqjR8UDW2869RPgLRFdWTuVgTBhX_Gw,1190
|
|
11
11
|
fastapi/_compat/shared.py,sha256=KPOKDRBmM4mzGLdRZwDyrTIph6Eud9Vb2vil1dxNdV0,7030
|
|
12
12
|
fastapi/_compat/v1.py,sha256=v_YLzo8uyr0HeA7QxNbgaSb332kCcBK9-9PZmOHGkq8,10325
|
|
13
|
-
fastapi/_compat/v2.py,sha256=
|
|
13
|
+
fastapi/_compat/v2.py,sha256=rrQth5LW-k8B0XzZUj6Vj0vpccvwnD5PwlC5OvFxqCY,16577
|
|
14
14
|
fastapi/applications.py,sha256=LMSC56YSekA9_D8LwIkPSJxAEAqltWjTJg9PU0GO6fc,180303
|
|
15
15
|
fastapi/background.py,sha256=YWxNdBckdgMLJlwJJT2sR5NJpkVXQVdbYuuyj8zUYsk,1793
|
|
16
16
|
fastapi/cli.py,sha256=OYhZb0NR_deuT5ofyPF2NoNBzZDNOP8Salef2nk-HqA,418
|
|
@@ -55,4 +55,4 @@ fastapi/testclient.py,sha256=nBvaAmX66YldReJNZXPOk1sfuo2Q6hs8bOvIaCep6LQ,66
|
|
|
55
55
|
fastapi/types.py,sha256=nFb36sK3DSoqoyo7Miwy3meKK5UdFBgkAgLSzQlUVyI,383
|
|
56
56
|
fastapi/utils.py,sha256=Nedm_1OJnL12uHJ85HTPCO-AHfwxCtXObFpBi_0X4xQ,9010
|
|
57
57
|
fastapi/websockets.py,sha256=419uncYObEKZG0YcrXscfQQYLSWoE10jqxVMetGdR98,222
|
|
58
|
-
fastapi-0.120.
|
|
58
|
+
fastapi-0.120.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|