Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 431 for Main (0.37 sec)

  1. docs/en/docs/deployment/server-workers.md

    ```
    
    </div>
    
    Let's see what each of those options mean:
    
    * `main:app`: This is the same syntax used by Uvicorn, `main` means the Python module named "`main`", so, a file `main.py`. And `app` is the name of the variable that is the **FastAPI** application.
        * You can imagine that `main:app` is equivalent to a Python `import` statement like:
    
            ```Python
            from main import app
            ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  2. doc/next/1-intro.md

    <!--
    NOTE: In this document and others in this directory, the convention is to
    set fixed-width phrases with non-fixed-width spaces, as in
    `hello` `world`.
    -->
    
    <style>
      main ul li { margin: 0.5em 0; }
    </style>
    
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:44:53 GMT 2024
    - 256 bytes
    - Viewed (0)
  3. docs/tr/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    !!! note "Not"
        `uvicorn main:app` komutunu şu şekilde açıklayabiliriz:
    
        * `main`: dosya olan `main.py` (yani Python "modülü").
        * `app`: ise `main.py` dosyasının içerisinde `app = FastAPI()` satırında oluşturduğumuz `FastAPI` nesnesi.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Feb 08 13:10:55 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  4. okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt

    import okhttp3.MediaType
    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.curl.Main
    import okhttp3.internal.http.StatusLine
    import okio.sink
    
    internal fun Main.commonCreateRequest(): Request {
      val request = Request.Builder()
    
      val requestMethod = method ?: if (data != null) "POST" else "GET"
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    !!! note "Технические детали"
        Команда `uvicorn main:app` обращается к:
    
        * `main`: файл `main.py` (модуль Python).
        * `app`: объект, созданный внутри файла `main.py` в строке `app = FastAPI()`.
        * `--reload`: перезапускает сервер после изменения кода. Используйте только для разработки.
    
    В окне вывода появится следующая строка:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    !!! note "Nota"
        El comando `uvicorn main:app` se refiere a:
    
        * `main`: el archivo `main.py` (el "módulo" de Python).
        * `app`: el objeto creado dentro de `main.py` con la línea `app = FastAPI()`.
        * `--reload`: hace que el servidor se reinicie cada vez que cambia el código. Úsalo únicamente para desarrollo.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    !!! note "Hinweis"
        Der Befehl `uvicorn main:app` bezieht sich auf:
    
        * `main`: die Datei `main.py` (das sogenannte Python-„Modul“).
        * `app`: das Objekt, welches in der Datei `main.py` mit der Zeile `app = FastAPI()` erzeugt wurde.
        * `--reload`: lässt den Server nach Codeänderungen neu starten. Verwenden Sie das nur während der Entwicklung.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 12:16:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/testing-database.md

    Because now we are going to use a new database in a new file, we need to make sure we create the database with:
    
    ```Python
    Base.metadata.create_all(bind=engine)
    ```
    
    That is normally called in `main.py`, but the line in `main.py` uses the database file `sql_app.db`, and we need to make sure we create `test.db` for the tests.
    
    So we add that line here, with the new file.
    
    ```Python hl_lines="16"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  9. native-image-tests/src/main/kotlin/okhttp3/GenerateClassList.kt

      )
    
    /**
     * Run periodically to refresh the known set of working tests.
     *
     * TODO use filtering to allow skipping acceptable problem tests
     */
    fun main() {
      val knownTestFile = File("native-image-tests/src/main/resources/testlist.txt")
      val testSelector = DiscoverySelectors.selectPackage("okhttp3")
      val testClasses =
        findTests(listOf(testSelector))
          .filter { it.isContainer }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  10. docs/tr/docs/index.md

    `uvicorn main:app` komutunu şu şekilde açıklayabiliriz:
    
    * `main`: dosya olan `main.py` (yani Python "modülü").
    * `app`: ise `main.py` dosyasının içerisinde `app = FastAPI()` satırında oluşturduğumuz `FastAPI` nesnesi.
    * `--reload`: kod değişikliklerinin ardından sunucuyu otomatik olarak yeniden başlatır. Bu parameteyi sadece geliştirme aşamasında kullanmalıyız.
    
    </details>
    
    ### Şimdi de Kontrol Edelim
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 21.9K bytes
    - Viewed (0)
Back to top