mirror of https://github.com/tiangolo/fastapi.git
📝 Update Uvicorn installation instructions to use uvicorn[standard] (includes uvloop) (#2543)
This commit is contained in:
parent
7046d80a23
commit
e2a6341c60
|
|
@ -125,7 +125,7 @@ You will also need an ASGI server, for production such as <a href="https://www.u
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -11,13 +11,18 @@ You just need to install an ASGI compatible server like:
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
||||
</div>
|
||||
|
||||
!!! tip
|
||||
By adding the `standard`, Uvicorn will install and use some recommended extra dependencies.
|
||||
|
||||
That including `uvloop`, the high-performance drop-in replacement for `asyncio`, that provides the big concurrency performance boost.
|
||||
|
||||
=== "Hypercorn"
|
||||
|
||||
* <a href="https://gitlab.com/pgjones/hypercorn" class="external-link" target="_blank">Hypercorn</a>, an ASGI server also compatible with HTTP/2.
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ You will also need an ASGI server, for production such as <a href="https://www.u
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ $ pip install fastapi[all]
|
|||
Also install `uvicorn` to work as the server:
|
||||
|
||||
```
|
||||
pip install uvicorn
|
||||
pip install uvicorn[standard]
|
||||
```
|
||||
|
||||
And the same for each of the optional dependencies that you want to use.
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ También vas a necesitar un servidor ASGI para producción cómo <a href="https:
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ $ pip install fastapi[all]
|
|||
También debes instalar `uvicorn` para que funcione como tu servidor:
|
||||
|
||||
```
|
||||
pip install uvicorn
|
||||
pip install uvicorn[standard]
|
||||
```
|
||||
|
||||
Y lo mismo para cada una de las dependencias opcionales que quieras utilizar.
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ You will also need an ASGI server, for production such as <a href="https://www.u
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ You will also need an ASGI server, for production such as <a href="https://www.u
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ $ pip install fastapi
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ $ pip install fastapi[all]
|
|||
また、サーバーとして動作するように`uvicorn` をインストールします:
|
||||
|
||||
```
|
||||
pip install uvicorn
|
||||
pip install uvicorn[standard]
|
||||
```
|
||||
|
||||
そして、使用したい依存関係をそれぞれ同様にインストールします。
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ $ pip install fastapi
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ Você apenas precisa instalar um servidor ASGI compatível como:
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ Você também precisará de um servidor ASGI para produção, tal como <a href="
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ $ pip install fastapi[all]
|
|||
Também instale o `uvicorn` para funcionar como servidor:
|
||||
|
||||
```
|
||||
pip install uvicorn
|
||||
pip install uvicorn[standard]
|
||||
```
|
||||
|
||||
E o mesmo para cada dependência opcional que você quiser usar.
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ You will also need an ASGI server, for production such as <a href="https://www.u
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ You will also need an ASGI server, for production such as <a href="https://www.u
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ You will also need an ASGI server, for production such as <a href="https://www.u
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ You will also need an ASGI server, for production such as <a href="https://www.u
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ Traefik 也集成了 Docker,所以你也可以在每个应用的配置中声
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ $ pip install fastapi
|
|||
<div class="termy">
|
||||
|
||||
```console
|
||||
$ pip install uvicorn
|
||||
$ pip install uvicorn[standard]
|
||||
|
||||
---> 100%
|
||||
```
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ $ pip install fastapi[all]
|
|||
并且安装`uvicorn`来作为服务器:
|
||||
|
||||
```
|
||||
pip install uvicorn
|
||||
pip install uvicorn[standard]
|
||||
```
|
||||
|
||||
然后对你想使用的每个可选依赖项也执行相同的操作。
|
||||
|
|
|
|||
Loading…
Reference in New Issue