- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for __name__ (0.04 sec)
-
docs/fr/docs/tutorial/debugging.md
## Faites appel à `uvicorn` Dans votre application FastAPI, importez et exécutez directement `uvicorn` : {* ../../docs_src/debugging/tutorial001.py hl[1,15] *} ### À propos de `__name__ == "__main__"` Le but principal de `__name__ == "__main__"` est d'avoir du code qui est exécuté lorsque votre fichier est appelé avec : <div class="termy"> ```console $ python myapp.py ``` </div>Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Oct 27 17:31:14 UTC 2024 - 2.9K bytes - Viewed (0) -
docs/pt/docs/tutorial/debugging.md
## Chamar `uvicorn` { #call-uvicorn } Em sua aplicação FastAPI, importe e execute `uvicorn` diretamente: {* ../../docs_src/debugging/tutorial001_py39.py hl[1,15] *} ### Sobre `__name__ == "__main__"` { #about-name-main } O objetivo principal de `__name__ == "__main__"` é ter algum código que seja executado quando seu arquivo for chamado com: <div class="termy"> ```console $ python myapp.py ``` </div>Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.7K bytes - Viewed (0) -
docs/de/docs/tutorial/debugging.md
## `uvicorn` aufrufen { #call-uvicorn } Importieren und führen Sie `uvicorn` direkt in Ihrer FastAPI-Anwendung aus: {* ../../docs_src/debugging/tutorial001_py39.py hl[1,15] *} ### Über `__name__ == "__main__"` { #about-name-main } Der Hauptzweck von `__name__ == "__main__"` ist, dass Code ausgeführt wird, wenn Ihre Datei mit folgendem Befehl aufgerufen wird: <div class="termy"> ```console $ python myapp.py ``` </div>Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.7K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008.py
c_mock = Mock() with ( patch( f"{module.__name__}.generate_dep_a", return_value=a_mock, create=True, ), patch( f"{module.__name__}.generate_dep_b", return_value=b_mock, create=True, ), patch( f"{module.__name__}.generate_dep_c", return_value=c_mock, create=True,
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 1.4K bytes - Viewed (0) -
docs/en/docs/tutorial/debugging.md
## Call `uvicorn` { #call-uvicorn } In your FastAPI application, import and run `uvicorn` directly: {* ../../docs_src/debugging/tutorial001_py39.py hl[1,15] *} ### About `__name__ == "__main__"` { #about-name-main } The main purpose of the `__name__ == "__main__"` is to have some code that is executed when your file is called with: <div class="termy"> ```console $ python myapp.py ``` </div>Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.4K bytes - Viewed (0) -
docs/zh/docs/tutorial/debugging.md
# 调试 你可以在编辑器中连接调试器,例如使用 Visual Studio Code 或 PyCharm。 ## 调用 `uvicorn` 在你的 FastAPI 应用中直接导入 `uvicorn` 并运行: {* ../../docs_src/debugging/tutorial001.py hl[1,15] *} ### 关于 `__name__ == "__main__"` `__name__ == "__main__"` 的主要目的是使用以下代码调用文件时执行一些代码: <div class="termy"> ```console $ python myapp.py ``` </div> 而当其它文件导入它时并不会被调用,像这样: ```Python from myapp import app ``` #### 更多细节Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.3K bytes - Viewed (0) -
docs/ja/docs/tutorial/debugging.md
# デバッグ Visual Studio CodeやPyCharmなどを使用して、エディター上でデバッガーと連携できます。 ## `uvicorn` の実行 FastAPIアプリケーション上で、`uvicorn` を直接インポートして実行します: {* ../../docs_src/debugging/tutorial001.py hl[1,15] *} ### `__name__ == "__main__"` について `__name__ == "__main__"` の主な目的は、ファイルが次のコマンドで呼び出されたときに実行されるコードを用意することです: <div class="termy"> ```console $ python myapp.py ``` </div> ただし、次のように、別のファイルからインポートされるときには呼び出されません: ```PythonRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3K bytes - Viewed (0) -
docs/sts/web-identity.py
client_secret = 'daaa3008-80f0-40f7-80d7-e15167531ff0' sts_client = boto3.client( 'sts', region_name='us-east-1', use_ssl=False, endpoint_url='http://localhost:9000', ) app = Flask(__name__) @app.route('/') def homepage(): text = '<a href="%s">Authenticate with keycloak</a>' return text % make_authorization_url() def make_authorization_url():
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Jul 28 01:37:51 UTC 2021 - 2.9K bytes - Viewed (0) -
docs/uk/docs/tutorial/debugging.md
## Виклик `uvicorn` У Вашому FastAPI-додатку імпортуйте та запустіть `uvicorn` безпосередньо: {* ../../docs_src/debugging/tutorial001.py hl[1,15] *} ### Про `__name__ == "__main__"` Головна мета використання `__name__ == "__main__"` — це забезпечення виконання певного коду тільки тоді, коли файл запускається безпосередньо: <div class="termy"> ```console $ python myapp.py ``` </div>Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Feb 28 14:24:45 UTC 2025 - 3.6K bytes - Viewed (0) -
docs/ru/docs/tutorial/debugging.md
## Вызов `uvicorn` { #call-uvicorn } В вашем FastAPI приложении, импортируйте и вызовите `uvicorn` напрямую: {* ../../docs_src/debugging/tutorial001_py39.py hl[1,15] *} ### Описание `__name__ == "__main__"` { #about-name-main } Главная цель использования `__name__ == "__main__"` в том, чтобы код выполнялся при запуске файла с помощью: <div class="termy"> ```console $ python myapp.py ``` </div>Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3.9K bytes - Viewed (0)