- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 344 for App (0.19 sec)
-
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`.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 18.6K 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`。
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 18.5K bytes - Viewed (0) -
docs/em/docs/advanced/testing-database.md
👈 🛎 🤙 `main.py`, ✋️ ⏸ `main.py` ⚙️ 💽 📁 `sql_app.db`, & 👥 💪 ⚒ 💭 👥 ✍ `test.db` 💯. 👥 🚮 👈 ⏸ 📥, ⏮️ 🆕 📁. ```Python hl_lines="16" {!../../../docs_src/sql_databases/sql_app/tests/test_sql_app.py!} ``` ## 🔗 🔐 🔜 👥 ✍ 🔗 🔐 & 🚮 ⚫️ 🔐 👆 📱. ```Python hl_lines="19-24 27" {!../../../docs_src/sql_databases/sql_app/tests/test_sql_app.py!} ``` !!! tip
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 2.6K bytes - Viewed (0) -
docs/de/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" ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 30 20:30:07 GMT 2024 - 13.1K bytes - Viewed (0) -
docs/em/docs/tutorial/sql-databases.md
💭 👆 🔜 ✔️ 📁 📛 `my_super_project` 👈 🔌 🎧-📁 🤙 `sql_app`. `sql_app` 🔜 ✔️ 📄 📁: * `sql_app/__init__.py`: 🛁 📁. * `sql_app/database.py`: ```Python {!../../../docs_src/sql_databases/sql_app/database.py!} ``` * `sql_app/models.py`: ```Python {!../../../docs_src/sql_databases/sql_app/models.py!} ``` * `sql_app/schemas.py`: === "🐍 3️⃣.6️⃣ & 🔛"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 25.2K bytes - Viewed (1) -
docs/zh/docs/tutorial/first-steps.md
在我们的例子中,这个装饰器告诉 **FastAPI** 位于其下方的函数对应着**路径** `/` 加上 `get` **操作**。 它是一个「**路径操作装饰器**」。 你也可以使用其他的操作: * `@app.post()` * `@app.put()` * `@app.delete()` 以及更少见的: * `@app.options()` * `@app.head()` * `@app.patch()` * `@app.trace()` !!! tip 您可以随意使用任何一个操作(HTTP方法)。 **FastAPI** 没有强制要求操作有任何特定的含义。 此处提供的信息仅作为指导,而不是要求。
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 9.2K bytes - Viewed (0) -
docs/en/docs/advanced/sub-applications.md
``` ### 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!} ``` ### Check the automatic API docs Now, run `uvicorn` with the main app, if your file is `main.py`, it would be: <div class="termy"> ```console
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 2.9K bytes - Viewed (0) -
docs/ko/docs/deployment/docker.md
COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt COPY ./app /code/app CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"] # If running behind a proxy like Nginx or Traefik add --proxy-headers # CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80", "--proxy-headers"] ``` </details> ## 컨테이너란
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 42.6K bytes - Viewed (0) -
docs/pt/docs/deployment.md
RUN pip install fastapi uvicorn EXPOSE 80 COPY ./app /app CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"] ``` ### Crie o código **FastAPI** * Crie um diretório `app` e entre nele. * Crie um arquivo `main.py` com: ```Python from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"}
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Aug 18 16:16:54 GMT 2022 - 16.8K bytes - Viewed (0) -
docs/de/docs/how-to/custom-docs-ui-assets.md
* `openapi_url`: die URL, unter welcher die HTML-Seite für die Dokumentation das OpenAPI-Schema für Ihre API abrufen kann. Sie können hier das Attribut `app.openapi_url` verwenden. * `title`: der Titel Ihrer API. * `oauth2_redirect_url`: Sie können hier `app.swagger_ui_oauth2_redirect_url` verwenden, um die Standardeinstellung zu verwenden.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 30 18:17:36 GMT 2024 - 9.2K bytes - Viewed (0)