Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 179 for Wain (0.18 sec)

  1. tests/main.py

    arjwilliams <******@****.***> 1713477419 +0100
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_testing/test_main_b_an_py310.py

    from ...utils import needs_py310
    
    
    @needs_py310
    def test_app():
        from docs_src.app_testing.app_b_an_py310 import test_main
    
        test_main.test_create_existing_item()
        test_main.test_create_item()
        test_main.test_create_item_bad_token()
        test_main.test_read_nonexistent_item()
        test_main.test_read_item()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 360 bytes
    - Viewed (0)
  3. docs/en/docs/advanced/settings.md

    ### The main app file
    
    Now we create a dependency that returns a new `config.Settings()`.
    
    === "Python 3.9+"
    
        ```Python hl_lines="6  12-13"
        {!> ../../../docs_src/settings/app02_an_py39/main.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="6  12-13"
        {!> ../../../docs_src/settings/app02_an/main.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  4. docs/zh/docs/advanced/settings.md

        {!> ../../../docs_src/settings/app02_an_py39/main.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="6  12-13"
        {!> ../../../docs_src/settings/app02_an/main.py!}
        ```
    
    === "Python 3.8+ 非注解版本"
    
        !!! tip
            如果可能,请尽量使用 `Annotated` 版本。
    
        ```Python hl_lines="5  11-12"
        {!> ../../../docs_src/settings/app02/main.py!}
        ```
    
    !!! tip
        我们稍后会讨论 `@lru_cache`。
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  5. docs/pl/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    !!! note
        Polecenie `uvicorn main:app` odnosi się do:
    
        * `main`: plik `main.py` ("moduł" Python).
        * `app`: obiekt utworzony w pliku `main.py` w lini `app = FastAPI()`.
        * `--reload`: sprawia, że serwer uruchamia się ponownie po zmianie kodu. Używany tylko w trakcie tworzenia oprogramowania.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/sql-databases.md

        `Item(**item.dict(), owner_id=user_id)`
    
    ## Main **FastAPI** app
    
    And now in the file `sql_app/main.py` let's integrate and use all the other parts we created before.
    
    ### Create the database tables
    
    In a very simplistic way create the database tables:
    
    === "Python 3.9+"
    
        ```Python hl_lines="7"
        {!> ../../../docs_src/sql_databases/sql_app_py39/main.py!}
        ```
    
    === "Python 3.8+"
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  7. docs/em/docs/deployment/docker.md

    # (1)
    COPY ./main.py /code/
    
    # (2)
    CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
    ```
    
    1️⃣. 📁 `main.py` 📁 `/code` 📁 🔗 (🍵 🙆 `./app` 📁).
    
    2️⃣. 🏃 Uvicorn &amp; 💬 ⚫️ 🗄 `app` 🎚 ⚪️➡️ `main` (↩️ 🏭 ⚪️➡️ `app.main`).
    
    ⤴️ 🔆 Uvicorn 📋 ⚙️ 🆕 🕹 `main` ↩️ `app.main` 🗄 FastAPI 🎚 `app`.
    
    ## 🛠️ 🔧
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 27.9K bytes
    - Viewed (0)
  8. docs/em/docs/how-to/sql-databases-peewee.md

    ## 👑 **FastAPI** 📱
    
    &amp; 🔜 📁 `sql_app/main.py` ➡️ 🛠️ &amp; ⚙️ 🌐 🎏 🍕 👥 ✍ ⏭.
    
    ### ✍ 💽 🏓
    
    📶 🙃 🌌 ✍ 💽 🏓:
    
    ```Python hl_lines="9-11"
    {!../../../docs_src/sql_databases_peewee/sql_app/main.py!}
    ```
    
    ### ✍ 🔗
    
    ✍ 🔗 👈 🔜 🔗 💽 ▶️️ ▶️ 📨 &amp; 🔌 ⚫️ 🔚:
    
    ```Python hl_lines="23-29"
    {!../../../docs_src/sql_databases_peewee/sql_app/main.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  9. docs/he/docs/index.md

    -   `main`: הקובץ `main.py` (מודול פייתון).
    -   `app`: האובייקט שנוצר בתוך `main.py` עם השורה <code dir="ltr">app = FastAPI()</code>.
    -   <code dir="ltr">--reload</code>: גרמו לשרת להתאתחל לאחר שינויים בקוד. עשו זאת רק בסביבת פיתוח.
    
    </details>
    
    ### בדקו אותה
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  10. docs/de/docs/index.md

    INFO:     Application startup complete.
    ```
    
    </div>
    
    <details markdown="1">
    <summary>Was macht der Befehl <code>uvicorn main:app --reload</code> ...</summary>
    
    Der Befehl `uvicorn main:app` bezieht sich auf:
    
    * `main`: die Datei `main.py` (das Python-„Modul“).
    * `app`: das Objekt, das innerhalb von `main.py` mit der Zeile `app = FastAPI()` erzeugt wurde.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:28:17 GMT 2024
    - 21.2K bytes
    - Viewed (0)
Back to top