- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for CAmount (0.28 sec)
-
docs_src/templates/tutorial001.py
from fastapi import FastAPI, Request from fastapi.responses import HTMLResponse from fastapi.staticfiles import StaticFiles from fastapi.templating import Jinja2Templates app = FastAPI() app.mount("/static", StaticFiles(directory="static"), name="static") templates = Jinja2Templates(directory="templates") @app.get("/items/{id}", response_class=HTMLResponse) async def read_item(request: Request, id: str):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Dec 26 20:12:34 GMT 2023 - 521 bytes - Viewed (0) -
docs/en/docs/benchmarks.md
* So, by using FastAPI you are saving development time, bugs, lines of code, and you would probably get the same performance (or better) you would if you didn't use it (as you would have to implement it all...
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 3.4K bytes - Viewed (0) -
docs/en/docs/tutorial/static-files.md
# Static Files You can serve static files automatically from a directory using `StaticFiles`. ## Use `StaticFiles` * Import `StaticFiles`. * "Mount" a `StaticFiles()` instance in a specific path. ```Python hl_lines="2 6" {!../../../docs_src/static_files/tutorial001.py!} ``` !!! note "Technical Details" You could also use `from starlette.staticfiles import StaticFiles`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 19:56:09 GMT 2024 - 1.6K bytes - Viewed (0) -
docs/en/docs/advanced/sub-applications.md
```Python hl_lines="11 14-16" {!../../../docs_src/sub_applications/tutorial001.py!} ``` ### Mount the sub-application In your top-level application, `app`, mount the sub-application, `subapi`. In this case, it will be mounted at the path `/subapi`: ```Python hl_lines="11 19" {!../../../docs_src/sub_applications/tutorial001.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 2.9K bytes - Viewed (0) -
docs_src/custom_docs_ui/tutorial002.py
from fastapi.openapi.docs import ( get_redoc_html, get_swagger_ui_html, get_swagger_ui_oauth2_redirect_html, ) from fastapi.staticfiles import StaticFiles app = FastAPI(docs_url=None, redoc_url=None) app.mount("/static", StaticFiles(directory="static"), name="static") @app.get("/docs", include_in_schema=False) async def custom_swagger_ui_html(): return get_swagger_ui_html( openapi_url=app.openapi_url,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Aug 19 19:54:04 GMT 2023 - 1.1K bytes - Viewed (0) -
docs/en/layouts/custom.yml
color: *color line: amount: 3 height: 1.25 font: family: *font_family style: Bold # Page description - size: { width: 832, height: 64 } offset: { x: 64, y: 512 } typography: content: *page_description align: start color: *color line: amount: 2 height: 1.5 font:
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Jun 26 14:05:43 GMT 2023 - 6.5K bytes - Viewed (0) -
docs/de/docs/advanced/sub-applications.md
### Technische Details: `root_path` Wenn Sie eine Unteranwendung wie oben beschrieben mounten, kรผmmert sich FastAPI darum, den Mount-Pfad fรผr die Unteranwendung zu kommunizieren, mithilfe eines Mechanismus aus der ASGI-Spezifikation namens `root_path`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:18:06 GMT 2024 - 3.3K bytes - Viewed (0) -
docs/en/docs/features.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 9.3K bytes - Viewed (0) -
docs/em/docs/features.md
### โพ "๐-๐" โ๏ธ ๐ ๐, ๐ โโ ๐ช ๐ซ, ๐ & โ๏ธ ๐ ๐ ๐ช. ๐ ๐ ๏ธ ๐ ๐ โ๏ธ (โฎ๏ธ ๐) ๐ ๐ ๐ช โ "๐-" ๐ ๐ธ 2๏ธโฃ โธ ๐ โ๏ธ ๐ ๐ & โ โ๏ธ ๐ *โก ๐ ๏ธ*. ### ๐ฏ * 1๏ธโฃ0๏ธโฃ0๏ธโฃ ๐ฏ <abbr title="The amount of code that is automatically tested">๐ฏ ๐ฐ</abbr>. * 1๏ธโฃ0๏ธโฃ0๏ธโฃ ๐ฏ <abbr title="Python type annotations, with this your editor and external tools can give you better support">๐ โ</abbr> ๐ ๐งข. * โ๏ธ ๐ญ ๐ธ. ## ๐ โ
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.1K bytes - Viewed (0) -
docs_src/static_files/tutorial001.py
from fastapi import FastAPI from fastapi.staticfiles import StaticFiles app = FastAPI()
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 159 bytes - Viewed (0)