- Sort Score
- Result 10 results
- Languages All
Results 1841 - 1850 of 1,989 for py$ (0.02 sec)
-
docs/em/docs/advanced/response-change-status-code.md
## βοΈ `Response` π’ π πͺ π£ π’ π `Response` π *β‘ π οΈ π’* (π πͺ πͺ & π). & β€΄οΈ π πͺ β `status_code` π *π* π¨ π. ```Python hl_lines="1 9 12" {!../../docs_src/response_change_status_code/tutorial001.py!} ``` & β€΄οΈ π πͺ π¨ π π π πͺ, π π π ( `dict`, π½ π·, βοΈ). & π₯ π π£ `response_model`, β«οΈ π βοΈ β½ & π π π π¨.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.2K bytes - Viewed (0) -
.github/workflows/test.yml
- run: mkdir coverage - name: Test run: bash scripts/test.sh env: COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }} CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }} - name: Store coverage files uses: actions/upload-artifact@v4 with:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 12:27:19 UTC 2024 - 4.2K bytes - Viewed (0) -
docs/en/docs/tutorial/static-files.md
You can serve static files automatically from a directory using `StaticFiles`. ## Use `StaticFiles` * Import `StaticFiles`. * "Mount" a `StaticFiles()` instance in a specific path. {* ../../docs_src/static_files/tutorial001.py hl[2,6] *} /// note | "Technical Details" You could also use `from starlette.staticfiles import StaticFiles`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 15:45:40 UTC 2024 - 1.6K bytes - Viewed (0) -
docs/de/docs/advanced/testing-events.md
Wenn Sie in Ihren Tests Ihre Event-Handler (`startup` und `shutdown`) ausfΓΌhren wollen, kΓΆnnen Sie den `TestClient` mit einer `with`-Anweisung verwenden: ```Python hl_lines="9-12 20-24" {!../../docs_src/app_testing/tutorial003.py!}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 288 bytes - Viewed (0) -
docs/pt/docs/deployment/docker.md
Eu vou mostrar um exemplo depois usando Poetry em uma seção abaixo. π /// ### Criando o CΓ³digo do **FastAPI** * Crie um diretΓ³rio `app` e entre nele. * Crie um arquivo vazio `__init__.py`. * Crie um arquivo `main.py` com: ```Python from typing import Optional from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Aug 12 21:47:53 UTC 2024 - 37.4K bytes - Viewed (0) -
docs/pt/docs/advanced/testing-events.md
```Python hl_lines="9-12 20-24" {!../../docs_src/app_testing/tutorial003.py!}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 316 bytes - Viewed (0) -
docs/en/docs/index.md
INFO: Waiting for application startup. INFO: Application startup complete. ``` </div> <details markdown="1"> <summary>About the command <code>fastapi dev main.py</code>...</summary> The command `fastapi dev` reads your `main.py` file, detects the **FastAPI** app in it, and starts a server using <a href="https://www.uvicorn.org" class="external-link" target="_blank">Uvicorn</a>.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 20.4K bytes - Viewed (0) -
docs/en/docs/tutorial/encoder.md
You can use `jsonable_encoder` for that. It receives an object, like a Pydantic model, and returns a JSON compatible version: {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *} In this example, it would convert the Pydantic model to a `dict`, and the `datetime` to a `str`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 23:31:16 UTC 2024 - 1.6K bytes - Viewed (0) -
docs/en/docs/advanced/response-change-status-code.md
And then you can set the `status_code` in that *temporal* response object. ```Python hl_lines="1 9 12" {!../../docs_src/response_change_status_code/tutorial001.py!} ``` And then you can return any object you need, as you normally would (a `dict`, a database model, etc). And if you declared a `response_model`, it will still be used to filter and convert the object you returned.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.5K bytes - Viewed (0) -
ci/official/requirements_updater/numpy1_requirements/requirements_lock_3_10.txt
# # This file is autogenerated by pip-compile with Python 3.10 # by the following command: # # bazel run //ci/official/requirements_updater:requirements.update # absl-py==2.1.0 \ --hash=sha256:526a04eadab8b4ee719ce68f204172ead1027549089702d99b9059f129ff1308 \ --hash=sha256:7820790efbb316739cde8b4e19357243fc3608a152024288513dd968d7d959ff # via # keras-nightly # tb-nightly astor==0.7.1 \
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Oct 28 14:33:43 UTC 2024 - 47.2K bytes - Viewed (0)