- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 1,050 for statRps (0.06 sec)
-
docs_src/additional_status_codes/tutorial001_an.py
from typing import Union from fastapi import Body, FastAPI, status from fastapi.responses import JSONResponse from typing_extensions import Annotated app = FastAPI() items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}} @app.put("/items/{item_id}") async def upsert_item( item_id: str, name: Annotated[Union[str, None], Body()] = None, size: Annotated[Union[int, None], Body()] = None, ):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 734 bytes - Viewed (0) -
docs_src/security/tutorial007.py
import secrets from fastapi import Depends, FastAPI, HTTPException, status from fastapi.security import HTTPBasic, HTTPBasicCredentials app = FastAPI() security = HTTPBasic() def get_current_username(credentials: HTTPBasicCredentials = Depends(security)): current_username_bytes = credentials.username.encode("utf8") correct_username_bytes = b"stanleyjobson" is_correct_username = secrets.compare_digest(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Jan 11 14:33:05 UTC 2024 - 1.1K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005.py
access_token = get_access_token() response = client.get( "/status/", headers={"Authorization": f"Bearer {access_token}"} ) assert response.status_code == 200, response.text assert response.json() == {"status": "ok"} def test_read_system_status_no_token(): response = client.get("/status/") assert response.status_code == 401, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 15.4K bytes - Viewed (0) -
docs/ko/docs/tutorial/path-operation-configuration.md
`404`와 같은 `int`형 코드를 직접 전달할수 있습니다. 하지만 각 코드의 의미를 모른다면, `status`에 있는 단축 상수들을 사용할수 있습니다: ```Python hl_lines="3 17" {!../../docs_src/path_operation_configuration/tutorial001.py!} ``` 각 상태 코드들은 응답에 사용되며, OpenAPI 스키마에 추가됩니다. /// note | "기술적 세부사항" 다음과 같이 임포트하셔도 좋습니다. `from starlette import status`. **FastAPI**는 개발자 여러분의 편의를 위해서 `starlette.status`와 동일한 `fastapi.status`를 제공합니다. 하지만 Starlette에서 직접 온 것입니다. /// ## 태그
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/StatsAccumulatorTest.java
/** * Tests for {@link StatsAccumulator}. This tests the stats methods for instances built with {@link * StatsAccumulator#add} and {@link StatsAccumulator#addAll}, and various error cases of the {@link * StatsAccumulator#add} and {@link StatsAccumulator#addAll} methods. For tests of the {@link * StatsAccumulator#snapshot} method which returns {@link Stats} instances, see {@link StatsTest}. * * @author Pete Gillin */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 36.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/documents/ApiAdminDocumentsAction.java
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Jul 25 01:48:41 UTC 2024 - 7.5K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an_py39.py
response = client.get( "/status/", headers={"Authorization": f"Bearer {access_token}"} ) assert response.status_code == 200, response.text assert response.json() == {"status": "ok"} @needs_py39 def test_read_system_status_no_token(client: TestClient): response = client.get("/status/") assert response.status_code == 401, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
tensorflow/c/c_api_macros_internal.h
==============================================================================*/ #ifndef TENSORFLOW_C_C_API_MACROS_INTERNAL_H_ #define TENSORFLOW_C_C_API_MACROS_INTERNAL_H_ #ifdef __cplusplus #include "tensorflow/core/platform/status.h" // Macro to verify that the field `struct_size` of STRUCT_OBJ is initialized. // `struct_size` is used for struct member compatibility check between core TF // and plug-ins with the same C API minor version. More info here:
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Mar 13 17:40:56 UTC 2023 - 2.5K bytes - Viewed (0) -
tensorflow/c/eager/custom_device_testutil.h
bool* executed_flag, TF_Status* status); void AllocateLoggingDevice(const char* name, bool* arrived_flag, bool* executed_flag, TFE_CustomDevice** device, void** device_info); TFE_TensorHandle* UnpackTensorHandle(TFE_TensorHandle* logged_tensor_handle, TF_Status* status);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 27 23:39:24 UTC 2020 - 1.6K bytes - Viewed (0) -
helm/minio/templates/_helper_create_user.txt
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Dec 12 23:43:32 UTC 2023 - 3.2K bytes - Viewed (0)