Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 155 for Console (0.18 sec)

  1. docs/zh/docs/tutorial/first-steps.md

    # 第一步
    
    最简单的 FastAPI 文件可能像下面这样:
    
    ```Python
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    将其复制到 `main.py` 文件中。
    
    运行实时服务器:
    
    <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 May 12 00:06:16 GMT 2022
    - 9.2K bytes
    - Viewed (0)
  2. docs/ru/docs/deployment/docker.md

    ```
    fastapi>=0.68.0,<0.69.0
    pydantic>=1.8.0,<2.0.0
    uvicorn>=0.15.0,<0.16.0
    ```
    
    Устанавливать зависимости проще всего с помощью `pip`:
    
    <div class="termy">
    
    ```console
    $ pip install -r requirements.txt
    ---> 100%
    Successfully installed fastapi pydantic uvicorn
    ```
    
    </div>
    
    !!! info "Информация"
        Существуют и другие инструменты управления зависимостями.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 57.5K bytes
    - Viewed (0)
  3. docs/en/docs/how-to/conditional-openapi.md

    And then we use it when creating the `FastAPI` app.
    
    Then you could disable OpenAPI (including the UI docs) by setting the environment variable `OPENAPI_URL` to the empty string, like:
    
    <div class="termy">
    
    ```console
    $ OPENAPI_URL= uvicorn main:app
    
    <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: Sat Aug 19 19:54:04 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/security/oauth2-jwt.md

    ## Install `python-jose`
    
    We need to install `python-jose` to generate and verify the JWT tokens in Python:
    
    <div class="termy">
    
    ```console
    $ pip install "python-jose[cryptography]"
    
    ---> 100%
    ```
    
    </div>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/sub-applications.md

    {!../../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### Check the automatic API docs
    
    Now, run `uvicorn` with the main app, if your file is `main.py`, it would be:
    
    <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
    - 2.9K bytes
    - Viewed (0)
  6. docs/pt/docs/advanced/templates.md

    ## Instalação de dependências
    
    Para instalar o `jinja2`, siga o código abaixo:
    
    <div class="termy">
    
    ```console
    $ pip install jinja2
    ```
    
    </div>
    
    ## Usando `Jinja2Templates`
    
    * Importe `Jinja2Templates`.
    * Crie um `templates` que você possa reutilizar posteriormente.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 28 04:05:17 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/sub-applications.md

    本例的子应用挂载在 `/subapi` 路径下:
    
    ```Python hl_lines="11  19"
    {!../../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### 查看文档
    
    如果主文件是 `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)
    ```
    
    </div>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  8. docs/de/docs/contributing.md

    <div class="termy">
    
    ```console
    $ python -m venv env
    ```
    
    </div>
    
    Das erstellt ein Verzeichnis `./env/` mit den Python-Binärdateien und Sie können dann Packages in dieser lokalen Umgebung installieren.
    
    ### Umgebung aktivieren
    
    Aktivieren Sie die neue Umgebung mit:
    
    === "Linux, macOS"
    
        <div class="termy">
    
        ```console
        $ source ./env/bin/activate
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 23:55:23 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  9. docs/em/docs/advanced/sub-applications.md

    ```Python hl_lines="11  19"
    {!../../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### ✅ 🏧 🛠️ 🩺
    
    🔜, 🏃 `uvicorn` ⏮️ 👑 📱, 🚥 👆 📁 `main.py`, ⚫️ 🔜:
    
    <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
    - 2.4K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/async-tests.md

    ```Python
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    ## Es ausführen
    
    Sie können Ihre Tests wie gewohnt ausführen mit:
    
    <div class="termy">
    
    ```console
    $ pytest
    
    ---> 100%
    ```
    
    </div>
    
    ## Details
    
    Der Marker `@pytest.mark.anyio` teilt pytest mit, dass diese Testfunktion asynchron aufgerufen werden soll:
    
    ```Python hl_lines="7"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:25:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top