Skip to content

Commit

Permalink
📝 Update Uvicorn installation instructions to use uvicorn[standard] (…
Browse files Browse the repository at this point in the history
…includes uvloop) (fastapi#2543)
  • Loading branch information
tiangolo authored Dec 19, 2020
1 parent 7046d80 commit e2a6341
Show file tree
Hide file tree
Showing 21 changed files with 26 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%
```
Expand Down
7 changes: 6 additions & 1 deletion docs/en/docs/deployment/manually.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/es/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/es/docs/tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/fr/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/it/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/ja/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ $ pip install fastapi
<div class="termy">

```console
$ pip install uvicorn
$ pip install uvicorn[standard]

---> 100%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/ja/docs/tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ $ pip install fastapi[all]
また、サーバーとして動作するように`uvicorn` をインストールします:

```
pip install uvicorn
pip install uvicorn[standard]
```

そして、使用したい依存関係をそれぞれ同様にインストールします。
Expand Down
2 changes: 1 addition & 1 deletion docs/ko/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ $ pip install fastapi
<div class="termy">

```console
$ pip install uvicorn
$ pip install uvicorn[standard]

---> 100%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/pt/docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/pt/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/pt/docs/tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/sq/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/tr/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/uk/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ Traefik 也集成了 Docker,所以你也可以在每个应用的配置中声
<div class="termy">

```console
$ pip install uvicorn
$ pip install uvicorn[standard]

---> 100%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ $ pip install fastapi
<div class="termy">

```console
$ pip install uvicorn
$ pip install uvicorn[standard]

---> 100%
```
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/docs/tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ $ pip install fastapi[all]
并且安装`uvicorn`来作为服务器:

```
pip install uvicorn
pip install uvicorn[standard]
```

然后对你想使用的每个可选依赖项也执行相同的操作。
Expand Down

0 comments on commit e2a6341

Please sign in to comment.