- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 431 for Main (0.2 sec)
-
docs/zh/docs/tutorial/debugging.md
你可以在编辑器中连接调试器,例如使用 Visual Studio Code 或 PyCharm。 ## 调用 `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 from myapp import app ``` #### 更多细节
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 27 17:51:51 GMT 2021 - 2.4K bytes - Viewed (0) -
maven-core/src/site/apt/lifecycles.apt.vm
%{snippet|id=default|file=${project.basedir}/src/main/java/org/apache/maven/lifecycle/providers/DefaultLifecycleProvider.java} * <<<clean>>> Lifecycle <<<clean>>> lifecycle phases are defined with their plugins bindings: %{snippet|id=clean|file=${project.basedir}/src/main/java/org/apache/maven/lifecycle/providers/CleanLifecycleProvider.java} * <<<site>>> Lifecycle
Plain Text - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Sat Jan 08 14:57:39 GMT 2022 - 2.1K bytes - Viewed (0) -
docs/en/docs/advanced/index.md
# Advanced User Guide ## Additional Features The main [Tutorial - User Guide](../tutorial/index.md){.internal-link target=_blank} should be enough to give you a tour through all the main features of **FastAPI**. In the next sections you will see other options, configurations, and additional features. !!! tip The next sections are **not necessarily "advanced"**. And it's possible that for your use case, the solution is in one of them.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Mar 31 23:52:53 GMT 2024 - 1.8K bytes - Viewed (0) -
docs/de/docs/deployment/server-workers.md
* `main:app`: Das ist die gleiche Syntax, die auch von Uvicorn verwendet wird. `main` bedeutet das Python-Modul mit dem Namen `main`, also eine Datei `main.py`. Und `app` ist der Name der Variable, welche die **FastAPI**-Anwendung ist. * Stellen Sie sich einfach vor, dass `main:app` einer Python-`import`-Anweisung wie der folgenden entspricht: ```Python from main import app ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:19:25 GMT 2024 - 10.1K bytes - Viewed (0) -
docs/zh/docs/deployment/server-workers.md
[19515] [INFO] Application startup complete. ``` </div> 让我们看看每个选项的含义: * `main:app`:这与 Uvicorn 使用的语法相同,`main` 表示名为"`main`"的 Python 模块,因此是文件 `main.py`。 `app` 是 **FastAPI** 应用程序的变量名称。 * 你可以想象 `main:app` 相当于一个 Python `import` 语句,例如: ```Python from main import app ``` * 因此,`main:app` 中的冒号相当于 `from main import app` 中的 Python `import` 部分。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.7K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt
} """ ) withDirectory("v1/src/main").v1() withDirectory("v2/src/main").v2() val sourceRoots = if (File(withDirectory("v2/src/main"), "java").exists()) { "v2/src/main/java" } else { "v2/src/main/kotlin" } withDirectory("binary-compatibility").apply {
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Mon Sep 25 13:49:37 GMT 2023 - 16.4K bytes - Viewed (0) -
docs/de/docs/tutorial/testing.md
``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` Da sich diese Datei im selben Package befindet, können Sie relative Importe verwenden, um das Objekt `app` aus dem `main`-Modul (`main.py`) zu importieren: ```Python hl_lines="3" {!../../../docs_src/app_testing/test_main.py!} ``` ... und haben den Code für die Tests wie zuvor. ## Testen: erweitertes Beispiel
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:20:01 GMT 2024 - 7K bytes - Viewed (0) -
dbflute_fess/dfprop/basicInfoMap.dfprop
# o generateOutputDirectory: (NotRequired - Default Java:'../src/main/java' CSharp:'../source') # The base output directory for generating. # Basically you don't need to specify this if the project style is as follows: # # *Java Project Style # If this value is '../src/main/java' and your project is under the Maven, # you don't need to set up this property! #
Plain Text - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Sat Oct 31 23:35:14 GMT 2015 - 9.2K bytes - Viewed (0) -
docs/extensions/s3zip/README.md
## Code Examples [Using minio-go library](https://github.com/minio/minio/blob/master/docs/extensions/s3zip/examples/minio-go/main.go) [Using AWS JS SDK v2](https://github.com/minio/minio/blob/master/docs/extensions/s3zip/examples/aws-js/main.js) [Using boto3](https://github.com/minio/minio/blob/master/docs/extensions/s3zip/examples/boto3/main.py) ## Requirements and limits
Plain Text - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Apr 10 16:28:27 GMT 2024 - 3K bytes - Viewed (0) -
docs/fr/docs/tutorial/first-steps.md
<span style="color: green;">INFO</span>: Application startup complete. ``` </div> !!! note La commande `uvicorn main:app` fait référence à : * `main` : le fichier `main.py` (le module Python). * `app` : l'objet créé dans `main.py` via la ligne `app = FastAPI()`. * `--reload` : l'option disant à uvicorn de redémarrer le serveur à chaque changement du code. À ne pas utiliser en production !
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Sep 27 20:52:31 GMT 2023 - 10.3K bytes - Viewed (0)