fastapi 0.111.1__py3-none-any.whl → 0.112.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/__main__.py +3 -0
- fastapi/cli.py +13 -0
- {fastapi-0.111.1.dist-info → fastapi-0.112.0.dist-info}/METADATA +39 -39
- {fastapi-0.111.1.dist-info → fastapi-0.112.0.dist-info}/RECORD +8 -5
- {fastapi-0.111.1.dist-info → fastapi-0.112.0.dist-info}/WHEEL +1 -1
- fastapi-0.112.0.dist-info/entry_points.txt +3 -0
- {fastapi-0.111.1.dist-info → fastapi-0.112.0.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.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
|
|
@@ -30,19 +30,20 @@ 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
36
|
Requires-Python: >=3.8
|
|
37
37
|
Requires-Dist: starlette<0.38.0,>=0.37.2
|
|
38
38
|
Requires-Dist: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4
|
|
39
39
|
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
|
|
40
|
+
Requires-Dist: fastapi-cli[standard]>=0.0.5; extra == "standard"
|
|
41
|
+
Requires-Dist: httpx>=0.23.0; extra == "standard"
|
|
42
|
+
Requires-Dist: jinja2>=2.11.2; extra == "standard"
|
|
43
|
+
Requires-Dist: python-multipart>=0.0.7; extra == "standard"
|
|
44
|
+
Requires-Dist: email_validator>=2.0.0; extra == "standard"
|
|
45
|
+
Requires-Dist: uvicorn[standard]>=0.12.0; extra == "standard"
|
|
46
|
+
Requires-Dist: fastapi-cli[standard]>=0.0.5; extra == "all"
|
|
46
47
|
Requires-Dist: httpx>=0.23.0; extra == "all"
|
|
47
48
|
Requires-Dist: jinja2>=2.11.2; extra == "all"
|
|
48
49
|
Requires-Dist: python-multipart>=0.0.7; extra == "all"
|
|
@@ -54,6 +55,7 @@ Requires-Dist: email_validator>=2.0.0; extra == "all"
|
|
|
54
55
|
Requires-Dist: uvicorn[standard]>=0.12.0; extra == "all"
|
|
55
56
|
Requires-Dist: pydantic-settings>=2.0.0; extra == "all"
|
|
56
57
|
Requires-Dist: pydantic-extra-types>=2.0.0; extra == "all"
|
|
58
|
+
Provides-Extra: standard
|
|
57
59
|
Provides-Extra: all
|
|
58
60
|
Description-Content-Type: text/markdown
|
|
59
61
|
|
|
@@ -64,11 +66,11 @@ Description-Content-Type: text/markdown
|
|
|
64
66
|
<em>FastAPI framework, high performance, easy to learn, fast to code, ready for production</em>
|
|
65
67
|
</p>
|
|
66
68
|
<p align="center">
|
|
67
|
-
<a href="https://github.com/
|
|
68
|
-
<img src="https://github.com/
|
|
69
|
+
<a href="https://github.com/fastapi/fastapi/actions?query=workflow%3ATest+event%3Apush+branch%3Amaster" target="_blank">
|
|
70
|
+
<img src="https://github.com/fastapi/fastapi/workflows/Test/badge.svg?event=push&branch=master" alt="Test">
|
|
69
71
|
</a>
|
|
70
|
-
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/
|
|
71
|
-
<img src="https://coverage-badge.samuelcolvin.workers.dev/
|
|
72
|
+
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/fastapi/fastapi" target="_blank">
|
|
73
|
+
<img src="https://coverage-badge.samuelcolvin.workers.dev/fastapi/fastapi.svg" alt="Coverage">
|
|
72
74
|
</a>
|
|
73
75
|
<a href="https://pypi.org/project/fastapi" target="_blank">
|
|
74
76
|
<img src="https://img.shields.io/pypi/v/fastapi?color=%2334D058&label=pypi%20package" alt="Package version">
|
|
@@ -82,7 +84,7 @@ Description-Content-Type: text/markdown
|
|
|
82
84
|
|
|
83
85
|
**Documentation**: <a href="https://fastapi.tiangolo.com" target="_blank">https://fastapi.tiangolo.com</a>
|
|
84
86
|
|
|
85
|
-
**Source Code**: <a href="https://github.com/
|
|
87
|
+
**Source Code**: <a href="https://github.com/fastapi/fastapi" target="_blank">https://github.com/fastapi/fastapi</a>
|
|
86
88
|
|
|
87
89
|
---
|
|
88
90
|
|
|
@@ -109,7 +111,6 @@ The key features are:
|
|
|
109
111
|
<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
112
|
<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
113
|
<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
114
|
<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
115
|
<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
116
|
<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 +118,10 @@ The key features are:
|
|
|
117
118
|
<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
119
|
<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
120
|
<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://
|
|
121
|
+
<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
122
|
<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
123
|
<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://
|
|
124
|
+
<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
125
|
<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
126
|
<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
127
|
<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 +134,7 @@ The key features are:
|
|
|
133
134
|
|
|
134
135
|
"_[...] 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
136
|
|
|
136
|
-
<div style="text-align: right; margin-right: 10%;">Kabir Khan - <strong>Microsoft</strong> <a href="https://github.com/
|
|
137
|
+
<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
138
|
|
|
138
139
|
---
|
|
139
140
|
|
|
@@ -195,13 +196,15 @@ FastAPI stands on the shoulders of giants:
|
|
|
195
196
|
<div class="termy">
|
|
196
197
|
|
|
197
198
|
```console
|
|
198
|
-
$ pip install fastapi
|
|
199
|
+
$ pip install "fastapi[standard]"
|
|
199
200
|
|
|
200
201
|
---> 100%
|
|
201
202
|
```
|
|
202
203
|
|
|
203
204
|
</div>
|
|
204
205
|
|
|
206
|
+
**Note**: Make sure you put `"fastapi[standard]"` in quotes to ensure it works in all terminals.
|
|
207
|
+
|
|
205
208
|
## Example
|
|
206
209
|
|
|
207
210
|
### Create it
|
|
@@ -512,11 +515,15 @@ To understand more about it, see the section <a href="https://fastapi.tiangolo.c
|
|
|
512
515
|
|
|
513
516
|
## Dependencies
|
|
514
517
|
|
|
518
|
+
FastAPI depends on Pydantic and Starlette.
|
|
519
|
+
|
|
520
|
+
### `standard` Dependencies
|
|
521
|
+
|
|
522
|
+
When you install FastAPI with `pip install "fastapi[standard]"` it comes the `standard` group of optional dependencies:
|
|
523
|
+
|
|
515
524
|
Used by Pydantic:
|
|
516
525
|
|
|
517
526
|
* <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
527
|
|
|
521
528
|
Used by Starlette:
|
|
522
529
|
|
|
@@ -526,33 +533,26 @@ Used by Starlette:
|
|
|
526
533
|
|
|
527
534
|
Used by FastAPI / Starlette:
|
|
528
535
|
|
|
529
|
-
* <a href="https://www.uvicorn.org" target="_blank"><code>uvicorn</code></a> - for the server that loads and serves your application.
|
|
536
|
+
* <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
537
|
* `fastapi-cli` - to provide the `fastapi` command.
|
|
531
538
|
|
|
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`.
|
|
539
|
+
### Without `standard` Dependencies
|
|
538
540
|
|
|
539
|
-
|
|
541
|
+
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
542
|
|
|
541
|
-
|
|
543
|
+
### Additional Optional Dependencies
|
|
542
544
|
|
|
543
|
-
|
|
545
|
+
There are some additional dependencies you might want to install.
|
|
544
546
|
|
|
545
|
-
|
|
546
|
-
pip install fastapi
|
|
547
|
-
```
|
|
547
|
+
Additional optional Pydantic dependencies:
|
|
548
548
|
|
|
549
|
-
|
|
549
|
+
* <a href="https://docs.pydantic.dev/latest/usage/pydantic_settings/" target="_blank"><code>pydantic-settings</code></a> - for settings management.
|
|
550
|
+
* <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
551
|
|
|
551
|
-
|
|
552
|
-
pip install "fastapi-slim[standard]"
|
|
553
|
-
```
|
|
552
|
+
Additional optional FastAPI dependencies:
|
|
554
553
|
|
|
555
|
-
|
|
554
|
+
* <a href="https://github.com/ijl/orjson" target="_blank"><code>orjson</code></a> - Required if you want to use `ORJSONResponse`.
|
|
555
|
+
* <a href="https://github.com/esnme/ultrajson" target="_blank"><code>ujson</code></a> - Required if you want to use `UJSONResponse`.
|
|
556
556
|
|
|
557
557
|
## License
|
|
558
558
|
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
fastapi-0.
|
|
2
|
-
fastapi-0.
|
|
3
|
-
fastapi-0.
|
|
4
|
-
fastapi/
|
|
1
|
+
fastapi-0.112.0.dist-info/METADATA,sha256=gImLaC7Phv1KRniQYy4Yyjjm8QQSwbJ7wUJXxbBHYzE,27225
|
|
2
|
+
fastapi-0.112.0.dist-info/WHEEL,sha256=rSwsxJWe3vzyR5HCwjWXQruDgschpei4h_giTm0dJVE,90
|
|
3
|
+
fastapi-0.112.0.dist-info/entry_points.txt,sha256=Nn2-rs4A5_lQZko2b9QqCKQx9Irx0agGbxq3QLgjBxQ,46
|
|
4
|
+
fastapi-0.112.0.dist-info/licenses/LICENSE,sha256=Tsif_IFIW5f-xYSy1KlhAy7v_oNEU4lP2cEnSQbMdE4,1086
|
|
5
|
+
fastapi/__init__.py,sha256=W2vbwjgsS57nRtMKFmhXnj6X0xMXGmHgkgfvdwtPxyo,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.0.dist-info/RECORD,,
|
|
File without changes
|