fastapi 0.119.1__py3-none-any.whl → 0.120.0__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/applications.py +2 -1
- fastapi/background.py +2 -1
- fastapi/datastructures.py +2 -1
- fastapi/encoders.py +2 -1
- fastapi/exceptions.py +2 -1
- fastapi/openapi/docs.py +2 -1
- fastapi/param_functions.py +2 -1
- fastapi/routing.py +2 -1
- fastapi/security/api_key.py +2 -1
- fastapi/security/http.py +2 -1
- fastapi/security/oauth2.py +2 -1
- fastapi/security/open_id_connect_url.py +2 -1
- {fastapi-0.119.1.dist-info → fastapi-0.120.0.dist-info}/METADATA +2 -1
- {fastapi-0.119.1.dist-info → fastapi-0.120.0.dist-info}/RECORD +18 -18
- {fastapi-0.119.1.dist-info → fastapi-0.120.0.dist-info}/WHEEL +0 -0
- {fastapi-0.119.1.dist-info → fastapi-0.120.0.dist-info}/entry_points.txt +0 -0
- {fastapi-0.119.1.dist-info → fastapi-0.120.0.dist-info}/licenses/LICENSE +0 -0
fastapi/__init__.py
CHANGED
fastapi/applications.py
CHANGED
|
@@ -13,6 +13,7 @@ from typing import (
|
|
|
13
13
|
Union,
|
|
14
14
|
)
|
|
15
15
|
|
|
16
|
+
from annotated_doc import Doc
|
|
16
17
|
from fastapi import routing
|
|
17
18
|
from fastapi.datastructures import Default, DefaultPlaceholder
|
|
18
19
|
from fastapi.exception_handlers import (
|
|
@@ -43,7 +44,7 @@ from starlette.requests import Request
|
|
|
43
44
|
from starlette.responses import HTMLResponse, JSONResponse, Response
|
|
44
45
|
from starlette.routing import BaseRoute
|
|
45
46
|
from starlette.types import ASGIApp, ExceptionHandler, Lifespan, Receive, Scope, Send
|
|
46
|
-
from typing_extensions import Annotated,
|
|
47
|
+
from typing_extensions import Annotated, deprecated
|
|
47
48
|
|
|
48
49
|
AppType = TypeVar("AppType", bound="FastAPI")
|
|
49
50
|
|
fastapi/background.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
from typing import Any, Callable
|
|
2
2
|
|
|
3
|
+
from annotated_doc import Doc
|
|
3
4
|
from starlette.background import BackgroundTasks as StarletteBackgroundTasks
|
|
4
|
-
from typing_extensions import Annotated,
|
|
5
|
+
from typing_extensions import Annotated, ParamSpec
|
|
5
6
|
|
|
6
7
|
P = ParamSpec("P")
|
|
7
8
|
|
fastapi/datastructures.py
CHANGED
|
@@ -10,6 +10,7 @@ from typing import (
|
|
|
10
10
|
cast,
|
|
11
11
|
)
|
|
12
12
|
|
|
13
|
+
from annotated_doc import Doc
|
|
13
14
|
from fastapi._compat import (
|
|
14
15
|
CoreSchema,
|
|
15
16
|
GetJsonSchemaHandler,
|
|
@@ -22,7 +23,7 @@ from starlette.datastructures import Headers as Headers # noqa: F401
|
|
|
22
23
|
from starlette.datastructures import QueryParams as QueryParams # noqa: F401
|
|
23
24
|
from starlette.datastructures import State as State # noqa: F401
|
|
24
25
|
from starlette.datastructures import UploadFile as StarletteUploadFile
|
|
25
|
-
from typing_extensions import Annotated
|
|
26
|
+
from typing_extensions import Annotated
|
|
26
27
|
|
|
27
28
|
|
|
28
29
|
class UploadFile(StarletteUploadFile):
|
fastapi/encoders.py
CHANGED
|
@@ -17,13 +17,14 @@ from types import GeneratorType
|
|
|
17
17
|
from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union
|
|
18
18
|
from uuid import UUID
|
|
19
19
|
|
|
20
|
+
from annotated_doc import Doc
|
|
20
21
|
from fastapi._compat import may_v1
|
|
21
22
|
from fastapi.types import IncEx
|
|
22
23
|
from pydantic import BaseModel
|
|
23
24
|
from pydantic.color import Color
|
|
24
25
|
from pydantic.networks import AnyUrl, NameEmail
|
|
25
26
|
from pydantic.types import SecretBytes, SecretStr
|
|
26
|
-
from typing_extensions import Annotated
|
|
27
|
+
from typing_extensions import Annotated
|
|
27
28
|
|
|
28
29
|
from ._compat import Url, _is_undefined, _model_dump
|
|
29
30
|
|
fastapi/exceptions.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
from typing import Any, Dict, Optional, Sequence, Type, Union
|
|
2
2
|
|
|
3
|
+
from annotated_doc import Doc
|
|
3
4
|
from pydantic import BaseModel, create_model
|
|
4
5
|
from starlette.exceptions import HTTPException as StarletteHTTPException
|
|
5
6
|
from starlette.exceptions import WebSocketException as StarletteWebSocketException
|
|
6
|
-
from typing_extensions import Annotated
|
|
7
|
+
from typing_extensions import Annotated
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
class HTTPException(StarletteHTTPException):
|
fastapi/openapi/docs.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import json
|
|
2
2
|
from typing import Any, Dict, Optional
|
|
3
3
|
|
|
4
|
+
from annotated_doc import Doc
|
|
4
5
|
from fastapi.encoders import jsonable_encoder
|
|
5
6
|
from starlette.responses import HTMLResponse
|
|
6
|
-
from typing_extensions import Annotated
|
|
7
|
+
from typing_extensions import Annotated
|
|
7
8
|
|
|
8
9
|
swagger_ui_default_parameters: Annotated[
|
|
9
10
|
Dict[str, Any],
|
fastapi/param_functions.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
from typing import Any, Callable, Dict, List, Optional, Sequence, Union
|
|
2
2
|
|
|
3
|
+
from annotated_doc import Doc
|
|
3
4
|
from fastapi import params
|
|
4
5
|
from fastapi._compat import Undefined
|
|
5
6
|
from fastapi.openapi.models import Example
|
|
6
|
-
from typing_extensions import Annotated,
|
|
7
|
+
from typing_extensions import Annotated, deprecated
|
|
7
8
|
|
|
8
9
|
_Unset: Any = Undefined
|
|
9
10
|
|
fastapi/routing.py
CHANGED
|
@@ -24,6 +24,7 @@ from typing import (
|
|
|
24
24
|
Union,
|
|
25
25
|
)
|
|
26
26
|
|
|
27
|
+
from annotated_doc import Doc
|
|
27
28
|
from fastapi import params, temp_pydantic_v1_params
|
|
28
29
|
from fastapi._compat import (
|
|
29
30
|
ModelField,
|
|
@@ -76,7 +77,7 @@ from starlette.routing import (
|
|
|
76
77
|
from starlette.routing import Mount as Mount # noqa
|
|
77
78
|
from starlette.types import AppType, ASGIApp, Lifespan, Receive, Scope, Send
|
|
78
79
|
from starlette.websockets import WebSocket
|
|
79
|
-
from typing_extensions import Annotated,
|
|
80
|
+
from typing_extensions import Annotated, deprecated
|
|
80
81
|
|
|
81
82
|
if sys.version_info >= (3, 13): # pragma: no cover
|
|
82
83
|
from inspect import iscoroutinefunction
|
fastapi/security/api_key.py
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
from typing import Optional
|
|
2
2
|
|
|
3
|
+
from annotated_doc import Doc
|
|
3
4
|
from fastapi.openapi.models import APIKey, APIKeyIn
|
|
4
5
|
from fastapi.security.base import SecurityBase
|
|
5
6
|
from starlette.exceptions import HTTPException
|
|
6
7
|
from starlette.requests import Request
|
|
7
8
|
from starlette.status import HTTP_403_FORBIDDEN
|
|
8
|
-
from typing_extensions import Annotated
|
|
9
|
+
from typing_extensions import Annotated
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
class APIKeyBase(SecurityBase):
|
fastapi/security/http.py
CHANGED
|
@@ -2,6 +2,7 @@ import binascii
|
|
|
2
2
|
from base64 import b64decode
|
|
3
3
|
from typing import Optional
|
|
4
4
|
|
|
5
|
+
from annotated_doc import Doc
|
|
5
6
|
from fastapi.exceptions import HTTPException
|
|
6
7
|
from fastapi.openapi.models import HTTPBase as HTTPBaseModel
|
|
7
8
|
from fastapi.openapi.models import HTTPBearer as HTTPBearerModel
|
|
@@ -10,7 +11,7 @@ from fastapi.security.utils import get_authorization_scheme_param
|
|
|
10
11
|
from pydantic import BaseModel
|
|
11
12
|
from starlette.requests import Request
|
|
12
13
|
from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN
|
|
13
|
-
from typing_extensions import Annotated
|
|
14
|
+
from typing_extensions import Annotated
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
class HTTPBasicCredentials(BaseModel):
|
fastapi/security/oauth2.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
2
|
|
|
3
|
+
from annotated_doc import Doc
|
|
3
4
|
from fastapi.exceptions import HTTPException
|
|
4
5
|
from fastapi.openapi.models import OAuth2 as OAuth2Model
|
|
5
6
|
from fastapi.openapi.models import OAuthFlows as OAuthFlowsModel
|
|
@@ -10,7 +11,7 @@ from starlette.requests import Request
|
|
|
10
11
|
from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN
|
|
11
12
|
|
|
12
13
|
# TODO: import from typing when deprecating Python 3.9
|
|
13
|
-
from typing_extensions import Annotated
|
|
14
|
+
from typing_extensions import Annotated
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
class OAuth2PasswordRequestForm:
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
from typing import Optional
|
|
2
2
|
|
|
3
|
+
from annotated_doc import Doc
|
|
3
4
|
from fastapi.openapi.models import OpenIdConnect as OpenIdConnectModel
|
|
4
5
|
from fastapi.security.base import SecurityBase
|
|
5
6
|
from starlette.exceptions import HTTPException
|
|
6
7
|
from starlette.requests import Request
|
|
7
8
|
from starlette.status import HTTP_403_FORBIDDEN
|
|
8
|
-
from typing_extensions import Annotated
|
|
9
|
+
from typing_extensions import Annotated
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
class OpenIdConnect(SecurityBase):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fastapi
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.120.0
|
|
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
|
|
@@ -42,6 +42,7 @@ Requires-Python: >=3.8
|
|
|
42
42
|
Requires-Dist: starlette<0.49.0,>=0.40.0
|
|
43
43
|
Requires-Dist: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4
|
|
44
44
|
Requires-Dist: typing-extensions>=4.8.0
|
|
45
|
+
Requires-Dist: annotated-doc>=0.0.2
|
|
45
46
|
Provides-Extra: standard
|
|
46
47
|
Requires-Dist: fastapi-cli[standard]>=0.0.8; extra == "standard"
|
|
47
48
|
Requires-Dist: httpx<1.0.0,>=0.23.0; extra == "standard"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
fastapi-0.
|
|
2
|
-
fastapi-0.
|
|
3
|
-
fastapi-0.
|
|
4
|
-
fastapi-0.
|
|
5
|
-
fastapi/__init__.py,sha256=
|
|
1
|
+
fastapi-0.120.0.dist-info/METADATA,sha256=VtCdbf9ci1vxLCGnLHuP_29WdBMr6h7VGR3Mb1MvGQQ,28223
|
|
2
|
+
fastapi-0.120.0.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
3
|
+
fastapi-0.120.0.dist-info/entry_points.txt,sha256=GCf-WbIZxyGT4MUmrPGj1cOHYZoGsNPHAvNkT6hnGeA,61
|
|
4
|
+
fastapi-0.120.0.dist-info/licenses/LICENSE,sha256=Tsif_IFIW5f-xYSy1KlhAy7v_oNEU4lP2cEnSQbMdE4,1086
|
|
5
|
+
fastapi/__init__.py,sha256=rVzS1pnDXdhP_nAo8rMVkesJcwNQLsYYgvE9S_56-u0,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
|
|
@@ -11,17 +11,17 @@ fastapi/_compat/model_field.py,sha256=SrSoXEcloGXKAqjR8UDW2869RPgLRFdWTuVgTBhX_G
|
|
|
11
11
|
fastapi/_compat/shared.py,sha256=KPOKDRBmM4mzGLdRZwDyrTIph6Eud9Vb2vil1dxNdV0,7030
|
|
12
12
|
fastapi/_compat/v1.py,sha256=v_YLzo8uyr0HeA7QxNbgaSb332kCcBK9-9PZmOHGkq8,10325
|
|
13
13
|
fastapi/_compat/v2.py,sha256=AcWbeOlPPFwxj0bRXtVe-A4Lio9ovCR7STd-qS5aqOk,15838
|
|
14
|
-
fastapi/applications.py,sha256=
|
|
15
|
-
fastapi/background.py,sha256=
|
|
14
|
+
fastapi/applications.py,sha256=LMSC56YSekA9_D8LwIkPSJxAEAqltWjTJg9PU0GO6fc,180303
|
|
15
|
+
fastapi/background.py,sha256=YWxNdBckdgMLJlwJJT2sR5NJpkVXQVdbYuuyj8zUYsk,1793
|
|
16
16
|
fastapi/cli.py,sha256=OYhZb0NR_deuT5ofyPF2NoNBzZDNOP8Salef2nk-HqA,418
|
|
17
17
|
fastapi/concurrency.py,sha256=MirfowoSpkMQZ8j_g0ZxaQKpV6eB3G-dB5TgcXCrgEA,1424
|
|
18
|
-
fastapi/datastructures.py,sha256=
|
|
18
|
+
fastapi/datastructures.py,sha256=VnWKzzE1EW7KLOTRNWeEqlIoJQASCfgdKOOu5EM3H9A,5813
|
|
19
19
|
fastapi/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
fastapi/dependencies/models.py,sha256=Pjl6vx-4nZ5Tta9kJa3-RfQKkXtCpS09-FhMgs9eWNs,1507
|
|
21
21
|
fastapi/dependencies/utils.py,sha256=weAsXzD81nWm5U0LEa3xnXo9VWMmcFfttQ73vC1M0kw,38633
|
|
22
|
-
fastapi/encoders.py,sha256=
|
|
22
|
+
fastapi/encoders.py,sha256=KAMFJ0sz0FFl0Pg4sUiXiuq94av3mLdLZnzeYp9f4wM,11343
|
|
23
23
|
fastapi/exception_handlers.py,sha256=YVcT8Zy021VYYeecgdyh5YEUjEIHKcLspbkSf4OfbJI,1275
|
|
24
|
-
fastapi/exceptions.py,sha256=
|
|
24
|
+
fastapi/exceptions.py,sha256=GuwxWZSXM44SbN3NCZXDfw9g2mNM5XM2FXOWPZkcOI4,4994
|
|
25
25
|
fastapi/logger.py,sha256=I9NNi3ov8AcqbsbC9wl1X-hdItKgYt2XTrx1f99Zpl4,54
|
|
26
26
|
fastapi/middleware/__init__.py,sha256=oQDxiFVcc1fYJUOIFvphnK7pTT5kktmfL32QXpBFvvo,58
|
|
27
27
|
fastapi/middleware/asyncexitstack.py,sha256=RKGlQpGzg3GLosqVhrxBy_NCZ9qJS7zQeNHt5Y3x-00,637
|
|
@@ -32,21 +32,21 @@ fastapi/middleware/trustedhost.py,sha256=eE5XGRxGa7c5zPnMJDGp3BxaL25k5iVQlhnv-Pk
|
|
|
32
32
|
fastapi/middleware/wsgi.py,sha256=Z3Ue-7wni4lUZMvH3G9ek__acgYdJstbnpZX_HQAboY,79
|
|
33
33
|
fastapi/openapi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
34
|
fastapi/openapi/constants.py,sha256=adGzmis1L1HJRTE3kJ5fmHS_Noq6tIY6pWv_SFzoFDU,153
|
|
35
|
-
fastapi/openapi/docs.py,sha256=
|
|
35
|
+
fastapi/openapi/docs.py,sha256=9Rypo8GU5gdp2S7SsoyIZSVGp5e3T2T1KTtJBYTCnRs,10370
|
|
36
36
|
fastapi/openapi/models.py,sha256=m1BNHxf_RiDTK1uCfMre6XZN5y7krZNA62QEP_2EV9s,15625
|
|
37
37
|
fastapi/openapi/utils.py,sha256=2DkhvMHoHLI58vK4vai_7v9WZ3R5RMB6dGDIAx3snGo,23255
|
|
38
|
-
fastapi/param_functions.py,sha256=
|
|
38
|
+
fastapi/param_functions.py,sha256=4x6Y5xOjFmujLnbMDXxvF-kdr-l1mZ0bSOTDLoHYj6Q,64044
|
|
39
39
|
fastapi/params.py,sha256=SnkGa4nNdmRek6oOELBHcSieRGjYvDPTla3EOl5Zlis,28413
|
|
40
40
|
fastapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
41
41
|
fastapi/requests.py,sha256=zayepKFcienBllv3snmWI20Gk0oHNVLU4DDhqXBb4LU,142
|
|
42
42
|
fastapi/responses.py,sha256=QNQQlwpKhQoIPZTTWkpc9d_QGeGZ_aVQPaDV3nQ8m7c,1761
|
|
43
|
-
fastapi/routing.py,sha256=
|
|
43
|
+
fastapi/routing.py,sha256=owgTl_MzUIjeZLX-ltyH7-iU8BGsHMSIo3oP_j4K5lQ,178505
|
|
44
44
|
fastapi/security/__init__.py,sha256=bO8pNmxqVRXUjfl2mOKiVZLn0FpBQ61VUYVjmppnbJw,881
|
|
45
|
-
fastapi/security/api_key.py,sha256=
|
|
45
|
+
fastapi/security/api_key.py,sha256=Bgldi9_cdw6vyoD51dwq_gqJfRG7e1MzIk6nqHaotKc,9041
|
|
46
46
|
fastapi/security/base.py,sha256=dl4pvbC-RxjfbWgPtCWd8MVU-7CB2SZ22rJDXVCXO6c,141
|
|
47
|
-
fastapi/security/http.py,sha256=
|
|
48
|
-
fastapi/security/oauth2.py,sha256=
|
|
49
|
-
fastapi/security/open_id_connect_url.py,sha256=
|
|
47
|
+
fastapi/security/http.py,sha256=c4sNFE993EWGYYft_KNmGniakboP61a-nwl8POoftBg,13631
|
|
48
|
+
fastapi/security/oauth2.py,sha256=GnLj23CZpo-c9y3f3PZv3hOqMXtzjuv88_BZOrjO-To,22061
|
|
49
|
+
fastapi/security/open_id_connect_url.py,sha256=LZCVexVMksVj_7VUOAIddp68vpAZtqn8CJPRovIWSPs,2747
|
|
50
50
|
fastapi/security/utils.py,sha256=bd8T0YM7UQD5ATKucr1bNtAvz_Y3__dVNAv5UebiPvc,293
|
|
51
51
|
fastapi/staticfiles.py,sha256=iirGIt3sdY2QZXd36ijs3Cj-T0FuGFda3cd90kM9Ikw,69
|
|
52
52
|
fastapi/temp_pydantic_v1_params.py,sha256=c9uTBAryfdbgEmAiuJ9BmnmFzYiFZK52z3dDKX4PSRY,26530
|
|
@@ -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.
|
|
58
|
+
fastapi-0.120.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|