Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 508 for main (0.41 sec)

  1. docs/em/docs/tutorial/debugging.md

    ## 🤙 `uvicorn`
    
    👆 FastAPI 🈸, 🗄 & 🏃 `uvicorn` 🔗:
    
    ```Python hl_lines="1  15"
    {!../../../docs_src/debugging/tutorial001.py!}
    ```
    
    ### 🔃 `__name__ == "__main__"`
    
    👑 🎯 `__name__ == "__main__"` ✔️ 📟 👈 🛠️ 🕐❔ 👆 📁 🤙 ⏮️:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    ✋️ 🚫 🤙 🕐❔ ➕1️⃣ 📁 🗄 ⚫️, 💖:
    
    ```Python
    from myapp import app
    ```
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/bigger-applications.md

    因此,为了能够在同一个文件中使用它们,我们直接导入子模块:
    
    ```Python hl_lines="5" title="app/main.py"
    {!../../../docs_src/bigger_applications/app/main.py!}
    ```
    
    ### 包含 `users` 和 `items` 的 `APIRouter`
    
    现在,让我们来包含来自 `users` 和 `items` 子模块的 `router`。
    
    ```Python hl_lines="10-11" title="app/main.py"
    {!../../../docs_src/bigger_applications/app/main.py!}
    ```
    
    !!! info
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  3. .gitignore

    /target/
    /work/
    /bin/
    /mydbflute/
    /solr/data/
    /src/main/webapp/WEB-INF/classes/
    /src/main/webapp/WEB-INF/lib/
    /src/main/webapp/WEB-INF/site/
    /src/main/webapp/WEB-INF/plugin/
    /src/main/webapp/WEB-INF/env/crawler/lib/
    /src/main/webapp/WEB-INF/env/suggest/lib/
    /src/main/webapp/WEB-INF/env/thumbnail/lib/
    /src/main/webapp/WEB-INF/thumbnails/
    /src/main/webapp/jar/
    /dbflute_fess/extlib/*
    /dbflute_fess/log/*.log
    /dbflute_h2/log/*.log
    Plain Text
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Mar 17 01:48:33 GMT 2022
    - 983 bytes
    - Viewed (0)
  4. build-logic/jvm/src/main/kotlin/gradlebuild.launchable-jar.gradle.kts

        unixScriptTemplate.from(layout.projectDirectory.file("../../../platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt"))
        windowsScriptTemplate.from(layout.projectDirectory.file("../../../platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/windowsStartScript.txt"))
    }
    
    configurations {
        create("gradleScriptsElements") {
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Wed Feb 28 23:38:57 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  5. docs/zh/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`:让服务器在更新代码后重新启动。仅在开发时使用该选项。
    
    
    在输出中,会有一行信息像下面这样:
    
    ```hl_lines="4"
    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)
  6. docs/ru/docs/tutorial/testing.md

    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Так как оба файла находятся в одной директории, для импорта объекта приложения из файла `main` в файл `test_main` Вы можете использовать относительный импорт:
    
    ```Python hl_lines="3"
    {!../../../docs_src/app_testing/test_main.py!}
    ```
    
    ...и писать дальше тесты, как и раньше.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/settings.md

    <div class="termy">
    
    ```console
    // Here we don't set the env var yet
    $ python main.py
    
    // As we didn't set the env var, we get the default value
    
    Hello World from Python
    
    // But if we create an environment variable first
    $ export MY_NAME="Wade Wilson"
    
    // And then call the program again
    $ python main.py
    
    // Now it can read the environment variable
    
    Hello Wade Wilson from Python
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  8. build-logic/jvm/src/main/kotlin/gradlebuild.api-parameter-names-index.gradle.kts

    plugins {
        id("gradlebuild.module-identity")
        java
    }
    
    val main = sourceSets.main.get()
    val parameterNamesIndex by tasks.registering(ParameterNamesIndex::class) {
        sources.from(
            main.allJava.matching {
                include(PublicApi.includes)
                exclude(PublicApi.excludes)
            }
        )
        classpath.from(main.compileClasspath)
        classpath.from(tasks.named<JavaCompile>("compileJava"))
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Fri Jan 20 15:24:40 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/async-tests.md

    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    The file `main.py` would have:
    
    ```Python
    {!../../../docs_src/async_tests/main.py!}
    ```
    
    The file `test_main.py` would have the tests for `main.py`, it could look like this now:
    
    ```Python
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    ## Run it
    
    You can run your tests as usual via:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 12:07:15 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. native-image-tests/src/main/kotlin/okhttp3/RunTests.kt

    import org.junit.platform.launcher.core.LauncherFactory
    import org.junit.platform.launcher.listeners.SummaryGeneratingListener
    
    /**
     * Graal main method to run tests with minimal reflection and automatic settings.
     * Uses the test list in native-image-tests/src/main/resources/testlist.txt.
     */
    fun main(vararg args: String) {
      System.setProperty("junit.jupiter.extensions.autodetection.enabled", "true")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
Back to top