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
↓ 6 callers
Function
forward_order_status
(order)
chapter2/chapter2_basics_04.py:1
↓ 5 callers
Method
f
(self)
chapter2/chapter2_classes_objects_08.py:2
↓ 4 callers
Method
_handle_csrf
(self, client: httpx.AsyncClient)
tests/test_chapter7_csrf.py:193
↓ 4 callers
Method
greet
(self, name)
chapter2/chapter2_classes_objects_01.py:2
↓ 4 callers
Function
greeting
(name: Optional[str] = None)
chapter2/chapter2_type_hints_05.py:4
↓ 4 callers
Method
predict
Runs a prediction
chapter13/chapter13_caching.py:40
↓ 3 callers
Function
add
(a: int, b: int)
chapter9/chapter9_introduction.py:1
↓ 3 callers
Function
f
(x: Any)
chapter2/chapter2_type_hints_09.py:4
↓ 3 callers
Function
get_password_hash
(password: str)
chapter7/csrf/password.py:8
↓ 3 callers
Function
get_post_or_404
( id: ObjectId = Depends(get_object_id), database: AsyncIOMotorDatabase = Depends(get_database), )
chapter6/mongodb_relationship/app.py:40
↓ 2 callers
Function
addMessage
(message, sender)
chapter8/echo/script.js:1
↓ 2 callers
Function
addMessage
(message, username, sender)
chapter8/broadcast/script.js:1
↓ 2 callers
Function
addMessage
(message, sender)
chapter8/concurrency/script.js:1
↓ 2 callers
Function
addMessage
(message, sender)
chapter8/dependencies/script.js:1
↓ 2 callers
Function
euclidean_division
(dividend, divisor)
chapter2/chapter2_basics_03.py:1
↓ 2 callers
Function
f
(x: Any)
chapter2/chapter2_type_hints_10.py:4
↓ 2 callers
Method
f
(self)
chapter2/chapter2_classes_objects_07.py:2
↓ 2 callers
Method
g
(self)
chapter2/chapter2_classes_objects_08.py:7
↓ 2 callers
Function
get_database
()
chapter6/sqlalchemy/database.py:10
↓ 2 callers
Function
get_database
()
chapter6/sqlalchemy_relationship/database.py:10
↓ 2 callers
Function
get_post_or_404
( id: int, database: Database = Depends(get_database) )
chapter6/sqlalchemy/app.py:37
↓ 2 callers
Function
get_post_or_404
( id: ObjectId = Depends(get_object_id), database: AsyncIOMotorDatabase = Depends(get_database), )
chapter6/mongodb/app.py:39
↓ 2 callers
Function
get_post_or_404
( id: int, database: Database = Depends(get_database) )
chapter6/sqlalchemy_relationship/app.py:41
↓ 2 callers
Method
greet
(self, name=None)
chapter2/chapter2_classes_objects_02.py:5
↓ 2 callers
Function
printer
(name: str, times: int)
chapter2/chapter2_asyncio_03.py:4
↓ 1 callers
Function
authenticate
(email: str, password: str)
chapter7/csrf/authentication.py:14
↓ 1 callers
Function
authenticate
(email: str, password: str)
chapter7/authentication/authentication.py:14
↓ 1 callers
Function
connectWebSocket
(username)
chapter8/broadcast/script.js:15
↓ 1 callers
Function
connectWebSocket
(username)
chapter8/dependencies/script.js:15
↓ 1 callers
Function
create_access_token
(user: UserDB)
chapter7/csrf/authentication.py:26
↓ 1 callers
Function
create_access_token
(user: UserDB)
chapter7/authentication/authentication.py:26
↓ 1 callers
Function
detect
(websocket: WebSocket, queue: asyncio.Queue)
chapter14/websocket_face_detection/app.py:26
↓ 1 callers
Function
drawFaceRectangles
(video, canvas, faces)
chapter14/websocket_face_detection/script.js:3
↓ 1 callers
Function
echo_message
(websocket: WebSocket)
chapter8/concurrency/app.py:10
↓ 1 callers
Function
even_numbers
(max)
chapter2/chapter2_list_comprehensions_06.py:1
↓ 1 callers
Function
even_numbers
(max)
chapter2/chapter2_list_comprehensions_07.py:1
↓ 1 callers
Method
f
(self)
chapter2/chapter2_classes_objects_06.py:2
↓ 1 callers
Method
f
(self)
chapter2/chapter2_classes_objects_09.py:2
↓ 1 callers
Function
filter_list
(l: List[int], condition: ConditionFunction)
chapter2/chapter2_type_hints_08.py:6
↓ 1 callers
Function
get_password_hash
(password: str)
chapter7/authentication/password.py:8
↓ 1 callers
Function
greeting
(name: Union[str, None] = None)
chapter2/chapter2_type_hints_04.py:4
↓ 1 callers
Function
greeting
(name: str)
chapter2/chapter2_type_hints_01.py:1
↓ 1 callers
Method
load_model
Loads the model
chapter13/chapter13_caching.py:32
↓ 1 callers
Method
load_model
Loads the model
chapter13/chapter13_prediction_endpoint.py:22
↓ 1 callers
Function
main
()
chapter2/chapter2_asyncio_03.py:10
↓ 1 callers
Function
main
()
chapter2/chapter2_asyncio_02.py:4
↓ 1 callers
Method
max_age
(self)
chapter7/csrf/models.py:41
↓ 1 callers
Method
name_dict
(self)
chapter4/chapter4_working_pydantic_objects_03.py:29
↓ 1 callers
Function
predict
(model: Pipeline, text: str)
chapter13/chapter13_caching.py:23
↓ 1 callers
Function
receive
(websocket: WebSocket, queue: asyncio.Queue)
chapter14/websocket_face_detection/app.py:18
↓ 1 callers
Function
receive_message
(websocket: WebSocket, username: str)
chapter8/broadcast/app.py:19
↓ 1 callers
Function
retrieve_page
(page)
chapter2/chapter2_basics_05.py:1
↓ 1 callers
Function
run_migrations_offline
Run migrations in 'offline' mode. This configures the context with just a URL and not an Engine, though an Engine is acceptable here as w
chapter6/sqlalchemy_relationship/alembic/env.py:30
↓ 1 callers
Function
run_migrations_online
Run migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context.
chapter6/sqlalchemy_relationship/alembic/env.py:54
↓ 1 callers
Function
send_message
(websocket: WebSocket, username: str)
chapter8/broadcast/app.py:28
↓ 1 callers
Function
send_time
(websocket: WebSocket)
chapter8/concurrency/app.py:15
↓ 1 callers
Function
startFaceDetection
(video, canvas, deviceId)
chapter14/websocket_face_detection/script.js:19
↓ 1 callers
Function
verify_password
(plain_password: str, hashed_password: str)
chapter7/csrf/password.py:12
↓ 1 callers
Function
verify_password
(plain_password: str, hashed_password: str)
chapter7/authentication/password.py:12
Method
__call__
( self, skip: int = Query(0, ge=0), limit: int = Query(10, ge=0), )
chapter5/chapter5_class_dependency_01.py:12
Method
__call__
(self, inc=1)
chapter2/chapter2_classes_objects_05.py:5
Method
__call__
(self)
chapter9/chapter9_app_external_api.py:15
Method
__call__
(self)
chapter9/chapter9_app_external_api_test.py:28
Method
__eq__
(self, other)
chapter2/chapter2_classes_objects_04.py:16
Method
__get_validators__
(cls)
chapter6/mongodb/models.py:10
Method
__get_validators__
(cls)
chapter6/mongodb_relationship/models.py:10
Method
__init__
(self, maximum_limit: int = 100)
chapter5/chapter5_class_dependency_02.py:9
Method
__init__
(self, maximum_limit: int = 100)
chapter5/chapter5_class_dependency_01.py:9
Method
__init__
(self)
chapter2/chapter2_classes_objects_05.py:2
Method
__init__
(self, title: str)
chapter2/chapter2_type_hints_07.py:5
Method
__init__
(self, default_name)
chapter2/chapter2_classes_objects_02.py:2
Method
__init__
(self, value, scale)
chapter2/chapter2_classes_objects_03.py:2
Method
__init__
(self, value, scale)
chapter2/chapter2_classes_objects_04.py:2
Method
__init__
(self)
chapter9/chapter9_app_external_api.py:10
Method
__lt__
(self, other)
chapter2/chapter2_classes_objects_04.py:19
Method
__modify_schema__
(cls, field_schema)
chapter6/mongodb/models.py:20
Method
__modify_schema__
(cls, field_schema)
chapter6/mongodb_relationship/models.py:20
Method
__repr__
(self)
chapter2/chapter2_classes_objects_03.py:6
Method
__repr__
(self)
chapter2/chapter2_classes_objects_04.py:10
Method
__str__
(self)
chapter2/chapter2_type_hints_07.py:8
Method
__str__
(self)
chapter2/chapter2_classes_objects_03.py:9
Method
__str__
(self)
chapter2/chapter2_classes_objects_04.py:13
Function
address
()
chapter9/chapter9_introduction_fixtures_test.py:7
Function
all
()
chapter3_project/routers/posts.py:12
Function
all
()
chapter3_project/routers/users.py:12
Function
api_token
(token: str = Depends(APIKeyHeader(name="Token")))
chapter7/chapter7_api_key_header_dependency.py:9
Function
check_password
(password: str = Body(...), password_confirm: str = Body(...))
chapter3/chapter3_raise_errors_01.py:7
Function
check_password
(password: str = Body(...), password_confirm: str = Body(...))
chapter3/chapter3_raise_errors_02.py:7
Function
client
( request: pytest.FixtureRequest, )
tests/conftest.py:22
Function
create
(post_create: PostCreate)
chapter3_project/routers/posts.py:25
Function
create
(user_create: UserCreate)
chapter3_project/routers/users.py:25
Function
create
(post_create: PostCreate)
chapter4/chapter4_working_pydantic_objects_04.py:36
Function
create_comment
( comment: CommentCreate, database: Database = Depends(get_database) )
chapter6/sqlalchemy_relationship/app.py:116
Function
create_comment
(comment: CommentBase)
chapter6/tortoise_relationship/app.py:75
Function
create_comment
( comment: CommentCreate, post: PostDB = Depends(get_post_or_404), database: AsyncIOMotorDatabase
chapter6/mongodb_relationship/app.py:108
Function
create_person
(person: Person)
chapter9/chapter9_app_post.py:14
Function
create_post
( post: PostCreate, database: Database = Depends(get_database) )
chapter6/sqlalchemy/app.py:69
Function
create_post
( post: PostCreate, database: AsyncIOMotorDatabase = Depends(get_database) )
chapter6/mongodb/app.py:70
Function
create_post
(post: PostCreate)
chapter6/tortoise/app.py:44
Function
create_post
( post: PostCreate, database: Database = Depends(get_database) )
chapter6/sqlalchemy_relationship/app.py:77
next →
1–100 of 574, ranked by callers