- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 202 for Wain (0.2 sec)
-
docs/fr/docs/deployment/manually.md
=== "Uvicorn" <div class="termy"> ```console $ uvicorn main:app --host 0.0.0.0 --port 80 <span style="color: green;">INFO</span>: Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit) ``` </div> === "Hypercorn" <div class="termy"> ```console $ hypercorn main:app --bind 0.0.0.0:80 Running on 0.0.0.0:8080 over http (CTRL + C to quit) ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 04 12:02:09 GMT 2023 - 5.4K bytes - Viewed (0) -
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) -
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) -
docs/ja/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> ただし、次のように、別のファイルからインポートされるときには呼び出されません: ```Python
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Feb 07 17:25:31 GMT 2021 - 3K bytes - Viewed (0) -
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) -
docs/vi/docs/tutorial/first-steps.md
<span style="color: green;">INFO</span>: Application startup complete. ``` </div> !!! note Câu lệnh `uvicorn main:app` được giải thích như sau: * `main`: tệp tin `main.py` (một Python "mô đun"). * `app`: một object được tạo ra bên trong `main.py` với dòng `app = FastAPI()`. * `--reload`: làm server khởi động lại sau mỗi lần thay đổi. Chỉ sử dụng trong môi trường phát triển.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Sep 02 15:44:17 GMT 2023 - 11.2K bytes - Viewed (0) -
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) -
docs/em/docs/deployment/docker.md
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) -
docs/zh/docs/advanced/testing-database.md
为了把注意力集中在测试代码上,本例只是复制了这段代码。 ## 创建数据库 因为现在是想在新文件中使用新数据库,所以要使用以下代码创建数据库: ```Python Base.metadata.create_all(bind=engine) ``` 一般是在 `main.py` 中调用这行代码,但在 `main.py` 里,这行代码用于创建 `sql_app.db`,但是现在要为测试创建 `test.db`。 因此,要在测试代码中添加这行代码创建新的数据库文件。 ```Python hl_lines="16" {!../../../docs_src/sql_databases/sql_app/tests/test_sql_app.py!} ``` ## 覆盖依赖项
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Jan 28 18:09:26 GMT 2024 - 2.8K bytes - Viewed (0) -
docs/de/docs/tutorial/index.md
Alle Codeblöcke können kopiert und direkt verwendet werden (da es sich um getestete Python-Dateien handelt). Um eines der Beispiele auszuführen, kopieren Sie den Code in eine Datei `main.py`, und starten Sie `uvicorn` mit: <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 Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Jan 16 12:11:15 GMT 2024 - 3.1K bytes - Viewed (0)