]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Update Uvicorn installation instructions to use uvicorn[standard] (includes uvloop...
authorSebastián Ramírez <tiangolo@gmail.com>
Sat, 19 Dec 2020 20:30:18 +0000 (21:30 +0100)
committerGitHub <noreply@github.com>
Sat, 19 Dec 2020 20:30:18 +0000 (21:30 +0100)
21 files changed:
README.md
docs/en/docs/deployment/manually.md
docs/en/docs/index.md
docs/en/docs/tutorial/index.md
docs/es/docs/index.md
docs/es/docs/tutorial/index.md
docs/fr/docs/index.md
docs/it/docs/index.md
docs/ja/docs/index.md
docs/ja/docs/tutorial/index.md
docs/ko/docs/index.md
docs/pt/docs/deployment.md
docs/pt/docs/index.md
docs/pt/docs/tutorial/index.md
docs/ru/docs/index.md
docs/sq/docs/index.md
docs/tr/docs/index.md
docs/uk/docs/index.md
docs/zh/docs/deployment.md
docs/zh/docs/index.md
docs/zh/docs/tutorial/index.md

index c95e4e2bbe53048983d2a15808d23d36b81e7351..3e56130f14dfd53025cdbed0b0434805d9fef493 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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%
 ```
index 405124165351ff0376df0989046fa555f2a6980b..daa31a3047fb755911fadfbbff34fbef36ad2b26 100644 (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.
index 518beb33cd35bfdd5fb6337e19a3860ed676865c..a721c3c126c071ddefd1ef9d3d43ebe3ec5bf95d 100644 (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%
 ```
index 107961d3b2de3e3a44a2134c8657a21db216ca18..bd02cd53935d37f9f21ba012feb1b2ed57605f7a 100644 (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.
index 5beb61670514ed6b94632f6bc8e177254c554e0c..036584745032d3a3f2df97e5672088470eb6bd57 100644 (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%
 ```
index 05a9271ce9214f08c893c8ae8716c9ad96a8db9c..14ce3922536372e3451eacb0fb87f1f834f91d93 100644 (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.
index f913a1f6856ec705802e8199bbae22571fd77fcb..9cc706c43cada72532007b0f2c36fbc4a69173af 100644 (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%
 ```
index 45a02d489328a58adc6327f040b5c26af3eb6d17..318acc413e01e4e70c7af8a7dc3cad8649268a09 100644 (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%
 ```
index f492906cbe31deb6cb9ddfb562d19578a3168cc7..87dac883228c545b6774f4b34a6cdb487ee91fef 100644 (file)
@@ -128,7 +128,7 @@ $ pip install fastapi
 <div class="termy">
 
 ```console
-$ pip install uvicorn
+$ pip install uvicorn[standard]
 
 ---> 100%
 ```
index c78f7795448db9ca670dc1076786823ff81a0de2..29fc86f94bcd8835f068bacba5e270630cd73a36 100644 (file)
@@ -64,7 +64,7 @@ $ pip install fastapi[all]
     また、サーバーとして動作するように`uvicorn` をインストールします:
 
     ```
-    pip install uvicorn
+    pip install uvicorn[standard]
     ```
 
     そして、使用したい依存関係をそれぞれ同様にインストールします。
index 099fe1eaeb58a9a8c8ac7b8e74efd9b631068477..abbad4fb4ad0dd516d04f514af30734d91ecd25d 100644 (file)
@@ -128,7 +128,7 @@ $ pip install fastapi
 <div class="termy">
 
 ```console
-$ pip install uvicorn
+$ pip install uvicorn[standard]
 
 ---> 100%
 ```
index a51d616511f18254f0223525f149e5e2aaca3c06..cd820cbd3c97b9cd9ad8902903b5194e824feae3 100644 (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%
     ```
index fd6428e15f5212f25cbc0d481acb7e9c9a3e2624..97ca5a056329362ef124a4490327199c345e22a5 100644 (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%
 ```
index 8470927a7ffd2bd5e3f1ef3f3555d7437cc956f3..f93fd8d75c74efd936b2a1b02c47e7a28bd8ba4d 100644 (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.
index 3ae908357b4a07bf7399e53e776fa20287e05f86..c5dac9c392def7fd9db2cfb7be455986fb9e3ae5 100644 (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%
 ```
index 4cf339117623e873d680a4d973098d8c4a7026f9..edc19fa480cf7319a35e07b76ed66d090d8e8077 100644 (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%
 ```
index 97964b70cefda989f137477dff9edb728ae78bbb..2614719613e6692b171562b6dae5c6414adc2aa4 100644 (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%
 ```
index 4cf339117623e873d680a4d973098d8c4a7026f9..edc19fa480cf7319a35e07b76ed66d090d8e8077 100644 (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%
 ```
index 8cca1091edd50f2173abf958361a5bde08cd2fda..4dac57befb949ae992220f8eddfb550587f14d94 100644 (file)
@@ -338,7 +338,7 @@ Traefik 也集成了 Docker,所以你也可以在每个应用的配置中声
 <div class="termy">
 
 ```console
-$ pip install uvicorn
+$ pip install uvicorn[standard]
 
 ---> 100%
 ```
index 2502295a70f9059cd394a8262e6f6e1fb8483722..0c73578aab48131efd30c219abcca93545d76960 100644 (file)
@@ -128,7 +128,7 @@ $ pip install fastapi
 <div class="termy">
 
 ```console
-$ pip install uvicorn
+$ pip install uvicorn[standard]
 
 ---> 100%
 ```
index fbc488202f25f21b0b880b4cbee63c6de70864e5..36495ec0b8fb89aa38542814912614acf4c00fbb 100644 (file)
@@ -64,7 +64,7 @@ $ pip install fastapi[all]
     并且安装`uvicorn`来作为服务器:
 
     ```
-    pip install uvicorn
+    pip install uvicorn[standard]
     ```
 
     然后对你想使用的每个可选依赖项也执行相同的操作。