Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 42 for main (0.22 sec)

  1. docs/pt/docs/tutorial/index.md

    Todos os blocos de código podem ser copiados e utilizados diretamente (eles são, na verdade, arquivos Python testados).
    
    Para rodar qualquer um dos exemplos, copie o codigo para um arquivo `main.py`, e inicie o `uvivorn` com:
    
    <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)
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. docs/fa/docs/index.md

    * `main`: فایل `main.py` (ماژول پایتون ایجاد شده).
    * `app`: شیء ایجاد شده در فایل `main.py` در خط `app = FastAPI()`.
    * `--reload`: ریستارت کردن سرور با تغییر کد. تنها در هنگام توسعه از این گزینه استفاده شود..
    
    </details>
    
    ### بررسی کنید
    
    آدرس <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a> را در مرورگر خود باز کنید.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 25.9K bytes
    - Viewed (0)
  3. docs/en/docs/deployment/index.md

    You could **deploy a server** yourself using a combination of tools, you could use a **cloud service** that does part of the work for you, or other possible options.
    
    I will show you some of the main concepts you should probably keep in mind when deploying a **FastAPI** application (although most of it applies to any other type of web application).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/index.md

    또한 향후에도 참조 자료로 쓰일 수 있도록 작성되었습니다.
    
    그러므로 필요할 때에 다시 돌아와서 원하는 것을 정확히 찾을 수 있습니다.
    
    ## 코드 실행하기
    
    모든 코드 블록은 복사하여 바로 사용할 수 있습니다(실제로 테스트된 파이썬 파일입니다).
    
    예제를 실행하려면 코드를 `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)
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Feb 02 17:39:46 GMT 2024
    - 3K bytes
    - Viewed (0)
  5. docs/pl/docs/index.md

    * `main`: plik `main.py` ("moduł" w Pythonie).
    * `app`: obiekt stworzony w `main.py` w lini `app = FastAPI()`.
    * `--reload`: spraw by serwer resetował się po każdej zmianie w kodzie. Używaj tego tylko w środowisku deweloperskim.
    
    </details>
    
    ### Wypróbuj
    
    Otwórz link <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a> w przeglądarce.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  6. docs/ru/docs/index.md

    * `main`: файл `main.py` (модуль Python).
    * `app`: объект, созданный внутри `main.py` с помощью строки `app = FastAPI()`.
    * `--reload`: перезапуск сервера после изменения кода. Делайте это только во время разработки.
    
    </details>
    
    ### Проверка
    
    Откройте браузер на <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a>.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  7. docs/it/docs/index.md

    ```
    
    </div>
    
    <details markdown="1">
    <summary>Informazioni sul comando <code>uvicorn main:app --reload</code>...</summary>
    
    Vediamo il comando `uvicorn main:app` in dettaglio:
    
    * `main`: il file `main.py` (il "modulo" Python).
    * `app`: l'oggetto creato dentro `main.py` con la riga di codice `app = FastAPI()`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/security/index.md

    !!! tip
        The next sections are **not necessarily "advanced"**.
    
        And it's possible that for your use case, the solution is in one of them.
    
    ## Read the Tutorial first
    
    The next sections assume you already read the main [Tutorial - User Guide: Security](../../tutorial/security/index.md){.internal-link target=_blank}.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 633 bytes
    - Viewed (0)
  9. docs/zh/docs/index.md

    * `main`:`main.py` 文件(一个 Python "模块")。
    * `app`:在 `main.py` 文件中通过 `app = FastAPI()` 创建的对象。
    * `--reload`:让服务器在更新代码后重新启动。仅在开发时使用该选项。
    
    </details>
    
    ### 检查
    
    使用浏览器访问 <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a>。
    
    你将会看到如下 JSON 响应:
    
    ```JSON
    {"item_id": 5, "q": "somequery"}
    ```
    
    你已经创建了一个具有以下功能的 API:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  10. docs/en/docs/index.md

    INFO:     Waiting for application startup.
    INFO:     Application startup complete.
    ```
    
    </div>
    
    <details markdown="1">
    <summary>About the command <code>fastapi dev main.py</code>...</summary>
    
    The command `fastapi dev` reads your `main.py` file, detects the **FastAPI** app in it, and starts a server using <a href="https://www.uvicorn.org" class="external-link" target="_blank">Uvicorn</a>.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 19.8K bytes
    - Viewed (0)
Back to top