Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 155 for Console (0.26 sec)

  1. docs/es/docs/tutorial/index.md

    Para ejecutar cualquiera de los ejemplos, copia el código en un archivo llamado `main.py`, y ejecuta `uvicorn` de la siguiente manera en tu terminal:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    <span style="color: green;">INFO</span>:     Started reloader process [28720]
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/security/first-steps.md

        例えば、`pip install python-multipart`。
    
        これは、**OAuth2**が `ユーザー名` や `パスワード` を送信するために、「フォームデータ」を使うからです。
    
    例を実行します:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    ## 確認
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/debugging.md

    `__name__ == "__main__"` 的主要目的是使用以下代码调用文件时执行一些代码:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    而当其它文件导入它时并不会被调用,像这样:
    
    ```Python
    from myapp import app
    ```
    
    #### 更多细节
    
    假设你的文件命名为 `myapp.py`。
    
    如果你这样运行:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    那么文件中由 Python 自动创建的内部变量 `__name__`,会将字符串 `"__main__"` 作为值。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 27 17:51:51 GMT 2021
    - 2.4K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/index.md

    Чтобы запустить любой из примеров, скопируйте код в файл `main.py` и запустите `uvicorn` с параметрами:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    <span style="color: green;">INFO</span>:     Started reloader process [28720]
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/debugging.md

    `__name__ == "__main__"` の主な目的は、ファイルが次のコマンドで呼び出されたときに実行されるコードを用意することです:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    ただし、次のように、別のファイルからインポートされるときには呼び出されません:
    
    ```Python
    from myapp import app
    ```
    
    #### より詳しい説明
    
    ファイルの名前が `myapp.py` だとします。
    
    以下の様に実行する場合:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Feb 07 17:25:31 GMT 2021
    - 3K bytes
    - Viewed (0)
  6. docs/em/docs/deployment/server-workers.md

    ## ❎ 🐁 &amp; Uvicorn
    
    <div class="termy">
    
    ```console
    $ pip install "uvicorn[standard]" gunicorn
    
    ---> 100%
    ```
    
    </div>
    
    👈 🔜 ❎ 👯‍♂️ Uvicorn ⏮️ `standard` ➕ 📦 (🤚 ↕ 🎭) &amp; 🐁.
    
    ## 🏃 🐁 ⏮️ Uvicorn 👨‍🏭
    
    ⤴️ 👆 💪 🏃 🐁 ⏮️:
    
    <div class="termy">
    
    ```console
    $ gunicorn main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:80
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/first-steps.md

    ```Python
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Copie o conteúdo para um arquivo `main.py`.
    
    Execute o servidor:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    <span style="color: green;">INFO</span>:     Started reloader process [28720]
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/security/oauth2-jwt.md

    如需深入了解 JWT 令牌,了解它的工作方式,请参阅 <a href="https://jwt.io/" class="external-link" target="_blank">https://jwt.io</a>。
    
    ## 安装 `python-jose`
    
    安装 `python-jose`,在 Python 中生成和校验 JWT 令牌:
    
    <div class="termy">
    
    ```console
    $ pip install python-jose[cryptography]
    
    ---> 100%
    ```
    
    </div>
    
    <a href="https://github.com/mpdavis/python-jose" class="external-link" target="_blank">Python-jose</a> 需要安装配套的加密后端。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/debugging.md

    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    but is not called when another file imports it, like in:
    
    ```Python
    from myapp import app
    ```
    
    #### More details
    
    Let's say your file is named `myapp.py`.
    
    If you run it with:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jun 22 17:04:16 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  10. docs/zh/docs/advanced/templates.md

    Flask 等工具使用的 Jinja2 是最用的模板引擎。
    
    在 Starlette 的支持下,**FastAPI** 应用可以直接使用工具轻易地配置 Jinja2。
    
    ## 安装依赖项
    
    安装 `jinja2`:
    
    <div class="termy">
    
    ```console
    $ pip install jinja2
    
    ---> 100%
    ```
    
    </div>
    
    如需使用静态文件,还要安装 `aiofiles`:
    
    <div class="termy">
    
    ```console
    $ pip install aiofiles
    
    ---> 100%
    ```
    
    </div>
    
    ## 使用 `Jinja2Templates`
    
    * 导入 `Jinja2Templates`
    * 创建可复用的 `templates` 对象
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:45:16 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top