- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 195 for some (0.13 sec)
-
tests/test_tutorial/test_path_params/test_tutorial005.py
def test_get_enums_resnet(): response = client.get("/models/resnet") assert response.status_code == 200 assert response.json() == {"model_name": "resnet", "message": "Have some residuals"} def test_get_enums_invalid(): response = client.get("/models/foo") assert response.status_code == 422 assert response.json() == IsDict( { "detail": [
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Sep 28 04:14:40 GMT 2023 - 5K bytes - Viewed (0) -
docs/em/docs/tutorial/debugging.md
```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` ๐ ๐. --- ๐ ๐ ๐ซ ๐จ ๐ฅ ๐ ๐ ๐ ๐น (๐). , ๐ฅ ๐ โ๏ธ โ1๏ธโฃ ๐ `importer.py` โฎ๏ธ: ```Python from myapp import app # Some more code ``` ๐ ๐ผ, ๐ง ๐ข ๐ `myapp.py` ๐ ๐ซ โ๏ธ ๐ข `__name__` โฎ๏ธ ๐ฒ `"__main__"`. , โธ: ```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` ๐ ๐ซ ๐ ๏ธ. !!! info
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 2.1K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial002.py
with pytest.raises(WebSocketDisconnect): with client.websocket_connect("/items/bar/ws?token=some-token") as websocket: message = "Message one" websocket.send_text(message) data = websocket.receive_text() assert data == "Session cookie or query token value is: some-token" data = websocket.receive_text()
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Nov 13 14:26:09 GMT 2022 - 3.6K bytes - Viewed (0) -
docs/de/docs/tutorial/background-tasks.md
* Eine beliebige Folge von Argumenten, die der Reihe nach an die Taskfunktion รผbergeben werden sollen (`email`). * Alle Schlรผsselwort-Argumente, die an die Taskfunktion รผbergeben werden sollen (`message="some notification"`). ## Dependency Injection
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jan 12 14:15:29 GMT 2024 - 6.4K bytes - Viewed (0) -
docs/en/docs/history-design-future.md
# History, Design and Future Some time ago, <a href="https://github.com/tiangolo/fastapi/issues/3#issuecomment-454956920" class="external-link" target="_blank">a **FastAPI** user asked</a>: > Whatโs the history of this project? It seems to have come from nowhere to awesome in a few weeks [...] Here's a little bit of that history. ## Alternatives
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params.md
``` ...this would work: ```JSON { "item_id": "foo-item", "needy": "sooooneedy" } ``` And of course, you can define some parameters as required, some as having a default value, and some entirely optional: === "Python 3.10+" ```Python hl_lines="8" {!> ../../../docs_src/query_params/tutorial006_py310.py!} ``` === "Python 3.8+"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Oct 20 09:08:42 GMT 2023 - 5.1K bytes - Viewed (0) -
docs/en/docs/advanced/security/http-basic-auth.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 14:33:05 GMT 2024 - 5.9K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial002_an_py310.py
with pytest.raises(WebSocketDisconnect): with client.websocket_connect("/items/bar/ws?token=some-token") as websocket: message = "Message one" websocket.send_text(message) data = websocket.receive_text() assert data == "Session cookie or query token value is: some-token" data = websocket.receive_text()
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 3.9K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
```Python hl_lines="17" {!> ../../../docs_src/dependencies/tutorial006.py!} ``` These dependencies will be executed/solved the same way as normal dependencies. But their value (if they return any) won't be passed to your *path operation function*. !!! tip Some editors check for unused function parameters, and show them as errors.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 4.1K bytes - Viewed (0) -
docs/en/docs/tutorial/response-status-code.md
{!../../../docs_src/response_status_code/tutorial002.py!} ``` They are just a convenience, they hold the same number, but that way you can use the editor's autocomplete to find them: <img src="/img/tutorial/response-status-code/image02.png"> !!! note "Technical Details" You could also use `from starlette import status`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Aug 29 14:02:58 GMT 2020 - 4K bytes - Viewed (0)