MCPcopy Create free account

hub / github.com/PacktPublishing/Full-Stack-FastAPI-React-and-MongoDB-2nd-Edition / functions

Functions142 in github.com/PacktPublishing/Full-Stack-FastAPI-React-and-MongoDB-2nd-Edition

↓ 5 callersFunctiongetSession
()
Chapter10/src/actions.js:8
↓ 4 callersFunctionuseAuth
()
Chapter06/frontend/src/AuthContext.jsx:98
↓ 4 callersFunctionuseAuth
()
Chapter08/src/hooks/useAuth.jsx:4
↓ 3 callersFunctionregister
(newUser: RegisterUser = Body(...), response_model=User)
Chapter09/routers/user.py:16
↓ 2 callersFunctionhandleSubmit
(e)
Chapter06/frontend/src/Login.jsx:9
↓ 1 callersFunctionHeader
()
Chapter05/frontend/src/components/Header.jsx:1
↓ 1 callersFunctioncount_users
(users: list[str])
Chapter03/chapter3_01.py:9
↓ 1 callersMethoddecode_token
(self, token)
Chapter07/backend/authentication.py:29
↓ 1 callersMethoddecode_token
Decode a JWT token and return the user ID and username if valid. Args: token (str): The JWT token. Raises:
Chapter06/backend/authentication.py:62
↓ 1 callersMethoddecode_token
(self, token)
Chapter09/authentication.py:29
↓ 1 callersMethodencode_token
(self, user_id, username)
Chapter07/backend/authentication.py:20
↓ 1 callersMethodencode_token
Encode a token for the given user ID and username using JWT with the specified payload and secret key. Args: user_id (in
Chapter06/backend/authentication.py:43
↓ 1 callersMethodencode_token
(self, user_id, username)
Chapter09/authentication.py:20
↓ 1 callersFunctionfetchCarData
(id)
Chapter08/src/utils/fetchCarData.js:1
↓ 1 callersFunctionfetchUsers
()
Chapter06/frontend/src/Users.jsx:10
↓ 1 callersFunctionfetchUsers
()
Chapter05/frontend/src/App3.jsx:7
↓ 1 callersFunctionformat_datetime
(dt: datetime)
Chapter03/chapter3_03.py:4
↓ 1 callersFunctiongenerate_email
()
Chapter09/background.py:59
↓ 1 callersFunctiongenerate_prompt
(brand: str, model: str, year: int)
Chapter09/background.py:17
↓ 1 callersMethodget_password_hash
(self, password)
Chapter07/backend/authentication.py:14
↓ 1 callersMethodget_password_hash
Returns the hashed password using the provided password string. Args: password (str): The password string to be hashed.
Chapter06/backend/authentication.py:18
↓ 1 callersMethodget_password_hash
(self, password)
Chapter09/authentication.py:14
↓ 1 callersFunctioninit_db
()
Chapter09/database.py:10
↓ 1 callersFunctionlogin
(username, password)
Chapter06/frontend/src/AuthContext.jsx:60
↓ 1 callersFunctionlogin
(username, password)
Chapter08/src/contexts/AuthContext.jsx:56
↓ 1 callersFunctionprint_name_x_times
(name: str, times: int)
Chapter03/chapter3_01.py:1
↓ 1 callersFunctionregister
(username, password)
Chapter06/frontend/src/AuthContext.jsx:36
↓ 1 callersFunctionsquare_numbers
(numbers: List[int])
Chapter03/chapter3_02.py:4
↓ 1 callersMethodverify_password
(self, plain_password, hashed_password)
Chapter07/backend/authentication.py:17
↓ 1 callersMethodverify_password
Verify the given plain password matches the hashed password. Args: plain_password (str): The plain text password to veri
Chapter06/backend/authentication.py:30
↓ 1 callersMethodverify_password
(self, plain_password, hashed_password)
Chapter09/authentication.py:17
FunctionApp
()
Chapter06/frontend/src/App.jsx:9
FunctionApp
()
Chapter05/frontend/src/App2.jsx:6
FunctionApp
()
Chapter05/frontend/src/App3.jsx:2
FunctionApp
()
Chapter05/frontend/src/App.jsx:3
FunctionApp
()
Chapter08/src/App.jsx:44
FunctionAuthProvider
({ children })
Chapter06/frontend/src/AuthContext.jsx:6
FunctionAuthProvider
({ children })
Chapter08/src/contexts/AuthContext.jsx:7
FunctionAuthRequired
()
Chapter08/src/components/AuthRequired.jsx:5
FunctionButton
()
Chapter05/frontend/src/components/Button.jsx:1
FunctionCarCard
({ car })
Chapter08/src/components/CarCard.jsx:4
FunctionCarDetails
({ params })
Chapter10/src/app/cars/[id]/page.js:27
FunctionCarForm
()
Chapter08/src/components/CarForm.jsx:27
FunctionCard
({ car: { name, year, model, price } })
Chapter05/frontend/src/components/Card.jsx:1
FunctionCars
()
Chapter10/src/app/cars/page.js:2
FunctionCars
()
Chapter08/src/pages/Cars.jsx:3
FunctionHome
()
Chapter10/src/app/page.js:1
FunctionHome
()
Chapter08/src/pages/Home.jsx:1
FunctionInputField
({ props })
Chapter10/src/components/InputField.js:2
FunctionInputField
({ props })
Chapter08/src/components/InputField.jsx:2
FunctionLogin
()
Chapter06/frontend/src/Login.jsx:4
FunctionLogin
()
Chapter08/src/pages/Login.jsx:2
FunctionLoginForm
()
Chapter10/src/components/LoginForm.js:5
FunctionLoginForm
()
Chapter08/src/components/LoginForm.jsx:15
FunctionLogoutForm
()
Chapter10/src/components/LogoutForm.js:3
FunctionMessage
()
Chapter06/frontend/src/Message.jsx:2
FunctionNavbar
()
Chapter10/src/components/Navbar.js:5
FunctionNewCar
()
Chapter08/src/pages/NewCar.jsx:3
FunctionNotFound
()
Chapter08/src/pages/NotFound.jsx:1
FunctionNotFoundPage
()
Chapter10/src/app/not-found.js:2
FunctionRegister
()
Chapter06/frontend/src/Register.jsx:4
FunctionRootLayout
({ children })
Chapter10/src/app/layout.js:12
FunctionRootLayout
()
Chapter08/src/layouts/RootLayout.jsx:5
FunctionSingleCar
()
Chapter08/src/pages/SingleCar.jsx:5
FunctionUsers
()
Chapter06/frontend/src/Users.jsx:4
Functionaccount
(acc_type: AccountType, months: int = Path(..., ge=3, le=12))
Chapter04/chapter4_04.py:14
Functionadd_car_with_picture
Upload picture to Cloudinary and create a new car with a generated id.
Chapter07/backend/routers/cars.py:62
Functionadd_car_with_picture
Upload picture to Cloudinary and create a new car with a generated id.
Chapter09/routers/cars.py:70
Functionadd_random_header
(request: Request, call_next)
Chapter04/chapter4_17.py:9
Methodauth_wrapper
(self, auth: HTTPAuthorizationCredentials = Security(security))
Chapter07/backend/authentication.py:38
Methodauth_wrapper
Wrapper function for FastAPI Security that decodes the JWT token and returns the user ID and username. Args: aut
Chapter06/backend/authentication.py:83
Methodauth_wrapper
(self, auth: HTTPAuthorizationCredentials = Security(security))
Chapter09/authentication.py:38
FunctioncarsLoader
()
Chapter08/src/pages/Cars.jsx:20
Functioncars_by_price
(min_price: int = 0, max_price: int = 100000)
Chapter04/chapter4_05.py:7
Methodcheck_brand_case
(cls, v: str)
Chapter07/backend/models.py:34
Methodcheck_make_case
(cls, v: str)
Chapter07/backend/models.py:39
Methodcheck_passwords_match
(self)
Chapter03/chapter3_15.py:14
Methodcheck_private_data
(cls, data: Any)
Chapter03/chapter3_15.py:23
Methodcheck_title
(cls, v: str)
Chapter03/chapter3_14.py:11
FunctioncreateCar
(state, formData)
Chapter10/src/actions.js:60
Functioncreate_description
(brand, make, year, picture_url)
Chapter09/background.py:35
Functioncustom_form_validation_error
(request, exc)
Chapter07/backend/app.py:50
Functiondelayed_task
(username: str)
Chapter09/background.py:30
Functiondelete_car
Remove a single car.
Chapter07/backend/routers/cars.py:229
Functiondelete_car
(car_id: PydanticObjectId)
Chapter09/routers/cars.py:121
Functionerror
()
Chapter10/src/app/cars/error.js:2
FunctiongenerateMetadata
({ params }, parent)
Chapter10/src/app/cars/[id]/page.js:12
FunctiongenerateStaticParams
()
Chapter10/src/app/cars/[id]/page.js:6
Functionget_car
(car_id: PydanticObjectId)
Chapter09/routers/cars.py:47
Functionget_cars
()
Chapter04/routers/cars.py:7
Functionget_cars
Get all cars from the database.
Chapter09/routers/cars.py:40
Functionget_root
()
Chapter07/backend/app.py:71
Functionget_users
()
Chapter04/routers/user.py:7
Functionget_users
(id: int)
Chapter03/chapter3_04.py:1
FunctionhandleClick
()
Chapter05/frontend/src/components/Button.jsx:3
FunctionhandleSubmit
(e)
Chapter06/frontend/src/Register.jsx:9
Functionhinted_car_id
(id: int)
Chapter04/chapter4_02.py:12
Functionlayout
({ children })
Chapter10/src/app/cars/layout.js:1
Functionlifespan
(app: FastAPI)
Chapter07/backend/app.py:22
Functionlifespan
(app: FastAPI)
Chapter09/app.py:13
next →1–100 of 142, ranked by callers