MCPcopy Create free account

hub / github.com/PacktPublishing/Building-Data-Science-Applications-with-FastAPI / functions

Functions574 in github.com/PacktPublishing/Building-Data-Science-Applications-with-FastAPI

Functioncreate_post
(post: PostCreate)
chapter6/tortoise_relationship/app.py:52
Functioncreate_post
( post: PostCreate, database: AsyncIOMotorDatabase = Depends(get_database) )
chapter6/mongodb_relationship/app.py:71
Functioncreate_post
(post: PostCreate)
chapter10/project/app/app.py:46
Functioncreate_post
(post: Post)
chapter3/chapter3_response_path_parameters_01.py:13
Functioncreate_token
( form_data: OAuth2PasswordRequestForm = Depends(OAuth2PasswordRequestForm), )
chapter7/authentication/app.py:51
Functioncreate_user
(name: str = Body(...), age: int = Body(...))
chapter3/chapter3_request_body_01.py:7
Functioncreate_user
(user: User, company: Company)
chapter3/chapter3_request_body_03.py:18
Functioncreate_user
(user: User, priority: int = Body(..., ge=1, le=3))
chapter3/chapter3_request_body_04.py:14
Functioncreate_user
(name: str = Form(...), age: int = Form(...))
chapter3/chapter3_form_data_01.py:7
Functioncreate_user
(user: User)
chapter3/chapter3_request_body_02.py:14
Functioncsrf
()
chapter7/csrf/app.py:55
Functioncustom_cookie
(response: Response)
chapter3/chapter3_response_parameter_02.py:7
Functioncustom_header
(response: Response)
chapter3/chapter3_response_parameter_01.py:7
Functiondelete
(post: Post = Depends(get_post_or_404))
chapter5/chapter5_function_dependency_03.py:53
Functiondelete
(id: int)
chapter3_project/routers/posts.py:41
Functiondelete
(id: int)
chapter3_project/routers/users.py:33
Functiondelete_cache
()
chapter13/chapter13_caching.py:61
Functiondelete_post
( post: PostDB = Depends(get_post_or_404), database: Database = Depends(get_database) )
chapter6/sqlalchemy/app.py:99
Functiondelete_post
( post: PostDB = Depends(get_post_or_404), database: AsyncIOMotorDatabase = Depends(get_database), )
chapter6/mongodb/app.py:97
Functiondelete_post
(post: PostTortoise = Depends(get_post_or_404))
chapter6/tortoise/app.py:61
Functiondelete_post
( post: PostPublic = Depends(get_post_or_404), database: Database = Depends(get_database), )
chapter6/sqlalchemy_relationship/app.py:107
Functiondelete_post
(post: PostTortoise = Depends(get_post_or_404))
chapter6/tortoise_relationship/app.py:70
Functiondelete_post
( post: PostDB = Depends(get_post_or_404), database: AsyncIOMotorDatabase = Depends(get_database), )
chapter6/mongodb_relationship/app.py:98
Functiondelete_post
(post: PostTortoise = Depends(get_post_or_404))
chapter10/project/app/app.py:63
Functiondelete_post
(id: int)
chapter3/chapter3_response_path_parameters_02.py:18
Functiondowngrade
()
chapter6/sqlalchemy_relationship/alembic/versions/a12742852e8c_initial_migration.py:41
Functionevent_loop
()
tests/conftest.py:15
Functionevent_loop
()
chapter9/chapter9_websocket_test.py:10
Functionevent_loop
()
chapter9/chapter9_app_post_test.py:13
Functionevent_loop
()
chapter9/chapter9_db_test.py:24
Functionevent_loop
()
chapter9/chapter9_app_external_api_test.py:33
Functionevent_loop
()
chapter9/chapter9_app_test.py:13
Methodexcerpt
(self)
chapter4/chapter4_model_inheritance_03.py:8
Functionexternal_employees
(employees: Dict[str, Any] = Depends(external_api))
chapter9/chapter9_app_external_api.py:25
Methodf
(self)
chapter2/chapter2_classes_objects_07.py:7
Methodf
(self)
chapter2/chapter2_classes_objects_09.py:7
Functionface_detection
(image: UploadFile = File(...))
chapter14/chapter14_api.py:18
Functionface_detection
(websocket: WebSocket)
chapter14/websocket_face_detection/app.py:41
Functionfast
()
chapter13/chapter13_async_not_async.py:9
Methodfetch_comments
(cls, v)
chapter6/tortoise_relationship/models.py:52
Functionfill_db
()
tests/test_chapter3_project.py:12
Functiongenerate_token
()
chapter7/csrf/password.py:16
Functiongenerate_token
()
chapter7/authentication/password.py:16
Functionget
()
chapter7/cors/app_without_cors.py:7
Functionget
()
chapter7/cors/app_with_cors.py:18
Functionget
(post: Post = Depends(get_post_or_404))
chapter5/chapter5_function_dependency_03.py:41
Functionget
(id: int)
chapter3_project/routers/posts.py:17
Functionget
(id: int)
chapter3_project/routers/users.py:17
Functionget_cat
()
chapter3/chapter3_custom_response_04.py:10
Functionget_cookie
(hello: Optional[str] = Cookie(None))
chapter3/chapter3_headers_cookies_03.py:9
Functionget_current_user
( token: str = Depends(APIKeyCookie(name=TOKEN_COOKIE_NAME)), )
chapter7/csrf/app.py:42
Functionget_current_user
( token: str = Depends(OAuth2PasswordBearer(tokenUrl="/token")), )
chapter7/authentication/app.py:22
Functionget_database
()
chapter6/mongodb/app.py:20
Functionget_database
()
chapter6/mongodb_relationship/app.py:21
Functionget_expiration_date
(duration_seconds: int = 86400)
chapter7/csrf/models.py:9
Functionget_expiration_date
(duration_seconds: int = 86400)
chapter7/authentication/models.py:9
Methodget_get_set_parameters
(self, client: httpx.AsyncClient)
tests/test_chapter3.py:251
Methodget_get_set_parameters
(self, client: httpx.AsyncClient)
tests/test_chapter3.py:304
Functionget_header
(user_agent: str = Header(...))
chapter3/chapter3_headers_cookies_02.py:7
Functionget_header
(hello: str = Header(...))
chapter3/chapter3_headers_cookies_01.py:7
Functionget_html
()
chapter3/chapter3_custom_response_01.py:8
Functionget_license_plate
(license: str = Path(..., min_length=9, max_length=9))
chapter3/chapter3_path_parameters_05.py:7
Functionget_license_plate
(license: str = Path(..., regex=r"^\w{2}-\d{3}-\w{2}$"))
chapter3/chapter3_path_parameters_06.py:7
Functionget_me
(user: UserTortoise = Depends(get_current_user))
chapter7/csrf/app.py:95
Functionget_object_id
(id: str)
chapter6/mongodb/app.py:32
Functionget_object_id
(id: str)
chapter6/mongodb_relationship/app.py:33
Functionget_post
(post: PostDB = Depends(get_post_or_404))
chapter6/sqlalchemy/app.py:64
Functionget_post
(post: PostDB = Depends(get_post_or_404))
chapter6/mongodb/app.py:65
Functionget_post
(post: PostTortoise = Depends(get_post_or_404))
chapter6/tortoise/app.py:39
Functionget_post
(post: PostPublic = Depends(get_post_or_404))
chapter6/sqlalchemy_relationship/app.py:72
Functionget_post
(post: PostTortoise = Depends(get_post_or_404))
chapter6/tortoise_relationship/app.py:47
Functionget_post
(post: PostDB = Depends(get_post_or_404))
chapter6/mongodb_relationship/app.py:66
Functionget_post
(post: PostTortoise = Depends(get_post_or_404))
chapter10/project/app/app.py:41
Functionget_post
(id: int)
chapter3/chapter3_response_path_parameters_04.py:24
Functionget_post
(id: int)
chapter3/chapter3_response_path_parameters_03.py:20
Functionget_post_or_404
(id: int)
chapter5/chapter5_function_dependency_03.py:33
Functionget_post_or_404
(id: int)
chapter6/tortoise/app.py:24
Functionget_post_or_404
(id: int)
chapter6/tortoise_relationship/app.py:29
Functionget_post_or_404
(id: int)
chapter10/project/app/app.py:26
Functionget_request_object
(request: Request)
chapter3/chapter3_request_object_01.py:7
Functionget_test_database
()
chapter9/chapter9_db_test.py:19
Functionget_user
(page: int = Query(1, gt=0), size: int = Query(10, le=100))
chapter3/chapter3_query_parameters_03.py:7
Functionget_user
(type: str, id: int)
chapter3/chapter3_path_parameters_02.py:7
Functionget_user
(format: UsersFormat)
chapter3/chapter3_query_parameters_02.py:14
Functionget_user
(page: int = 1, size: int = 10)
chapter3/chapter3_query_parameters_01.py:7
Functionget_user
(id: int)
chapter3/chapter3_path_parameters_01.py:7
Functionget_user
(id: int = Path(..., ge=1))
chapter3/chapter3_path_parameters_04.py:7
Functionget_user
(type: UserType, id: int)
chapter3/chapter3_path_parameters_03.py:14
Functionget_xml
()
chapter3/chapter3_custom_response_05.py:7
Functionheader
(user_agent: str = Header(...))
chapter5/chapter5_what_is_dependency_injection_01.py:7
Functionhello_world
()
chapter9/chapter9_app.py:7
Functionhello_world
()
chapter3/chapter3_first_endpoint_01.py:7
Functioninitial_posts
()
chapter9/chapter9_db_test.py:39
Functioninitialize_database
()
tests/test_chapter6_tortoise.py:19
Functioninitialize_database
()
tests/test_chapter6_sqlalchemy.py:23
Functioninitialize_database
()
tests/test_chapter6_mongodb_relationship.py:38
Functioninitialize_database
()
tests/test_chapter6_sqlalchemy_relationship.py:29
Functioninitialize_database
()
tests/test_chapter6_mongodb.py:30
Functioninitialize_database
()
tests/test_chapter7_csrf.py:24
Functioninitialize_database
()
tests/test_chapter6_tortoise_relationship.py:24
← previousnext →101–200 of 574, ranked by callers