📝 Update Uvicorn installation instructions to use uvicorn[standard] (includes uvloop) (#2543)

This commit is contained in:
Sebastián Ramírez 2020-12-19 21:30:18 +01:00 committed by GitHub
parent 7046d80a23
commit e2a6341c60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 26 additions and 21 deletions

View File

@ -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%
```

View File

@ -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.

View File

@ -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%
```

View File

@ -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.

View File

@ -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%
```

View File

@ -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.

View File

@ -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%
```

View File

@ -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%
```

View File

@ -128,7 +128,7 @@ $ pip install fastapi
<div class="termy">
```console
$ pip install uvicorn
$ pip install uvicorn[standard]
---> 100%
```

View File

@ -64,7 +64,7 @@ $ pip install fastapi[all]
また、サーバーとして動作するように`uvicorn` をインストールします:
```
pip install uvicorn
pip install uvicorn[standard]
```
そして、使用したい依存関係をそれぞれ同様にインストールします。

View File

@ -128,7 +128,7 @@ $ pip install fastapi
<div class="termy">
```console
$ pip install uvicorn
$ pip install uvicorn[standard]
---> 100%
```

View File

@ -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%
```

View File

@ -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%
```

View File

@ -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.

View File

@ -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%
```

View File

@ -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%
```

View File

@ -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%
```

View File

@ -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%
```

View File

@ -338,7 +338,7 @@ Traefik 也集成了 Docker所以你也可以在每个应用的配置中声
<div class="termy">
```console
$ pip install uvicorn
$ pip install uvicorn[standard]
---> 100%
```

View File

@ -128,7 +128,7 @@ $ pip install fastapi
<div class="termy">
```console
$ pip install uvicorn
$ pip install uvicorn[standard]
---> 100%
```

View File

@ -64,7 +64,7 @@ $ pip install fastapi[all]
并且安装`uvicorn`来作为服务器:
```
pip install uvicorn
pip install uvicorn[standard]
```
然后对你想使用的每个可选依赖项也执行相同的操作。