fastapi 0.110.3.dev2__py3-none-any.whl → 0.111.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-0.110.3.dev2.dist-info → fastapi-0.111.0.dist-info}/METADATA +53 -27
- {fastapi-0.110.3.dev2.dist-info → fastapi-0.111.0.dist-info}/RECORD +5 -5
- {fastapi-0.110.3.dev2.dist-info → fastapi-0.111.0.dist-info}/WHEEL +1 -1
- {fastapi-0.110.3.dev2.dist-info → fastapi-0.111.0.dist-info}/licenses/LICENSE +0 -0
fastapi/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: fastapi
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.111.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
|
|
@@ -37,6 +37,14 @@ 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.2
|
|
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: ujson!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,>=4.0.1
|
|
45
|
+
Requires-Dist: orjson>=3.2.1
|
|
46
|
+
Requires-Dist: email_validator>=2.0.0
|
|
47
|
+
Requires-Dist: uvicorn[standard]>=0.12.0
|
|
40
48
|
Requires-Dist: httpx>=0.23.0; extra == "all"
|
|
41
49
|
Requires-Dist: jinja2>=2.11.2; extra == "all"
|
|
42
50
|
Requires-Dist: python-multipart>=0.0.7; extra == "all"
|
|
@@ -192,18 +200,6 @@ $ pip install fastapi
|
|
|
192
200
|
|
|
193
201
|
</div>
|
|
194
202
|
|
|
195
|
-
You will also need an ASGI server, for production such as <a href="https://www.uvicorn.org" class="external-link" target="_blank">Uvicorn</a> or <a href="https://github.com/pgjones/hypercorn" class="external-link" target="_blank">Hypercorn</a>.
|
|
196
|
-
|
|
197
|
-
<div class="termy">
|
|
198
|
-
|
|
199
|
-
```console
|
|
200
|
-
$ pip install "uvicorn[standard]"
|
|
201
|
-
|
|
202
|
-
---> 100%
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
</div>
|
|
206
|
-
|
|
207
203
|
## Example
|
|
208
204
|
|
|
209
205
|
### Create it
|
|
@@ -264,11 +260,24 @@ Run the server with:
|
|
|
264
260
|
<div class="termy">
|
|
265
261
|
|
|
266
262
|
```console
|
|
267
|
-
$
|
|
268
|
-
|
|
263
|
+
$ fastapi dev main.py
|
|
264
|
+
|
|
265
|
+
╭────────── FastAPI CLI - Development mode ───────────╮
|
|
266
|
+
│ │
|
|
267
|
+
│ Serving at: http://127.0.0.1:8000 │
|
|
268
|
+
│ │
|
|
269
|
+
│ API docs: http://127.0.0.1:8000/docs │
|
|
270
|
+
│ │
|
|
271
|
+
│ Running in development mode, for production use: │
|
|
272
|
+
│ │
|
|
273
|
+
│ fastapi run │
|
|
274
|
+
│ │
|
|
275
|
+
╰─────────────────────────────────────────────────────╯
|
|
276
|
+
|
|
277
|
+
INFO: Will watch for changes in these directories: ['/home/user/code/awesomeapp']
|
|
269
278
|
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
|
|
270
|
-
INFO: Started reloader process [
|
|
271
|
-
INFO: Started server process [
|
|
279
|
+
INFO: Started reloader process [2248755] using WatchFiles
|
|
280
|
+
INFO: Started server process [2248757]
|
|
272
281
|
INFO: Waiting for application startup.
|
|
273
282
|
INFO: Application startup complete.
|
|
274
283
|
```
|
|
@@ -276,13 +285,13 @@ INFO: Application startup complete.
|
|
|
276
285
|
</div>
|
|
277
286
|
|
|
278
287
|
<details markdown="1">
|
|
279
|
-
<summary>About the command <code>
|
|
288
|
+
<summary>About the command <code>fastapi dev main.py</code>...</summary>
|
|
280
289
|
|
|
281
|
-
The command `
|
|
290
|
+
The command `fastapi dev` reads your `main.py` file, detects the **FastAPI** app in it, and starts a server using <a href="https://www.uvicorn.org" class="external-link" target="_blank">Uvicorn</a>.
|
|
282
291
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
292
|
+
By default, `fastapi dev` will start with auto-reload enabled for local development.
|
|
293
|
+
|
|
294
|
+
You can read more about it in the <a href="https://fastapi.tiangolo.com/fastapi-cli/" target="_blank">FastAPI CLI docs</a>.
|
|
286
295
|
|
|
287
296
|
</details>
|
|
288
297
|
|
|
@@ -355,7 +364,7 @@ def update_item(item_id: int, item: Item):
|
|
|
355
364
|
return {"item_name": item.name, "item_id": item_id}
|
|
356
365
|
```
|
|
357
366
|
|
|
358
|
-
The server should reload automatically
|
|
367
|
+
The `fastapi dev` server should reload automatically.
|
|
359
368
|
|
|
360
369
|
### Interactive API docs upgrade
|
|
361
370
|
|
|
@@ -499,7 +508,7 @@ Independent TechEmpower benchmarks show **FastAPI** applications running under U
|
|
|
499
508
|
|
|
500
509
|
To understand more about it, see the section <a href="https://fastapi.tiangolo.com/benchmarks/" class="internal-link" target="_blank">Benchmarks</a>.
|
|
501
510
|
|
|
502
|
-
##
|
|
511
|
+
## Dependencies
|
|
503
512
|
|
|
504
513
|
Used by Pydantic:
|
|
505
514
|
|
|
@@ -512,16 +521,33 @@ Used by Starlette:
|
|
|
512
521
|
* <a href="https://www.python-httpx.org" target="_blank"><code>httpx</code></a> - Required if you want to use the `TestClient`.
|
|
513
522
|
* <a href="https://jinja.palletsprojects.com" target="_blank"><code>jinja2</code></a> - Required if you want to use the default template configuration.
|
|
514
523
|
* <a href="https://github.com/Kludex/python-multipart" target="_blank"><code>python-multipart</code></a> - Required if you want to support form <abbr title="converting the string that comes from an HTTP request into Python data">"parsing"</abbr>, with `request.form()`.
|
|
515
|
-
* <a href="https://pythonhosted.org/itsdangerous/" target="_blank"><code>itsdangerous</code></a> - Required for `SessionMiddleware` support.
|
|
516
|
-
* <a href="https://pyyaml.org/wiki/PyYAMLDocumentation" target="_blank"><code>pyyaml</code></a> - Required for Starlette's `SchemaGenerator` support (you probably don't need it with FastAPI).
|
|
517
524
|
|
|
518
525
|
Used by FastAPI / Starlette:
|
|
519
526
|
|
|
520
527
|
* <a href="https://www.uvicorn.org" target="_blank"><code>uvicorn</code></a> - for the server that loads and serves your application.
|
|
521
528
|
* <a href="https://github.com/ijl/orjson" target="_blank"><code>orjson</code></a> - Required if you want to use `ORJSONResponse`.
|
|
522
529
|
* <a href="https://github.com/esnme/ultrajson" target="_blank"><code>ujson</code></a> - Required if you want to use `UJSONResponse`.
|
|
530
|
+
* `fastapi-cli` - to provide the `fastapi` command.
|
|
531
|
+
|
|
532
|
+
When you install `fastapi` it comes these standard dependencies.
|
|
533
|
+
|
|
534
|
+
## `fastapi-slim`
|
|
535
|
+
|
|
536
|
+
If you don't want the extra standard optional dependencies, install `fastapi-slim` instead.
|
|
537
|
+
|
|
538
|
+
When you install with:
|
|
539
|
+
|
|
540
|
+
```bash
|
|
541
|
+
pip install fastapi
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
...it includes the same code and dependencies as:
|
|
545
|
+
|
|
546
|
+
```bash
|
|
547
|
+
pip install "fastapi-slim[standard]"
|
|
548
|
+
```
|
|
523
549
|
|
|
524
|
-
|
|
550
|
+
The standard extra dependencies are the ones mentioned above.
|
|
525
551
|
|
|
526
552
|
## License
|
|
527
553
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fastapi-0.
|
|
2
|
-
fastapi-0.
|
|
3
|
-
fastapi-0.
|
|
4
|
-
fastapi/__init__.py,sha256=
|
|
1
|
+
fastapi-0.111.0.dist-info/METADATA,sha256=E4htngMdh1XMorTOXG49Q4_NiD5dkSasEvOzzSu95cE,25954
|
|
2
|
+
fastapi-0.111.0.dist-info/WHEEL,sha256=vnE8JVcI2Wz7GRKorsPArnBdnW2SWKWGow5gu5tHlRU,90
|
|
3
|
+
fastapi-0.111.0.dist-info/licenses/LICENSE,sha256=Tsif_IFIW5f-xYSy1KlhAy7v_oNEU4lP2cEnSQbMdE4,1086
|
|
4
|
+
fastapi/__init__.py,sha256=YhhDsditFgjCfvQR8M0CXSRhp4dlFLbGd9q1Hbtkcq8,1081
|
|
5
5
|
fastapi/_compat.py,sha256=OjE3FUZ0IPXqIJWKhoWKDNCHv4so-FQ-rfN8ngQZeFE,23134
|
|
6
6
|
fastapi/applications.py,sha256=owRSmdslsJhJCDxxatkfMdewlaiE-9DPbwQ7alyexgU,176342
|
|
7
7
|
fastapi/background.py,sha256=rouLirxUANrcYC824MSMypXL_Qb2HYg2YZqaiEqbEKI,1768
|
|
@@ -44,4 +44,4 @@ fastapi/testclient.py,sha256=nBvaAmX66YldReJNZXPOk1sfuo2Q6hs8bOvIaCep6LQ,66
|
|
|
44
44
|
fastapi/types.py,sha256=nFb36sK3DSoqoyo7Miwy3meKK5UdFBgkAgLSzQlUVyI,383
|
|
45
45
|
fastapi/utils.py,sha256=lHKngr-TmOx9QzSyA6PXYSvEgxPYUIk5t3u-kZtskEM,8035
|
|
46
46
|
fastapi/websockets.py,sha256=419uncYObEKZG0YcrXscfQQYLSWoE10jqxVMetGdR98,222
|
|
47
|
-
fastapi-0.
|
|
47
|
+
fastapi-0.111.0.dist-info/RECORD,,
|
|
File without changes
|