- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 208 for url_lines (0.9 sec)
-
docs/ko/docs/tutorial/testing.md
`main.py` 파일 안에 **FastAPI** app 을 만들었습니다: {* ../../docs_src/app_testing/main.py *} ### 테스트 파일 테스트를 위해 `test_main.py` 라는 파일을 생성할 수 있습니다. 이 파일은 동일한 Python 패키지(즉, `__init__.py` 파일이 있는 동일한 디렉터리)에 위치할 수 있습니다. ``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` 파일들이 동일한 패키지에 위치해 있으므로, 상대 참조를 사용하여 `main` 에서 `app` 객체를 임포트 해올 수 있습니다. {* ../../docs_src/app_testing/test_main.py hl[3] *}
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Tue Dec 10 11:24:48 UTC 2024 - 7.6K bytes - Viewed (0) -
docs/pt/docs/environment-variables.md
Você também pode criar variáveis de ambiente **fora** do Python, no terminal (ou com qualquer outro método) e depois **lê-las no Python**. Por exemplo, você poderia ter um arquivo `main.py` com: ```Python hl_lines="3" import os name = os.getenv("MY_NAME", "World") print(f"Hello {name} from Python") ``` /// tip | Dica
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 8.4K bytes - Viewed (0) -
docs/es/docs/tutorial/query-params-str-validations.md
```Python hl_lines="1 3" {!> ../../docs_src/query_params_str_validations/tutorial002_an_py310.py!} ``` //// //// tab | Python 3.8+ En versiones de Python por debajo de 3.9 importas `Annotated` desde `typing_extensions`. Ya estará instalado con FastAPI. ```Python hl_lines="3-4" {!> ../../docs_src/query_params_str_validations/tutorial002_an.py!} ```
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Feb 15 16:23:59 UTC 2025 - 16.5K bytes - Viewed (0) -
docs/es/docs/advanced/path-operation-advanced-configuration.md
<img src="/img/tutorial/path-operation-advanced-configuration/image01.png"> Y si ves el OpenAPI resultante (en `/openapi.json` en tu API), verás tu extensión como parte de la *path operation* específica también: ```JSON hl_lines="22" { "openapi": "3.1.0", "info": { "title": "FastAPI", "version": "0.1.0" }, "paths": { "/items/": { "get": {
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 17:46:44 UTC 2024 - 7.9K bytes - Viewed (0) -
docs/de/docs/advanced/settings.md
Sie können Umgebungsvariablen auch außerhalb von Python im Terminal (oder mit einer anderen Methode) erstellen und diese dann mit Python auslesen. Sie könnten zum Beispiel eine Datei `main.py` haben mit: ```Python hl_lines="3" import os name = os.getenv("MY_NAME", "World") print(f"Hello {name} from Python") ``` /// tip | Tipp
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 16.4K bytes - Viewed (0) -
docs/bn/docs/index.md
``` <details markdown="1"> <summary>অথবা ব্যবহার করুন <code>async def</code>...</summary> যদি আপনার কোড `async` / `await`, ব্যবহার করে তাহলে `async def` ব্যবহার করুন: ```Python hl_lines="9 14" from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") async def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}")
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 30.5K bytes - Viewed (0) -
docs/hu/docs/index.md
return {"item_id": item_id, "q": q} ``` <details markdown="1"> <summary>Vagy használd az <code>async def</code>-et...</summary> Ha a kódod `async` / `await`-et, használ `async def`: ```Python hl_lines="9 14" from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") async def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}")
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 20.2K bytes - Viewed (0) -
docs/em/docs/tutorial/first-steps.md
/// note 📋 `uvicorn main:app` 🔗: * `main`: 📁 `main.py` (🐍 "🕹"). * `app`: 🎚 ✍ 🔘 `main.py` ⏮️ ⏸ `app = FastAPI()`. * `--reload`: ⚒ 💽 ⏏ ⏮️ 📟 🔀. 🕴 ⚙️ 🛠️. /// 🔢, 📤 ⏸ ⏮️ 🕳 💖: ```hl_lines="4" INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) ``` 👈 ⏸ 🎦 📛 🌐❔ 👆 📱 ➖ 🍦, 👆 🇧🇿 🎰. ### ✅ ⚫️
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 7.9K bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
You can also use Pydantic models as subtypes of `list`, `set`, etc.: {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *} This will expect (convert, validate, document, etc.) a JSON body like: ```JSON hl_lines="11" { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2, "tags": [ "rock", "metal", "bar" ], "images": [
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.3K bytes - Viewed (0) -
docs/pt/docs/advanced/path-operation-advanced-configuration.md
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 8.3K bytes - Viewed (0)