- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 35 for computed (0.18 sec)
-
tests/test_modules_same_name_body/app/b.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 161 bytes - Viewed (0) -
tests/test_dependency_contextmanager.py
state["/async"] = "asyncgen started" yield state["/async"] state["/async"] = "asyncgen completed" def generator_state(state: Dict[str, str] = Depends(get_state)): state["/sync"] = "generator started" yield state["/sync"] state["/sync"] = "generator completed" async def asyncgen_state_try(state: Dict[str, str] = Depends(get_state)):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Feb 24 23:06:37 GMT 2024 - 11.6K bytes - Viewed (0) -
docs/en/docs/tutorial/security/simple-oauth2.md
``` `OAuth2PasswordRequestForm` is a class dependency that declares a form body with: * The `username`. * The `password`. * An optional `scope` field as a big string, composed of strings separated by spaces. * An optional `grant_type`. !!! tip The OAuth2 spec actually *requires* a field `grant_type` with a fixed value of `password`, but `OAuth2PasswordRequestForm` doesn't enforce it.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 12.5K bytes - Viewed (0) -
tests/test_modules_same_name_body/test_main.py
}, "summary": "Compute", "operationId": "compute_a_compute_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Body_compute_a_compute_post" }
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 5.6K bytes - Viewed (0) -
tests/test_tutorial/test_async_sql_databases/test_tutorial001.py
with TestClient(app) as client: note = {"text": "Foo bar", "completed": False} response = client.post("/notes/", json=note) assert response.status_code == 200, response.text data = response.json() assert data["text"] == note["text"] assert data["completed"] == note["completed"] assert "id" in data response = client.get("/notes/")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Oct 18 12:36:40 GMT 2023 - 6K bytes - Viewed (0) -
docs/zh/docs/advanced/async-sql-databases.md
### 关于 `{**note.dict(), "id": last_record_id}` `note` 是 Pydantic `Note` 对象: `note.dict()` 返回包含如下数据的**字典**: ```Python { "text": "Some note", "completed": False, } ``` 但它不包含 `id` 字段。 因此要新建一个包含 `note.dict()` 键值对的**字典**: ```Python {**note.dict()} ``` `**note.dict()` 直接**解包**键值对, 因此,`{**note.dict()}` 是 `note.dict()` 的副本。
Plain Text - Registered: Sun Mar 31 07:19:09 GMT 2024 - Last Modified: Sat Mar 30 22:44:40 GMT 2024 - 4.3K bytes - Viewed (0) -
docs_src/async_sql_databases/tutorial001.py
sqlalchemy.Column("completed", sqlalchemy.Boolean), ) engine = sqlalchemy.create_engine( DATABASE_URL, connect_args={"check_same_thread": False} ) metadata.create_all(engine) class NoteIn(BaseModel): text: str completed: bool class Note(BaseModel): id: int text: str completed: bool app = FastAPI()
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 1.4K bytes - Viewed (0) -
docs/de/docs/deployment/concepts.md
* Hinter jeder Anwendung, die Sie auf Ihrem Computer ausführen, steckt ein Prozess, jedes laufende Programm, jedes Fenster usw. Und normalerweise laufen viele Prozesse **gleichzeitig**, während ein Computer eingeschaltet ist. * Es können **mehrere Prozesse** desselben **Programms** gleichzeitig ausgeführt werden.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:16:25 GMT 2024 - 20.6K bytes - Viewed (0) -
docs/en/docs/advanced/events.md
You can add more than one event handler function. And your application won't start receiving requests until all the `startup` event handlers have completed. ### `shutdown` event To add a function that should be run when the application is shutting down, declare it with the event `"shutdown"`: ```Python hl_lines="6" {!../../../docs_src/events/tutorial002.py!}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.8K bytes - Viewed (0) -
docs/en/docs/how-to/custom-docs-ui-assets.md
The API docs use **Swagger UI** and **ReDoc**, and each of those need some JavaScript and CSS files. By default, those files are served from a <abbr title="Content Delivery Network: A service, normally composed of several servers, that provides static files, like JavaScript and CSS. It's commonly used to serve those files from the server closer to the client, improving performance.">CDN</abbr>.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Oct 30 09:58:58 GMT 2023 - 7.5K bytes - Viewed (0)