- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 57 for greeting (0.16 sec)
-
docs_src/bigger_applications/app_an_py39/internal/admin.py
from fastapi import APIRouter router = APIRouter() @router.post("/") async def update_admin():
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 147 bytes - Viewed (0) -
docs_src/bigger_applications/app_an/internal/admin.py
from fastapi import APIRouter router = APIRouter() @router.post("/") async def update_admin():
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 147 bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_testing_databases_py39.py
tmp_path = tmp_path_factory.mktemp("data") cwd = os.getcwd() os.chdir(tmp_path) test_db = Path("./test.db") if test_db.is_file(): # pragma: nocover test_db.unlink() # Import while creating the client to create the DB after starting the test session from docs_src.sql_databases.sql_app_py39.tests import test_sql_app # Ensure import side effects are re-executed importlib.reload(test_sql_app)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 822 bytes - Viewed (0) -
docs/en/docs/advanced/settings.md
### Settings and testing Then it would be very easy to provide a different settings object during testing by creating a dependency override for `get_settings`: ```Python hl_lines="9-10 13 21" {!../../../docs_src/settings/app02/test_main.py!} ``` In the dependency override we set a new value for the `admin_email` when creating the new `Settings` object, and then we return that new object. Then we can test that it is used.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 15.7K bytes - Viewed (0) -
docs/en/docs/how-to/custom-docs-ui-assets.md
### Disable the automatic docs The first step is to disable the automatic docs, as by default, those use the default CDN. To disable them, set their URLs to `None` when creating your `FastAPI` app: ```Python hl_lines="8" {!../../../docs_src/custom_docs_ui/tutorial001.py!} ``` ### Include the custom docs Now you can create the *path operations* for the custom docs.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon Oct 30 09:58:58 GMT 2023 - 7.5K bytes - Viewed (0) -
docs/en/docs/how-to/configure-swagger-ui.md
To configure them, pass the `swagger_ui_parameters` argument when creating the `FastAPI()` app object or to the `get_swagger_ui_html()` function. `swagger_ui_parameters` receives a dictionary with the configurations passed to Swagger UI directly.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 2.8K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
Create an `ItemBase` and `UserBase` Pydantic *models* (or let's say "schemas") to have common attributes while creating or reading data. And create an `ItemCreate` and `UserCreate` that inherit from them (so they will have the same attributes), plus any additional data (attributes) needed for creation. So, the user will also have a `password` when creating it.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 29.6K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
## A database dependency with `yield` For example, you could use this to create a database session and close it after finishing. Only the code prior to and including the `yield` statement is executed before creating a response: ```Python hl_lines="2-4" {!../../../docs_src/dependencies/tutorial007.py!} ``` The yielded value is what is injected into *path operations* and other dependencies: ```Python hl_lines="4"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Feb 24 23:06:37 GMT 2024 - 14.1K bytes - Viewed (0) -
docs/zh/docs/deployment/deta.md
deta [command] Available Commands: auth Change auth settings for a deta micro ... ``` </div> !!! tip "提示" 安装 CLI 遇到问题时,请参阅 <a href="https://docs.deta.sh/docs/micros/getting_started?ref=fastapi" class="external-link" target="_blank">Deta 官档</a>。 ## 使用 CLI 登录 现在,使用 CLI 登录 Deta: <div class="termy"> ```console $ deta login
Plain Text - Registered: Sun Mar 31 07:19:09 GMT 2024 - Last Modified: Sun Jan 28 18:06:55 GMT 2024 - 5.1K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py39.py
tmp_path = tmp_path_factory.mktemp("data") cwd = os.getcwd() os.chdir(tmp_path) test_db = Path("./sql_app.db") if test_db.is_file(): # pragma: nocover test_db.unlink() # Import while creating the client to create the DB after starting the test session from docs_src.sql_databases.sql_app_py39 import alt_main # Ensure import side effects are re-executed importlib.reload(alt_main)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.5K bytes - Viewed (0)