Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 700 for MAIN (0.01 sec)

  1. docs/ru/docs/fastapi-cli.md

       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    
         <span style="background-color:#007166"><font color="#D3D7CF"> code </font></span>  Importing the FastAPI app object from the module with the
                 following code:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 09 12:49:43 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. docs/zh-hant/docs/tutorial/first-steps.md

    # 第一步
    
    最簡單的 FastAPI 檔案可能看起來像這樣:
    
    {* ../../docs_src/first_steps/tutorial001.py *}
    
    將其複製到一個名為 `main.py` 的文件中。
    
    執行即時重新載入伺服器(live server):
    
    <div class="termy">
    
    ```console
    $ <font color="#4E9A06">fastapi</font> dev <u style="text-decoration-style:single">main.py</u>
    <font color="#3465A4">INFO    </font> Using path <font color="#3465A4">main.py</font>
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 09 12:20:58 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. docs/en/docs/deployment/manually.md

    ```
    
    </div>
    
    /// note
    
    The command `uvicorn main:app` refers to:
    
    * `main`: the file `main.py` (the Python "module").
    * `app`: the object created inside of `main.py` with the line `app = FastAPI()`.
    
    It is equivalent to:
    
    ```Python
    from main import app
    ```
    
    ///
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  4. docs/bn/docs/environment-variables.md

    <div class="termy">
    
    ```console
    // এখনো আমরা এনভায়রনমেন্ট ভেরিয়েবল সেট করিনি
    $ python main.py
    
    // যেহেতু env var সেট করা হয়নি, তাই আমরা ডিফল্ট ভ্যালু পাচ্ছি
    
    Hello World from Python
    
    // কিন্তু আমরা প্রথমে যদি একটা এনভায়রনমেন্ট ভারিয়েবল তৈরি করে নেই
    $ export MY_NAME="Wade Wilson"
    
    // এবং তারপর আবার প্রোগ্রাটিকে কল করি
    $ python main.py
    
    // এখন এটি এনভায়রনমেন্ট ভেরিয়েবল রিড করতে পারবে
    
    Hello Wade Wilson from Python
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Thu Jun 05 08:15:56 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  5. docs/es/docs/environment-variables.md

    <div class="termy">
    
    ```console
    // Aquí todavía no configuramos la env var
    $ python main.py
    
    // Como no configuramos la env var, obtenemos el valor por defecto
    
    Hello World from Python
    
    // Pero si creamos una variable de entorno primero
    $ export MY_NAME="Wade Wilson"
    
    // Y luego llamamos al programa nuevamente
    $ python main.py
    
    // Ahora puede leer la variable de entorno
    
    Hello Wade Wilson from Python
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. docs/pt/docs/advanced/settings.md

    <div class="termy">
    
    ```console
    // Aqui ainda não definimos a env var
    $ python main.py
    
    // Por isso obtemos o valor padrão
    
    Hello World from Python
    
    // Mas se definirmos uma variável de ambiente primeiro
    $ export MY_NAME="Wade Wilson"
    
    // E executarmos o programa novamente
    $ python main.py
    
    // Agora ele pode ler a variável de ambiente
    
    Hello Wade Wilson from Python
    ```
    
    </div>
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Wed Jan 15 20:17:23 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/PathScope.java

        Set<DependencyScope> dependencyScopes();
    
        PathScope MAIN_COMPILE = pathScope(
                "main-compile",
                ProjectScope.MAIN,
                DependencyScope.COMPILE_ONLY,
                DependencyScope.COMPILE,
                DependencyScope.PROVIDED);
    
        PathScope MAIN_RUNTIME =
                pathScope("main-runtime", ProjectScope.MAIN, DependencyScope.COMPILE, DependencyScope.RUNTIME);
    
        PathScope TEST_COMPILE = pathScope(
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 10 20:52:34 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. docs/em/docs/deployment/server-workers.md

    ```
    
    </div>
    
    ➡️ 👀 ⚫️❔ 🔠 👈 🎛 ⛓:
    
    * `main:app`: 👉 🎏 ❕ ⚙️ Uvicorn, `main` ⛓ 🐍 🕹 📛 "`main`",, 📁 `main.py`. &amp; `app` 📛 🔢 👈 **FastAPI** 🈸.
        * 👆 💪 🌈 👈 `main:app` 🌓 🐍 `import` 📄 💖:
    
            ```Python
            from main import app
            ```
    
        * , ❤ `main:app` 🔜 🌓 🐍 `import` 🍕 `from main import app`.
    * `--workers`: 🔢 👨‍🏭 🛠️ ⚙️, 🔠 🔜 🏃 Uvicorn 👨‍🏭, 👉 💼, 4️⃣ 👨‍🏭.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. docs/en/docs/deployment/docker.md

    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (1)!
    COPY ./main.py /code/
    
    # (2)!
    CMD ["fastapi", "run", "main.py", "--port", "80"]
    ```
    
    1. Copy the `main.py` file to the `/code` directory directly (without any `./app` directory).
    
    2. Use `fastapi run` to serve your application in the single file `main.py`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 29.5K bytes
    - Viewed (1)
  10. docs/en/docs/tutorial/index.md

    All the code blocks can be copied and used directly (they are actually tested Python files).
    
    To run any of the examples, copy the code to a file `main.py`, and start `fastapi dev` with:
    
    <div class="termy">
    
    ```console
    $ <font color="#4E9A06">fastapi</font> dev <u style="text-decoration-style:solid">main.py</u>
    
      <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span>  Starting development server 🚀
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top