From: Sebastián Ramírez Date: Sat, 19 Dec 2020 20:30:18 +0000 (+0100) Subject: 📝 Update Uvicorn installation instructions to use uvicorn[standard] (includes uvloop... X-Git-Tag: 0.63.0~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2a6341c60c5f26e847bfc8f4cc746b834451312;p=thirdparty%2Ffastapi%2Ffastapi.git 📝 Update Uvicorn installation instructions to use uvicorn[standard] (includes uvloop) (#2543) --- diff --git a/README.md b/README.md index c95e4e2bbe..3e56130f14 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ You will also need an ASGI server, for production such as ```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/en/docs/deployment/manually.md b/docs/en/docs/deployment/manually.md index 4051241653..daa31a3047 100644 --- a/docs/en/docs/deployment/manually.md +++ b/docs/en/docs/deployment/manually.md @@ -11,13 +11,18 @@ You just need to install an ASGI compatible server like:
```console - $ pip install uvicorn + $ pip install uvicorn[standard] ---> 100% ```
+ !!! 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" *
Hypercorn, an ASGI server also compatible with HTTP/2. diff --git a/docs/en/docs/index.md b/docs/en/docs/index.md index 518beb33cd..a721c3c126 100644 --- a/docs/en/docs/index.md +++ b/docs/en/docs/index.md @@ -128,7 +128,7 @@ You will also need an ASGI server, for production such as ```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/en/docs/tutorial/index.md b/docs/en/docs/tutorial/index.md index 107961d3b2..bd02cd5393 100644 --- a/docs/en/docs/tutorial/index.md +++ b/docs/en/docs/tutorial/index.md @@ -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. diff --git a/docs/es/docs/index.md b/docs/es/docs/index.md index 5beb616705..0365847450 100644 --- a/docs/es/docs/index.md +++ b/docs/es/docs/index.md @@ -127,7 +127,7 @@ También vas a necesitar un servidor ASGI para producción cómo ```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/es/docs/tutorial/index.md b/docs/es/docs/tutorial/index.md index 05a9271ce9..14ce392253 100644 --- a/docs/es/docs/tutorial/index.md +++ b/docs/es/docs/tutorial/index.md @@ -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. diff --git a/docs/fr/docs/index.md b/docs/fr/docs/index.md index f913a1f685..9cc706c43c 100644 --- a/docs/fr/docs/index.md +++ b/docs/fr/docs/index.md @@ -132,7 +132,7 @@ You will also need an ASGI server, for production such as ```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/it/docs/index.md b/docs/it/docs/index.md index 45a02d4893..318acc413e 100644 --- a/docs/it/docs/index.md +++ b/docs/it/docs/index.md @@ -132,7 +132,7 @@ You will also need an ASGI server, for production such as ```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/ja/docs/index.md b/docs/ja/docs/index.md index f492906cbe..87dac88322 100644 --- a/docs/ja/docs/index.md +++ b/docs/ja/docs/index.md @@ -128,7 +128,7 @@ $ pip install fastapi
```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/ja/docs/tutorial/index.md b/docs/ja/docs/tutorial/index.md index c78f779544..29fc86f94b 100644 --- a/docs/ja/docs/tutorial/index.md +++ b/docs/ja/docs/tutorial/index.md @@ -64,7 +64,7 @@ $ pip install fastapi[all] また、サーバーとして動作するように`uvicorn` をインストールします: ``` - pip install uvicorn + pip install uvicorn[standard] ``` そして、使用したい依存関係をそれぞれ同様にインストールします。 diff --git a/docs/ko/docs/index.md b/docs/ko/docs/index.md index 099fe1eaeb..abbad4fb4a 100644 --- a/docs/ko/docs/index.md +++ b/docs/ko/docs/index.md @@ -128,7 +128,7 @@ $ pip install fastapi
```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/pt/docs/deployment.md b/docs/pt/docs/deployment.md index a51d616511..cd820cbd3c 100644 --- a/docs/pt/docs/deployment.md +++ b/docs/pt/docs/deployment.md @@ -336,7 +336,7 @@ Você apenas precisa instalar um servidor ASGI compatível como:
```console - $ pip install uvicorn + $ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/pt/docs/index.md b/docs/pt/docs/index.md index fd6428e15f..97ca5a0563 100644 --- a/docs/pt/docs/index.md +++ b/docs/pt/docs/index.md @@ -121,7 +121,7 @@ Você também precisará de um servidor ASGI para produção, tal como ```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/pt/docs/tutorial/index.md b/docs/pt/docs/tutorial/index.md index 8470927a7f..f93fd8d75c 100644 --- a/docs/pt/docs/tutorial/index.md +++ b/docs/pt/docs/tutorial/index.md @@ -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. diff --git a/docs/ru/docs/index.md b/docs/ru/docs/index.md index 3ae908357b..c5dac9c392 100644 --- a/docs/ru/docs/index.md +++ b/docs/ru/docs/index.md @@ -132,7 +132,7 @@ You will also need an ASGI server, for production such as ```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/sq/docs/index.md b/docs/sq/docs/index.md index 4cf3391176..edc19fa480 100644 --- a/docs/sq/docs/index.md +++ b/docs/sq/docs/index.md @@ -132,7 +132,7 @@ You will also need an ASGI server, for production such as ```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/tr/docs/index.md b/docs/tr/docs/index.md index 97964b70ce..2614719613 100644 --- a/docs/tr/docs/index.md +++ b/docs/tr/docs/index.md @@ -132,7 +132,7 @@ You will also need an ASGI server, for production such as ```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/uk/docs/index.md b/docs/uk/docs/index.md index 4cf3391176..edc19fa480 100644 --- a/docs/uk/docs/index.md +++ b/docs/uk/docs/index.md @@ -132,7 +132,7 @@ You will also need an ASGI server, for production such as ```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/zh/docs/deployment.md b/docs/zh/docs/deployment.md index 8cca1091ed..4dac57befb 100644 --- a/docs/zh/docs/deployment.md +++ b/docs/zh/docs/deployment.md @@ -338,7 +338,7 @@ Traefik 也集成了 Docker,所以你也可以在每个应用的配置中声
```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/zh/docs/index.md b/docs/zh/docs/index.md index 2502295a70..0c73578aab 100644 --- a/docs/zh/docs/index.md +++ b/docs/zh/docs/index.md @@ -128,7 +128,7 @@ $ pip install fastapi
```console -$ pip install uvicorn +$ pip install uvicorn[standard] ---> 100% ``` diff --git a/docs/zh/docs/tutorial/index.md b/docs/zh/docs/tutorial/index.md index fbc488202f..36495ec0b8 100644 --- a/docs/zh/docs/tutorial/index.md +++ b/docs/zh/docs/tutorial/index.md @@ -64,7 +64,7 @@ $ pip install fastapi[all] 并且安装`uvicorn`来作为服务器: ``` - pip install uvicorn + pip install uvicorn[standard] ``` 然后对你想使用的每个可选依赖项也执行相同的操作。