- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 205 for importDir (0.05 sec)
-
docs/es/docs/tutorial/debugging.md
Así que, la sección: ```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` se ejecutará. --- Esto no ocurrirá si importas ese módulo (archivo). Entonces, si tienes otro archivo `importer.py` con: ```Python from myapp import app # Algún código adicional ``` en ese caso, la variable creada automáticamente dentro de `myapp.py` no tendrá la variable `__name__` con un valor de `"__main__"`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.6K bytes - Viewed (0) -
docs/ko/docs/tutorial/debugging.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.7K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005.py
import importlib from types import ModuleType import pytest from fastapi.testclient import TestClient from inline_snapshot import snapshot from ...utils import needs_py310 @pytest.fixture( name="mod", params=[ pytest.param("tutorial005_py39"), pytest.param("tutorial005_py310", marks=needs_py310), pytest.param("tutorial005_an_py39"), pytest.param("tutorial005_an_py310", marks=needs_py310),
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 15.8K bytes - Viewed (0) -
docs/es/docs/tutorial/body-fields.md
## Importar `Field` { #import-field } Primero, tienes que importarlo: {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[4] *} /// warning | AdvertenciaRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 2.6K bytes - Viewed (0) -
docs/en/docs/tutorial/debugging.md
So, the section: ```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` will run. --- This won't happen if you import that module (file). So, if you have another file `importer.py` with: ```Python from myapp import app # Some more code ``` in that case, the automatically created variable `__name__` inside of `myapp.py` will not have the value `"__main__"`. So, the line: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/pt/docs/tutorial/background-tasks.md
Ela é importada/incluída diretamente no FastAPI para que você possa importá-la de `fastapi` e evitar importar acidentalmente a alternativa `BackgroundTask` (sem o `s` no final) de `starlette.background`.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 5.2K bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main.py
import importlib import pytest from fastapi.testclient import TestClient @pytest.fixture( name="client", params=[ "app_py39.main", "app_an_py39.main", ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.bigger_applications.{request.param}") client = TestClient(mod.app) return client def test_users_token_jessica(client: TestClient):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 21.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/debugging.md
</div> 那么文件中由 Python 自动创建的内部变量 `__name__`,会将字符串 `"__main__"` 作为值。 所以,下面这部分代码才会运行: ```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` --- 如果你是导入这个模块(文件)就不会这样。 因此,如果你的另一个文件 `importer.py` 像这样: ```Python from myapp import app # Some more code ``` 在这种情况下,`myapp.py` 内部的自动变量不会有值为 `"__main__"` 的变量 `__name__`。 所以,下面这一行不会被执行: ```Python
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/fr/docs/tutorial/debugging.md
```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` va s'exécuter. --- Cela ne se produira pas si vous importez ce module (fichier). Par exemple, si vous avez un autre fichier `importer.py` qui contient : ```Python from myapp import app # Code supplémentaire ``` dans ce cas, la variable automatique `__name__` à l'intérieur de `myapp.py` n'aura pas la valeur `"__main__"`.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/es/docs/tutorial/testing.md
``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` Debido a que este archivo está en el mismo paquete, puedes usar importaciones relativas para importar el objeto `app` desde el módulo `main` (`main.py`): {* ../../docs_src/app_testing/app_a_py39/test_main.py hl[3] *} ...y tener el código para las pruebas tal como antes.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.5K bytes - Viewed (0)