- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 361 for app (0.08 sec)
-
docs/em/docs/tutorial/bigger-applications.md
``` /// * `app` ๐ ๐ ๐. & โซ๏ธ โ๏ธ ๐ ๐ `app/__init__.py`, โซ๏ธ "๐ ๐ฆ" (๐ "๐ ๐น"): `app`. * โซ๏ธ ๐ `app/main.py` ๐. โซ๏ธ ๐ ๐ ๐ฆ (๐ โฎ๏ธ ๐ `__init__.py`), โซ๏ธ "๐น" ๐ ๐ฆ: `app.main`. * ๐ค `app/dependencies.py` ๐, ๐ `app/main.py`, โซ๏ธ "๐น": `app.dependencies`. * ๐ค ๐ `app/routers/` โฎ๏ธ โ1๏ธโฃ ๐ `__init__.py`, โซ๏ธ "๐ ๐ฆ": `app.routers`. * ๐ `app/routers/items.py` ๐ ๐ฆ, `app/routers/`,, โซ๏ธ ๐: `app.routers.items`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.5K bytes - Viewed (0) -
docs/en/docs/tutorial/bigger-applications.md
* There's also an `app/dependencies.py` file, just like `app/main.py`, it is a "module": `app.dependencies`. * There's a subdirectory `app/routers/` with another file `__init__.py`, so it's a "Python subpackage": `app.routers`. * The file `app/routers/items.py` is inside a package, `app/routers/`, so, it's a submodule: `app.routers.items`. * The same with `app/routers/users.py`, it's another submodule: `app.routers.users`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.4K bytes - Viewed (0) -
tests/test_dependency_contextmanager.py
yield state finally: state["context_b"] = f"finished b with a: {state['context_a']}" @app.get("/async") async def get_async(state: str = Depends(asyncgen_state)): return state @app.get("/sync") async def get_sync(state: str = Depends(generator_state)): return state @app.get("/async_raise") async def get_async_raise(state: str = Depends(asyncgen_state_try)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 17 04:13:50 UTC 2024 - 11.6K bytes - Viewed (0) -
docs/em/docs/advanced/behind-a-proxy.md
& โซ๏ธ โ๏ธ ๐ ๐โ ๐ ๐ง-๐ธ. ## ๐ณ โฎ๏ธ ๐ โก ๐ก โ๏ธ ๐ณ โฎ๏ธ ๐ โก ๐ก, ๐ ๐ผ, โ ๐ ๐ ๐ช ๐ฃ โก `/app` ๐ ๐, โ๏ธ โคด๏ธ, ๐ ๐ฎ ๐งฝ ๐ ๐ (๐ณ) ๐ ๐ ๐ฎ ๐ **FastAPI** ๐ธ ๐ฝ โก ๐ `/api/v1`. ๐ ๐ผ, โฎ๏ธ โก `/app` ๐ ๐ค ๐ฆ `/api/v1/app`. โ๏ธ ๐ ๐ ๐ โ ๐ค ๐ค `/app`. & ๐ณ ๐ **"โ"** **โก ๐ก** ๐ โ โญ ๐ถ ๐จ Uvicorn, ๐ง ๐ ๐ธ ๐ค ๐ โซ๏ธ ๐ฆ `/app`, ๐ ๐ ๐ซ โ๏ธ โน ๐ ๐ ๐ ๐ ๐ก `/api/v1`. ๐ ๐ฅ, ๐ ๐ ๐ท ๐.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.1K bytes - Viewed (0) -
docs/pt/docs/advanced/behind-a-proxy.md
prefixes = ["/api/v1"] [http.routers] [http.routers.app-http] entryPoints = ["http"] service = "app" rule = "PathPrefix(`/api/v1`)" middlewares = ["api-stripprefix"] [http.services] [http.services.app] [http.services.app.loadBalancer] [[http.services.app.loadBalancer.servers]] url = "http://127.0.0.1:8000" ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 15:28:18 UTC 2024 - 12.2K bytes - Viewed (0) -
docs/em/docs/deployment/docker.md
# (2) CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"] ``` 1๏ธโฃ. ๐ `main.py` ๐ `/code` ๐ ๐ (๐ต ๐ `./app` ๐). 2๏ธโฃ. ๐ Uvicorn & ๐ฌ โซ๏ธ ๐ `app` ๐ โช๏ธโก๏ธ `main` (โฉ๏ธ ๐ญ โช๏ธโก๏ธ `app.main`). โคด๏ธ ๐ Uvicorn ๐ โ๏ธ ๐ ๐น `main` โฉ๏ธ `app.main` ๐ FastAPI ๐ `app`. ## ๐ ๏ธ ๐ง โก๏ธ ๐ฌ ๐ ๐ ๐ [๐ ๏ธ ๐ง](concepts.md){.internal-link target=_blank} โ ๐ฆ.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Aug 12 21:47:53 UTC 2024 - 27.9K bytes - Viewed (0) -
tests/test_response_by_alias.py
@app.get("/by-alias/dict", response_model=Model) def by_alias_dict(): return {"alias": "Foo"} @app.get("/by-alias/model", response_model=Model) def by_alias_model(): return Model(alias="Foo") @app.get("/by-alias/list", response_model=List[Model]) def by_alias_list(): return [{"alias": "Foo"}, {"alias": "Bar"}] @app.get("/no-alias/dict", response_model=ModelNoAlias)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 11.1K bytes - Viewed (0) -
docs/ko/docs/tutorial/first-steps.md
์ด๊ฒ์ด "**๊ฒฝ๋ก ์๋ ๋ฐ์ฝ๋ ์ดํฐ**"์ ๋๋ค. /// ๋ค๋ฅธ ์๋๋ ์ฌ์ฉํ ์ ์์ต๋๋ค: * `@app.post()` * `@app.put()` * `@app.delete()` ํํ ์ฌ์ฉ๋์ง ์๋ ๊ฒ๋ค๋ ์์ต๋๋ค: * `@app.options()` * `@app.head()` * `@app.patch()` * `@app.trace()` /// tip | "ํ" ๊ฐ ์๋(HTTP ๋ฉ์๋)์ ์ํ๋ ๋๋ก ์ฌ์ฉํด๋ ๋ฉ๋๋ค. **FastAPI**๋ ํน์ ์๋ฏธ๋ฅผ ๊ฐ์ ํ์ง ์์ต๋๋ค. ์ฌ๊ธฐ์ ์ ๋ณด๋ ์ง์นจ์์ผ๋ฟ ๊ฐ์ ์ฌํญ์ด ์๋๋๋ค.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.4K bytes - Viewed (0) -
docs/zh/docs/tutorial/bigger-applications.md
/// * `app` ็ฎๅฝๅ ๅซไบๆๆๅ ๅฎนใๅนถไธๅฎๆไธไธช็ฉบๆไปถ `app/__init__.py`๏ผๅ ๆญคๅฎๆฏไธไธชใPython ๅ ใ๏ผใPython ๆจกๅใ็้ๅ๏ผ๏ผ`app`ใ * ๅฎๅ ๅซไธไธช `app/main.py` ๆไปถใ็ฑไบๅฎไฝไบไธไธช Python ๅ ๏ผไธไธชๅ ๅซ `__init__.py` ๆไปถ็็ฎๅฝ๏ผไธญ๏ผๅ ๆญคๅฎๆฏ่ฏฅๅ ็ไธไธชใๆจกๅใ๏ผ`app.main`ใ * ่ฟๆไธไธช `app/dependencies.py` ๆไปถ๏ผๅฐฑๅ `app/main.py` ไธๆ ท๏ผๅฎๆฏไธไธชใๆจกๅใ๏ผ`app.dependencies`ใ * ๆไธไธชๅญ็ฎๅฝ `app/routers/` ๅ ๅซๅฆไธไธช `__init__.py` ๆไปถ๏ผๅ ๆญคๅฎๆฏไธไธชใPython ๅญๅ ใ๏ผ`app.routers`ใ * ๆไปถ `app/routers/items.py` ไฝไบ `app/routers/` ๅ ไธญ๏ผๅ ๆญคๅฎๆฏไธไธชๅญๆจกๅ๏ผ`app.routers.items`ใ
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.4K bytes - Viewed (0) -
tests/test_dependency_overrides.py
from fastapi.testclient import TestClient app = FastAPI() router = APIRouter() async def common_parameters(q: str, skip: int = 0, limit: int = 100): return {"q": q, "skip": skip, "limit": limit} @app.get("/main-depends/") async def main_depends(commons: dict = Depends(common_parameters)): return {"in": "main-depends", "params": commons}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 15.4K bytes - Viewed (0)