Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Building-Data-Science-Applications-with-FastAPI
/ functions
Functions
574 in github.com/PacktPublishing/Building-Data-Science-Applications-with-FastAPI
⨍
Functions
574
◇
Types & classes
260
↳
Endpoints
143
Function
create_post
(post: PostCreate)
chapter6/tortoise_relationship/app.py:52
Function
create_post
( post: PostCreate, database: AsyncIOMotorDatabase = Depends(get_database) )
chapter6/mongodb_relationship/app.py:71
Function
create_post
(post: PostCreate)
chapter10/project/app/app.py:46
Function
create_post
(post: Post)
chapter3/chapter3_response_path_parameters_01.py:13
Function
create_token
( form_data: OAuth2PasswordRequestForm = Depends(OAuth2PasswordRequestForm), )
chapter7/authentication/app.py:51
Function
create_user
(name: str = Body(...), age: int = Body(...))
chapter3/chapter3_request_body_01.py:7
Function
create_user
(user: User, company: Company)
chapter3/chapter3_request_body_03.py:18
Function
create_user
(user: User, priority: int = Body(..., ge=1, le=3))
chapter3/chapter3_request_body_04.py:14
Function
create_user
(name: str = Form(...), age: int = Form(...))
chapter3/chapter3_form_data_01.py:7
Function
create_user
(user: User)
chapter3/chapter3_request_body_02.py:14
Function
csrf
()
chapter7/csrf/app.py:55
Function
custom_cookie
(response: Response)
chapter3/chapter3_response_parameter_02.py:7
Function
custom_header
(response: Response)
chapter3/chapter3_response_parameter_01.py:7
Function
delete
(post: Post = Depends(get_post_or_404))
chapter5/chapter5_function_dependency_03.py:53
Function
delete
(id: int)
chapter3_project/routers/posts.py:41
Function
delete
(id: int)
chapter3_project/routers/users.py:33
Function
delete_cache
()
chapter13/chapter13_caching.py:61
Function
delete_post
( post: PostDB = Depends(get_post_or_404), database: Database = Depends(get_database) )
chapter6/sqlalchemy/app.py:99
Function
delete_post
( post: PostDB = Depends(get_post_or_404), database: AsyncIOMotorDatabase = Depends(get_database), )
chapter6/mongodb/app.py:97
Function
delete_post
(post: PostTortoise = Depends(get_post_or_404))
chapter6/tortoise/app.py:61
Function
delete_post
( post: PostPublic = Depends(get_post_or_404), database: Database = Depends(get_database), )
chapter6/sqlalchemy_relationship/app.py:107
Function
delete_post
(post: PostTortoise = Depends(get_post_or_404))
chapter6/tortoise_relationship/app.py:70
Function
delete_post
( post: PostDB = Depends(get_post_or_404), database: AsyncIOMotorDatabase = Depends(get_database), )
chapter6/mongodb_relationship/app.py:98
Function
delete_post
(post: PostTortoise = Depends(get_post_or_404))
chapter10/project/app/app.py:63
Function
delete_post
(id: int)
chapter3/chapter3_response_path_parameters_02.py:18
Function
downgrade
()
chapter6/sqlalchemy_relationship/alembic/versions/a12742852e8c_initial_migration.py:41
Function
event_loop
()
tests/conftest.py:15
Function
event_loop
()
chapter9/chapter9_websocket_test.py:10
Function
event_loop
()
chapter9/chapter9_app_post_test.py:13
Function
event_loop
()
chapter9/chapter9_db_test.py:24
Function
event_loop
()
chapter9/chapter9_app_external_api_test.py:33
Function
event_loop
()
chapter9/chapter9_app_test.py:13
Method
excerpt
(self)
chapter4/chapter4_model_inheritance_03.py:8
Function
external_employees
(employees: Dict[str, Any] = Depends(external_api))
chapter9/chapter9_app_external_api.py:25
Method
f
(self)
chapter2/chapter2_classes_objects_07.py:7
Method
f
(self)
chapter2/chapter2_classes_objects_09.py:7
Function
face_detection
(image: UploadFile = File(...))
chapter14/chapter14_api.py:18
Function
face_detection
(websocket: WebSocket)
chapter14/websocket_face_detection/app.py:41
Function
fast
()
chapter13/chapter13_async_not_async.py:9
Method
fetch_comments
(cls, v)
chapter6/tortoise_relationship/models.py:52
Function
fill_db
()
tests/test_chapter3_project.py:12
Function
generate_token
()
chapter7/csrf/password.py:16
Function
generate_token
()
chapter7/authentication/password.py:16
Function
get
()
chapter7/cors/app_without_cors.py:7
Function
get
()
chapter7/cors/app_with_cors.py:18
Function
get
(post: Post = Depends(get_post_or_404))
chapter5/chapter5_function_dependency_03.py:41
Function
get
(id: int)
chapter3_project/routers/posts.py:17
Function
get
(id: int)
chapter3_project/routers/users.py:17
Function
get_cat
()
chapter3/chapter3_custom_response_04.py:10
Function
get_cookie
(hello: Optional[str] = Cookie(None))
chapter3/chapter3_headers_cookies_03.py:9
Function
get_current_user
( token: str = Depends(APIKeyCookie(name=TOKEN_COOKIE_NAME)), )
chapter7/csrf/app.py:42
Function
get_current_user
( token: str = Depends(OAuth2PasswordBearer(tokenUrl="/token")), )
chapter7/authentication/app.py:22
Function
get_database
()
chapter6/mongodb/app.py:20
Function
get_database
()
chapter6/mongodb_relationship/app.py:21
Function
get_expiration_date
(duration_seconds: int = 86400)
chapter7/csrf/models.py:9
Function
get_expiration_date
(duration_seconds: int = 86400)
chapter7/authentication/models.py:9
Method
get_get_set_parameters
(self, client: httpx.AsyncClient)
tests/test_chapter3.py:251
Method
get_get_set_parameters
(self, client: httpx.AsyncClient)
tests/test_chapter3.py:304
Function
get_header
(user_agent: str = Header(...))
chapter3/chapter3_headers_cookies_02.py:7
Function
get_header
(hello: str = Header(...))
chapter3/chapter3_headers_cookies_01.py:7
Function
get_html
()
chapter3/chapter3_custom_response_01.py:8
Function
get_license_plate
(license: str = Path(..., min_length=9, max_length=9))
chapter3/chapter3_path_parameters_05.py:7
Function
get_license_plate
(license: str = Path(..., regex=r"^\w{2}-\d{3}-\w{2}$"))
chapter3/chapter3_path_parameters_06.py:7
Function
get_me
(user: UserTortoise = Depends(get_current_user))
chapter7/csrf/app.py:95
Function
get_object_id
(id: str)
chapter6/mongodb/app.py:32
Function
get_object_id
(id: str)
chapter6/mongodb_relationship/app.py:33
Function
get_post
(post: PostDB = Depends(get_post_or_404))
chapter6/sqlalchemy/app.py:64
Function
get_post
(post: PostDB = Depends(get_post_or_404))
chapter6/mongodb/app.py:65
Function
get_post
(post: PostTortoise = Depends(get_post_or_404))
chapter6/tortoise/app.py:39
Function
get_post
(post: PostPublic = Depends(get_post_or_404))
chapter6/sqlalchemy_relationship/app.py:72
Function
get_post
(post: PostTortoise = Depends(get_post_or_404))
chapter6/tortoise_relationship/app.py:47
Function
get_post
(post: PostDB = Depends(get_post_or_404))
chapter6/mongodb_relationship/app.py:66
Function
get_post
(post: PostTortoise = Depends(get_post_or_404))
chapter10/project/app/app.py:41
Function
get_post
(id: int)
chapter3/chapter3_response_path_parameters_04.py:24
Function
get_post
(id: int)
chapter3/chapter3_response_path_parameters_03.py:20
Function
get_post_or_404
(id: int)
chapter5/chapter5_function_dependency_03.py:33
Function
get_post_or_404
(id: int)
chapter6/tortoise/app.py:24
Function
get_post_or_404
(id: int)
chapter6/tortoise_relationship/app.py:29
Function
get_post_or_404
(id: int)
chapter10/project/app/app.py:26
Function
get_request_object
(request: Request)
chapter3/chapter3_request_object_01.py:7
Function
get_test_database
()
chapter9/chapter9_db_test.py:19
Function
get_user
(page: int = Query(1, gt=0), size: int = Query(10, le=100))
chapter3/chapter3_query_parameters_03.py:7
Function
get_user
(type: str, id: int)
chapter3/chapter3_path_parameters_02.py:7
Function
get_user
(format: UsersFormat)
chapter3/chapter3_query_parameters_02.py:14
Function
get_user
(page: int = 1, size: int = 10)
chapter3/chapter3_query_parameters_01.py:7
Function
get_user
(id: int)
chapter3/chapter3_path_parameters_01.py:7
Function
get_user
(id: int = Path(..., ge=1))
chapter3/chapter3_path_parameters_04.py:7
Function
get_user
(type: UserType, id: int)
chapter3/chapter3_path_parameters_03.py:14
Function
get_xml
()
chapter3/chapter3_custom_response_05.py:7
Function
header
(user_agent: str = Header(...))
chapter5/chapter5_what_is_dependency_injection_01.py:7
Function
hello_world
()
chapter9/chapter9_app.py:7
Function
hello_world
()
chapter3/chapter3_first_endpoint_01.py:7
Function
initial_posts
()
chapter9/chapter9_db_test.py:39
Function
initialize_database
()
tests/test_chapter6_tortoise.py:19
Function
initialize_database
()
tests/test_chapter6_sqlalchemy.py:23
Function
initialize_database
()
tests/test_chapter6_mongodb_relationship.py:38
Function
initialize_database
()
tests/test_chapter6_sqlalchemy_relationship.py:29
Function
initialize_database
()
tests/test_chapter6_mongodb.py:30
Function
initialize_database
()
tests/test_chapter7_csrf.py:24
Function
initialize_database
()
tests/test_chapter6_tortoise_relationship.py:24
← previous
next →
101–200 of 574, ranked by callers