fastapi 0.111.1__py3-none-any.whl → 0.112.1__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/__main__.py +3 -0
- fastapi/cli.py +13 -0
- {fastapi-0.111.1.dist-info → fastapi-0.112.1.dist-info}/METADATA +42 -40
- {fastapi-0.111.1.dist-info → fastapi-0.112.1.dist-info}/RECORD +8 -5
- {fastapi-0.111.1.dist-info → fastapi-0.112.1.dist-info}/WHEEL +1 -1
- fastapi-0.112.1.dist-info/entry_points.txt +3 -0
- {fastapi-0.111.1.dist-info → fastapi-0.112.1.dist-info}/licenses/LICENSE +0 -0
fastapi/__init__.py
CHANGED
fastapi/__main__.py
ADDED
fastapi/cli.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
try:
|
|
2
|
+
from fastapi_cli.cli import main as cli_main
|
|
3
|
+
|
|
4
|
+
except ImportError: # pragma: no cover
|
|
5
|
+
cli_main = None # type: ignore
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def main() -> None:
|
|
9
|
+
if not cli_main: # type: ignore[truthy-function]
|
|
10
|
+
message = 'To use the fastapi command, please install "fastapi[standard]":\n\n\tpip install "fastapi[standard]"\n'
|
|
11
|
+
print(message)
|
|
12
|
+
raise RuntimeError(message) # noqa: B904
|
|
13
|
+
cli_main()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fastapi
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.112.1
|
|
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
|
|
@@ -30,19 +30,22 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
30
30
|
Classifier: Programming Language :: Python :: 3.12
|
|
31
31
|
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
|
32
32
|
Classifier: Topic :: Internet :: WWW/HTTP
|
|
33
|
-
Project-URL: Homepage, https://github.com/
|
|
33
|
+
Project-URL: Homepage, https://github.com/fastapi/fastapi
|
|
34
34
|
Project-URL: Documentation, https://fastapi.tiangolo.com/
|
|
35
|
-
Project-URL: Repository, https://github.com/
|
|
35
|
+
Project-URL: Repository, https://github.com/fastapi/fastapi
|
|
36
|
+
Project-URL: Issues, https://github.com/fastapi/fastapi/issues
|
|
37
|
+
Project-URL: Changelog, https://fastapi.tiangolo.com/release-notes/
|
|
36
38
|
Requires-Python: >=3.8
|
|
37
|
-
Requires-Dist: starlette<0.
|
|
39
|
+
Requires-Dist: starlette<0.39.0,>=0.37.2
|
|
38
40
|
Requires-Dist: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4
|
|
39
41
|
Requires-Dist: typing-extensions>=4.8.0
|
|
40
|
-
Requires-Dist: fastapi-cli>=0.0.
|
|
41
|
-
Requires-Dist: httpx>=0.23.0
|
|
42
|
-
Requires-Dist: jinja2>=2.11.2
|
|
43
|
-
Requires-Dist: python-multipart>=0.0.7
|
|
44
|
-
Requires-Dist: email_validator>=2.0.0
|
|
45
|
-
Requires-Dist: uvicorn[standard]>=0.12.0
|
|
42
|
+
Requires-Dist: fastapi-cli[standard]>=0.0.5; extra == "standard"
|
|
43
|
+
Requires-Dist: httpx>=0.23.0; extra == "standard"
|
|
44
|
+
Requires-Dist: jinja2>=2.11.2; extra == "standard"
|
|
45
|
+
Requires-Dist: python-multipart>=0.0.7; extra == "standard"
|
|
46
|
+
Requires-Dist: email_validator>=2.0.0; extra == "standard"
|
|
47
|
+
Requires-Dist: uvicorn[standard]>=0.12.0; extra == "standard"
|
|
48
|
+
Requires-Dist: fastapi-cli[standard]>=0.0.5; extra == "all"
|
|
46
49
|
Requires-Dist: httpx>=0.23.0; extra == "all"
|
|
47
50
|
Requires-Dist: jinja2>=2.11.2; extra == "all"
|
|
48
51
|
Requires-Dist: python-multipart>=0.0.7; extra == "all"
|
|
@@ -54,6 +57,7 @@ Requires-Dist: email_validator>=2.0.0; extra == "all"
|
|
|
54
57
|
Requires-Dist: uvicorn[standard]>=0.12.0; extra == "all"
|
|
55
58
|
Requires-Dist: pydantic-settings>=2.0.0; extra == "all"
|
|
56
59
|
Requires-Dist: pydantic-extra-types>=2.0.0; extra == "all"
|
|
60
|
+
Provides-Extra: standard
|
|
57
61
|
Provides-Extra: all
|
|
58
62
|
Description-Content-Type: text/markdown
|
|
59
63
|
|
|
@@ -64,11 +68,11 @@ Description-Content-Type: text/markdown
|
|
|
64
68
|
<em>FastAPI framework, high performance, easy to learn, fast to code, ready for production</em>
|
|
65
69
|
</p>
|
|
66
70
|
<p align="center">
|
|
67
|
-
<a href="https://github.com/
|
|
68
|
-
<img src="https://github.com/
|
|
71
|
+
<a href="https://github.com/fastapi/fastapi/actions?query=workflow%3ATest+event%3Apush+branch%3Amaster" target="_blank">
|
|
72
|
+
<img src="https://github.com/fastapi/fastapi/workflows/Test/badge.svg?event=push&branch=master" alt="Test">
|
|
69
73
|
</a>
|
|
70
|
-
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/
|
|
71
|
-
<img src="https://coverage-badge.samuelcolvin.workers.dev/
|
|
74
|
+
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/fastapi/fastapi" target="_blank">
|
|
75
|
+
<img src="https://coverage-badge.samuelcolvin.workers.dev/fastapi/fastapi.svg" alt="Coverage">
|
|
72
76
|
</a>
|
|
73
77
|
<a href="https://pypi.org/project/fastapi" target="_blank">
|
|
74
78
|
<img src="https://img.shields.io/pypi/v/fastapi?color=%2334D058&label=pypi%20package" alt="Package version">
|
|
@@ -82,7 +86,7 @@ Description-Content-Type: text/markdown
|
|
|
82
86
|
|
|
83
87
|
**Documentation**: <a href="https://fastapi.tiangolo.com" target="_blank">https://fastapi.tiangolo.com</a>
|
|
84
88
|
|
|
85
|
-
**Source Code**: <a href="https://github.com/
|
|
89
|
+
**Source Code**: <a href="https://github.com/fastapi/fastapi" target="_blank">https://github.com/fastapi/fastapi</a>
|
|
86
90
|
|
|
87
91
|
---
|
|
88
92
|
|
|
@@ -109,7 +113,6 @@ The key features are:
|
|
|
109
113
|
<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>
|
|
110
114
|
<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>
|
|
111
115
|
<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>
|
|
112
|
-
<a href="https://reflex.dev" target="_blank" title="Reflex"><img src="https://fastapi.tiangolo.com/img/sponsors/reflex.png"></a>
|
|
113
116
|
<a href="https://github.com/scalar/scalar/?utm_source=fastapi&utm_medium=website&utm_campaign=main-badge" target="_blank" title="Scalar: Beautiful Open-Source API References from Swagger/OpenAPI files"><img src="https://fastapi.tiangolo.com/img/sponsors/scalar.svg"></a>
|
|
114
117
|
<a href="https://www.propelauth.com/?utm_source=fastapi&utm_campaign=1223&utm_medium=mainbadge" target="_blank" title="Auth, user management and more for your B2B product"><img src="https://fastapi.tiangolo.com/img/sponsors/propelauth.png"></a>
|
|
115
118
|
<a href="https://docs.withcoherence.com/configuration/frameworks/?utm_medium=advertising&utm_source=fastapi&utm_campaign=docs#fastapi-example" target="_blank" title="Coherence"><img src="https://fastapi.tiangolo.com/img/sponsors/coherence.png"></a>
|
|
@@ -117,10 +120,10 @@ The key features are:
|
|
|
117
120
|
<a href="https://konghq.com/products/kong-konnect?utm_medium=referral&utm_source=github&utm_campaign=platform&utm_content=fast-api" target="_blank" title="Kong Konnect - API management platform"><img src="https://fastapi.tiangolo.com/img/sponsors/kong.png"></a>
|
|
118
121
|
<a href="https://zuplo.link/fastapi-gh" target="_blank" title="Zuplo: Scale, Protect, Document, and Monetize your FastAPI"><img src="https://fastapi.tiangolo.com/img/sponsors/zuplo.png"></a>
|
|
119
122
|
<a href="https://fine.dev?ref=fastapibadge" target="_blank" title="Fine's AI FastAPI Workflow: Effortlessly Deploy and Integrate FastAPI into Your Project"><img src="https://fastapi.tiangolo.com/img/sponsors/fine.png"></a>
|
|
120
|
-
<a href="https://
|
|
123
|
+
<a href="https://liblab.com?utm_source=fastapi" target="_blank" title="liblab - Generate SDKs from FastAPI"><img src="https://fastapi.tiangolo.com/img/sponsors/liblab.png"></a>
|
|
121
124
|
<a href="https://github.com/deepset-ai/haystack/" target="_blank" title="Build powerful search from composable, open source building blocks"><img src="https://fastapi.tiangolo.com/img/sponsors/haystack-fastapi.svg"></a>
|
|
122
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>
|
|
123
|
-
<a href="https://
|
|
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>
|
|
124
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>
|
|
125
128
|
<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>
|
|
126
129
|
<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>
|
|
@@ -133,7 +136,7 @@ The key features are:
|
|
|
133
136
|
|
|
134
137
|
"_[...] I'm using **FastAPI** a ton these days. [...] I'm actually planning to use it for all of my team's **ML services at Microsoft**. Some of them are getting integrated into the core **Windows** product and some **Office** products._"
|
|
135
138
|
|
|
136
|
-
<div style="text-align: right; margin-right: 10%;">Kabir Khan - <strong>Microsoft</strong> <a href="https://github.com/
|
|
139
|
+
<div style="text-align: right; margin-right: 10%;">Kabir Khan - <strong>Microsoft</strong> <a href="https://github.com/fastapi/fastapi/pull/26" target="_blank"><small>(ref)</small></a></div>
|
|
137
140
|
|
|
138
141
|
---
|
|
139
142
|
|
|
@@ -195,13 +198,15 @@ FastAPI stands on the shoulders of giants:
|
|
|
195
198
|
<div class="termy">
|
|
196
199
|
|
|
197
200
|
```console
|
|
198
|
-
$ pip install fastapi
|
|
201
|
+
$ pip install "fastapi[standard]"
|
|
199
202
|
|
|
200
203
|
---> 100%
|
|
201
204
|
```
|
|
202
205
|
|
|
203
206
|
</div>
|
|
204
207
|
|
|
208
|
+
**Note**: Make sure you put `"fastapi[standard]"` in quotes to ensure it works in all terminals.
|
|
209
|
+
|
|
205
210
|
## Example
|
|
206
211
|
|
|
207
212
|
### Create it
|
|
@@ -512,11 +517,15 @@ To understand more about it, see the section <a href="https://fastapi.tiangolo.c
|
|
|
512
517
|
|
|
513
518
|
## Dependencies
|
|
514
519
|
|
|
520
|
+
FastAPI depends on Pydantic and Starlette.
|
|
521
|
+
|
|
522
|
+
### `standard` Dependencies
|
|
523
|
+
|
|
524
|
+
When you install FastAPI with `pip install "fastapi[standard]"` it comes the `standard` group of optional dependencies:
|
|
525
|
+
|
|
515
526
|
Used by Pydantic:
|
|
516
527
|
|
|
517
528
|
* <a href="https://github.com/JoshData/python-email-validator" target="_blank"><code>email_validator</code></a> - for email validation.
|
|
518
|
-
* <a href="https://docs.pydantic.dev/latest/usage/pydantic_settings/" target="_blank"><code>pydantic-settings</code></a> - for settings management.
|
|
519
|
-
* <a href="https://docs.pydantic.dev/latest/usage/types/extra_types/extra_types/" target="_blank"><code>pydantic-extra-types</code></a> - for extra types to be used with Pydantic.
|
|
520
529
|
|
|
521
530
|
Used by Starlette:
|
|
522
531
|
|
|
@@ -526,33 +535,26 @@ Used by Starlette:
|
|
|
526
535
|
|
|
527
536
|
Used by FastAPI / Starlette:
|
|
528
537
|
|
|
529
|
-
* <a href="https://www.uvicorn.org" target="_blank"><code>uvicorn</code></a> - for the server that loads and serves your application.
|
|
538
|
+
* <a href="https://www.uvicorn.org" target="_blank"><code>uvicorn</code></a> - for the server that loads and serves your application. This includes `uvicorn[standard]`, which includes some dependencies (e.g. `uvloop`) needed for high performance serving.
|
|
530
539
|
* `fastapi-cli` - to provide the `fastapi` command.
|
|
531
540
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
Additional optional dependencies:
|
|
535
|
-
|
|
536
|
-
* <a href="https://github.com/ijl/orjson" target="_blank"><code>orjson</code></a> - Required if you want to use `ORJSONResponse`.
|
|
537
|
-
* <a href="https://github.com/esnme/ultrajson" target="_blank"><code>ujson</code></a> - Required if you want to use `UJSONResponse`.
|
|
541
|
+
### Without `standard` Dependencies
|
|
538
542
|
|
|
539
|
-
|
|
543
|
+
If you don't want to include the `standard` optional dependencies, you can install with `pip install fastapi` instead of `pip install "fastapi[standard]"`.
|
|
540
544
|
|
|
541
|
-
|
|
545
|
+
### Additional Optional Dependencies
|
|
542
546
|
|
|
543
|
-
|
|
547
|
+
There are some additional dependencies you might want to install.
|
|
544
548
|
|
|
545
|
-
|
|
546
|
-
pip install fastapi
|
|
547
|
-
```
|
|
549
|
+
Additional optional Pydantic dependencies:
|
|
548
550
|
|
|
549
|
-
|
|
551
|
+
* <a href="https://docs.pydantic.dev/latest/usage/pydantic_settings/" target="_blank"><code>pydantic-settings</code></a> - for settings management.
|
|
552
|
+
* <a href="https://docs.pydantic.dev/latest/usage/types/extra_types/extra_types/" target="_blank"><code>pydantic-extra-types</code></a> - for extra types to be used with Pydantic.
|
|
550
553
|
|
|
551
|
-
|
|
552
|
-
pip install "fastapi-slim[standard]"
|
|
553
|
-
```
|
|
554
|
+
Additional optional FastAPI dependencies:
|
|
554
555
|
|
|
555
|
-
|
|
556
|
+
* <a href="https://github.com/ijl/orjson" target="_blank"><code>orjson</code></a> - Required if you want to use `ORJSONResponse`.
|
|
557
|
+
* <a href="https://github.com/esnme/ultrajson" target="_blank"><code>ujson</code></a> - Required if you want to use `UJSONResponse`.
|
|
556
558
|
|
|
557
559
|
## License
|
|
558
560
|
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
fastapi-0.
|
|
2
|
-
fastapi-0.
|
|
3
|
-
fastapi-0.
|
|
4
|
-
fastapi/
|
|
1
|
+
fastapi-0.112.1.dist-info/METADATA,sha256=DXZ6wUq8_97Y7baE_tdgj78VG-88WZ0CquDFrNDELO0,27356
|
|
2
|
+
fastapi-0.112.1.dist-info/WHEEL,sha256=rSwsxJWe3vzyR5HCwjWXQruDgschpei4h_giTm0dJVE,90
|
|
3
|
+
fastapi-0.112.1.dist-info/entry_points.txt,sha256=Nn2-rs4A5_lQZko2b9QqCKQx9Irx0agGbxq3QLgjBxQ,46
|
|
4
|
+
fastapi-0.112.1.dist-info/licenses/LICENSE,sha256=Tsif_IFIW5f-xYSy1KlhAy7v_oNEU4lP2cEnSQbMdE4,1086
|
|
5
|
+
fastapi/__init__.py,sha256=mJPNeiw1woqECVo-LHqyg3k8MTR2Rf9MWiPCLJpgBJQ,1081
|
|
6
|
+
fastapi/__main__.py,sha256=bKePXLdO4SsVSM6r9SVoLickJDcR2c0cTOxZRKq26YQ,37
|
|
5
7
|
fastapi/_compat.py,sha256=OjE3FUZ0IPXqIJWKhoWKDNCHv4so-FQ-rfN8ngQZeFE,23134
|
|
6
8
|
fastapi/applications.py,sha256=h0hVWT7fXS05N3ZAC72mtf1pu5uJmTdJVEw62uUMf7k,176342
|
|
7
9
|
fastapi/background.py,sha256=rouLirxUANrcYC824MSMypXL_Qb2HYg2YZqaiEqbEKI,1768
|
|
10
|
+
fastapi/cli.py,sha256=OYhZb0NR_deuT5ofyPF2NoNBzZDNOP8Salef2nk-HqA,418
|
|
8
11
|
fastapi/concurrency.py,sha256=AYLnS4judDUmXsNRICtoKSP0prfYDcS8ehBtYW9JhQQ,1403
|
|
9
12
|
fastapi/datastructures.py,sha256=b2PEz77XGq-u3Ur1Inwk0AGjOsQZO49yF9C7IPJ15cY,5766
|
|
10
13
|
fastapi/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -44,4 +47,4 @@ fastapi/testclient.py,sha256=nBvaAmX66YldReJNZXPOk1sfuo2Q6hs8bOvIaCep6LQ,66
|
|
|
44
47
|
fastapi/types.py,sha256=nFb36sK3DSoqoyo7Miwy3meKK5UdFBgkAgLSzQlUVyI,383
|
|
45
48
|
fastapi/utils.py,sha256=lHKngr-TmOx9QzSyA6PXYSvEgxPYUIk5t3u-kZtskEM,8035
|
|
46
49
|
fastapi/websockets.py,sha256=419uncYObEKZG0YcrXscfQQYLSWoE10jqxVMetGdR98,222
|
|
47
|
-
fastapi-0.
|
|
50
|
+
fastapi-0.112.1.dist-info/RECORD,,
|
|
File without changes
|