- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 787 for py (0.01 sec)
-
docs/ru/docs/tutorial/debugging.md
В вашем FastAPI приложении, импортируйте и вызовите `uvicorn` напрямую: {* ../../docs_src/debugging/tutorial001.py hl[1,15] *} ### Описание `__name__ == "__main__"` Главная цель использования `__name__ == "__main__"` в том, чтобы код выполнялся при запуске файла с помощью: <div class="termy"> ```console $ python myapp.py ``` </div> но не вызывался, когда другой файл импортирует это, например: ```PythonRegistered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3.8K bytes - Viewed (0) -
docs/zh/docs/advanced/async-tests.md
``` . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` 文件 `main.py` 将包含: {* ../../docs_src/async_tests/main.py *} 文件 `test_main.py` 将包含针对 `main.py` 的测试,现在它可能看起来如下: {* ../../docs_src/async_tests/test_main.py *} ## 运行测试 您可以通过以下方式照常运行测试: <div class="termy"> ```console $ pytest ---> 100%Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Tue Dec 17 21:49:06 UTC 2024 - 3.9K bytes - Viewed (0) -
docs/ru/docs/tutorial/first-steps.md
# Первые шаги Самый простой FastAPI файл может выглядеть так: {* ../../docs_src/first_steps/tutorial001.py *} Скопируйте в файл `main.py`. Запустите сервер в режиме реального времени: <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) <span style="color: green;">INFO</span>: Started reloader process [28720]Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 12.9K bytes - Viewed (0) -
docs/fr/docs/tutorial/query-params-str-validations.md
Pour cela, importez d'abord `Query` depuis `fastapi` : {* ../../docs_src/query_params_str_validations/tutorial002.py hl[3] *} ## Utiliser `Query` comme valeur par défaut Construisez ensuite la valeur par défaut de votre paramètre avec `Query`, en choisissant 50 comme `max_length` : {* ../../docs_src/query_params_str_validations/tutorial002.py hl[9] *}Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 9.5K bytes - Viewed (0) -
docs/en/docs/advanced/settings.md
For example, you could have a file `config.py` with: {* ../../docs_src/settings/app01/config.py *} And then use it in a file `main.py`: {* ../../docs_src/settings/app01/main.py hl[3,11:13] *} /// tip You would also need a file `__init__.py` as you saw in [Bigger Applications - Multiple Files](../tutorial/bigger-applications.md){.internal-link target=_blank}.Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 12.2K bytes - Viewed (0) -
docs/ru/docs/advanced/async-tests.md
``` . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` Файл `main.py`: {* ../../docs_src/async_tests/main.py *} Файл `test_main.py` содержит тесты для `main.py`, теперь он может выглядеть так: {* ../../docs_src/async_tests/test_main.py *} ## Запуск тестов Вы можете запустить свои тесты как обычно: <div class="termy">Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Jan 27 15:36:13 UTC 2025 - 6.2K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params-str-validations.md
## Add regular expressions { #add-regular-expressions } You can define a <abbr title="A regular expression, regex or regexp is a sequence of characters that define a search pattern for strings.">regular expression</abbr> `pattern` that the parameter should match: {* ../../docs_src/query_params_str_validations/tutorial004_an_py310.py hl[11] *}Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 17.2K bytes - Viewed (0) -
docs/pt/docs/tutorial/sql-databases.md
{* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[48:55] hl[51:52,54] *} ### Ler um Único Hero Podemos **ler** um único `Hero`. {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[58:63] hl[60] *} ### Deletar um Hero Também podemos **deletar** um `Hero`. {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[66:73] hl[71] *} ### Executar o AppRegistered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Oct 27 15:25:29 UTC 2024 - 15.8K bytes - Viewed (0) -
docs/nl/docs/python-types.md
```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial009_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="1 4" {!> ../../docs_src/python_types/tutorial009.py!} ``` //// //// tab | Python 3.8+ alternative ```Python hl_lines="1 4" {!> ../../docs_src/python_types/tutorial009b.py!} ``` //// #### Gebruik van `Union` of `Optional`Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 18.1K bytes - Viewed (0) -
docs/pt/docs/advanced/settings.md
Por exemplo, você pode adicionar um arquivo `config.py` com: {* ../../docs_src/settings/app01/config.py *} E utilizar essa configuração em `main.py`: {* ../../docs_src/settings/app01/main.py hl[3,11:13] *} /// tip | DicaRegistered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Wed Jan 15 20:17:23 UTC 2025 - 15.8K bytes - Viewed (0)