SYMBOL INDEX (229 symbols across 58 files) FILE: ch01/todos/api.py function welcome (line 7) | async def welcome() -> dict: FILE: ch02/todos/api.py function welcome (line 9) | async def welcome() -> dict: FILE: ch02/todos/model.py class Todo (line 4) | class Todo(BaseModel): class Config (line 8) | class Config: class TodoItem (line 17) | class TodoItem(BaseModel): class Config (line 20) | class Config: FILE: ch02/todos/todo.py function add_todo (line 11) | async def add_todo(todo: Todo) -> dict: function retrieve_todo (line 19) | async def retrieve_todo() -> dict: function get_single_todo (line 26) | async def get_single_todo(todo_id: int = Path(..., title="The ID of the ... function update_todo (line 38) | async def update_todo(todo_data: TodoItem, todo_id: int = Path(..., titl... function delete_single_todo (line 51) | async def delete_single_todo(todo_id: int) -> dict: function delete_all_todo (line 65) | async def delete_all_todo() -> dict: FILE: ch03/todos/api.py function welcome (line 9) | async def welcome() -> dict: FILE: ch03/todos/model.py class Todo (line 6) | class Todo(BaseModel): class Config (line 10) | class Config: class TodoItem (line 19) | class TodoItem(BaseModel): class Config (line 22) | class Config: class TodoItems (line 30) | class TodoItems(BaseModel): class Config (line 33) | class Config: FILE: ch03/todos/todo.py function add_todo (line 10) | async def add_todo(todo: Todo) -> dict: function retrieve_todo (line 18) | async def retrieve_todo() -> dict: function get_single_todo (line 25) | async def get_single_todo(todo_id: int = Path(..., title="The ID of the ... function update_todo (line 38) | async def update_todo(todo_data: TodoItem, todo_id: int = Path(..., titl... function delete_single_todo (line 53) | async def delete_single_todo(todo_id: int) -> dict: function delete_all_todo (line 68) | async def delete_all_todo() -> dict: FILE: ch04/todos/api.py function welcome (line 9) | async def welcome() -> dict: FILE: ch04/todos/model.py class Todo (line 7) | class Todo(BaseModel): method as_form (line 12) | def as_form( class Config (line 18) | class Config: class TodoItem (line 27) | class TodoItem(BaseModel): class Config (line 30) | class Config: class TodoItems (line 38) | class TodoItems(BaseModel): class Config (line 41) | class Config: FILE: ch04/todos/todo.py function add_todo (line 14) | async def add_todo(request: Request, todo: Todo = Depends(Todo.as_form)): function retrieve_todo (line 25) | async def retrieve_todo(request: Request): function get_single_todo (line 33) | async def get_single_todo(request: Request, todo_id: int = Path(..., tit... function update_todo (line 47) | async def update_todo(request: Request, todo_data: TodoItem, function delete_single_todo (line 63) | async def delete_single_todo(request: Request, todo_id: int) -> dict: function delete_all_todo (line 78) | async def delete_all_todo() -> dict: FILE: ch05/planner/main.py function home (line 18) | async def home(): FILE: ch05/planner/models/events.py class Event (line 6) | class Event(BaseModel): class Config (line 14) | class Config: FILE: ch05/planner/models/users.py class User (line 4) | class User(BaseModel): class Config (line 8) | class Config: class UserSignIn (line 17) | class UserSignIn(BaseModel): FILE: ch05/planner/routes/events.py function retrieve_all_events (line 14) | async def retrieve_all_events() -> List[Event]: function retrieve_event (line 19) | async def retrieve_event(id: int) -> Event: function create_event (line 30) | async def create_event(body: Event = Body(...)) -> dict: function delete_event (line 38) | async def delete_event(id: int) -> dict: FILE: ch05/planner/routes/users.py function sign_user_up (line 13) | async def sign_user_up(data: User) -> dict: function sign_user_in (line 28) | async def sign_user_in(user: UserSignIn) -> dict: FILE: ch06/planner/database/connection.py class Settings (line 10) | class Settings(BaseSettings): method initialize_database (line 13) | async def initialize_database(self): class Config (line 18) | class Config: class Database (line 22) | class Database: method __init__ (line 23) | def __init__(self, model): method save (line 26) | async def save(self, document) -> None: method get (line 30) | async def get(self, id: PydanticObjectId) -> Any: method get_all (line 36) | async def get_all(self) -> List[Any]: method update (line 40) | async def update(self, id: PydanticObjectId, body: BaseModel) -> Any: method delete (line 55) | async def delete(self, id: PydanticObjectId) -> bool: FILE: ch06/planner/main.py function init_db (line 20) | async def init_db(): function home (line 25) | async def home(): FILE: ch06/planner/models/events.py class Event (line 7) | class Event(Document): class Config (line 14) | class Config: class Settings (line 25) | class Settings: class EventUpdate (line 29) | class EventUpdate(BaseModel): class Config (line 36) | class Config: FILE: ch06/planner/models/users.py class User (line 6) | class User(Document): class Settings (line 10) | class Settings: class Config (line 13) | class Config: class UserSignIn (line 22) | class UserSignIn(BaseModel): FILE: ch06/planner/routes/events.py function retrieve_all_events (line 16) | async def retrieve_all_events() -> List[Event]: function retrieve_event (line 22) | async def retrieve_event(id: PydanticObjectId) -> Event: function create_event (line 33) | async def create_event(body: Event) -> dict: function update_event (line 41) | async def update_event(id: PydanticObjectId, body: EventUpdate) -> Event: function delete_event (line 52) | async def delete_event(id: PydanticObjectId) -> dict: FILE: ch06/planner/routes/users.py function sign_user_up (line 13) | async def sign_user_up(user: User) -> dict: function sign_user_in (line 28) | async def sign_user_in(user: UserSignIn) -> dict: FILE: ch07/planner/auth/authenticate.py function authenticate (line 8) | async def authenticate(token: str = Depends(oauth2_scheme)) -> str: FILE: ch07/planner/auth/hash_password.py class HashPassword (line 6) | class HashPassword: method create_hash (line 7) | def create_hash(self, password: str): method verify_hash (line 10) | def verify_hash(self, plain_password: str, hashed_password: str): FILE: ch07/planner/auth/jwt_handler.py function create_access_token (line 11) | def create_access_token(user: str): function verify_access_token (line 21) | def verify_access_token(token: str): FILE: ch07/planner/database/connection.py class Settings (line 10) | class Settings(BaseSettings): method initialize_database (line 14) | async def initialize_database(self): class Config (line 19) | class Config: class Database (line 23) | class Database: method __init__ (line 24) | def __init__(self, model): method save (line 27) | async def save(self, document): method get (line 31) | async def get(self, id: PydanticObjectId): method get_all (line 37) | async def get_all(self): method update (line 41) | async def update(self, id: PydanticObjectId, body: BaseModel): method delete (line 56) | async def delete(self, id: PydanticObjectId): FILE: ch07/planner/main.py function init_db (line 33) | async def init_db(): function home (line 38) | async def home(): FILE: ch07/planner/models/events.py class Event (line 7) | class Event(Document): class Config (line 15) | class Config: class Collection (line 26) | class Collection: class EventUpdate (line 30) | class EventUpdate(BaseModel): class Config (line 37) | class Config: FILE: ch07/planner/models/users.py class User (line 6) | class User(Document): class Collection (line 10) | class Collection: class Config (line 13) | class Config: class TokenResponse (line 22) | class TokenResponse(BaseModel): FILE: ch07/planner/routes/events.py function retrieve_all_events (line 17) | async def retrieve_all_events() -> List[Event]: function retrieve_event (line 23) | async def retrieve_event(id: PydanticObjectId) -> Event: function create_event (line 34) | async def create_event(body: Event, user: str = Depends(authenticate)) -... function update_event (line 43) | async def update_event(id: PydanticObjectId, body: EventUpdate, user: st... function delete_event (line 60) | async def delete_event(id: PydanticObjectId, user: str = Depends(authent... FILE: ch07/planner/routes/users.py function sign_user_up (line 17) | async def sign_user_up(user: User) -> dict: function sign_user_in (line 34) | async def sign_user_in(user: OAuth2PasswordRequestForm = Depends()) -> d... FILE: ch08/planner/auth/authenticate.py function authenticate (line 8) | async def authenticate(token: str = Depends(oauth2_scheme)) -> str: FILE: ch08/planner/auth/hash_password.py class HashPassword (line 6) | class HashPassword: method create_hash (line 7) | def create_hash(self, password: str) -> str: method verify_hash (line 10) | def verify_hash(self, plain_password: str, hashed_password: str) -> bool: FILE: ch08/planner/auth/jwt_handler.py function create_access_token (line 12) | def create_access_token(user: str) -> str: function verify_access_token (line 22) | async def verify_access_token(token: str) -> dict: FILE: ch08/planner/database/connection.py class Settings (line 10) | class Settings(BaseSettings): method initialize_database (line 14) | async def initialize_database(self): class Config (line 19) | class Config: class Database (line 23) | class Database: method __init__ (line 24) | def __init__(self, model): method save (line 27) | async def save(self, document): method get (line 31) | async def get(self, id: PydanticObjectId) -> bool: method get_all (line 37) | async def get_all(self) -> List[Any]: method update (line 41) | async def update(self, id: PydanticObjectId, body: BaseModel) -> Any: method delete (line 56) | async def delete(self, id: PydanticObjectId) -> bool: FILE: ch08/planner/main.py function init_db (line 34) | async def init_db(): function home (line 39) | async def home(): FILE: ch08/planner/models/events.py class Event (line 7) | class Event(Document): class Config (line 15) | class Config: class Settings (line 26) | class Settings: class EventUpdate (line 30) | class EventUpdate(BaseModel): class Config (line 37) | class Config: FILE: ch08/planner/models/users.py class User (line 6) | class User(Document): class Settings (line 10) | class Settings: class Config (line 13) | class Config: class TokenResponse (line 22) | class TokenResponse(BaseModel): FILE: ch08/planner/routes/events.py function retrieve_all_events (line 17) | async def retrieve_all_events() -> List[Event]: function retrieve_event (line 23) | async def retrieve_event(id: PydanticObjectId) -> Event: function create_event (line 34) | async def create_event(body: Event, user: str = Depends(authenticate)) -... function update_event (line 43) | async def update_event(id: PydanticObjectId, body: EventUpdate, user: st... function delete_event (line 60) | async def delete_event(id: PydanticObjectId, user: str = Depends(authent... FILE: ch08/planner/routes/users.py function sign_user_up (line 17) | async def sign_user_up(user: User) -> dict: function sign_user_in (line 34) | async def sign_user_in(user: OAuth2PasswordRequestForm = Depends()) -> d... FILE: ch08/planner/tests/conftest.py function event_loop (line 13) | def event_loop(): function init_db (line 19) | async def init_db(): function default_client (line 27) | async def default_client(): FILE: ch08/planner/tests/test_arthmetic_operations.py function add (line 1) | def add(a: int, b: int) -> int: function subtract (line 5) | def subtract(a: int, b: int) -> int: function multiply (line 9) | def multiply(a: int, b: int) -> int: function divide (line 13) | def divide(a: int, b: int) -> int: function test_add (line 17) | def test_add() -> None: function test_subtract (line 21) | def test_subtract() -> None: function test_multiply (line 25) | def test_multiply() -> None: function test_divide (line 29) | def test_divide() -> None: FILE: ch08/planner/tests/test_fixture.py function event (line 8) | def event() -> EventUpdate: function test_event_name (line 18) | def test_event_name(event: EventUpdate) -> None: FILE: ch08/planner/tests/test_login.py function test_sign_new_user (line 6) | async def test_sign_new_user(default_client: httpx.AsyncClient) -> None: function test_sign_user_in (line 28) | async def test_sign_user_in(default_client: httpx.AsyncClient) -> None: FILE: ch08/planner/tests/test_routes.py function access_token (line 9) | async def access_token() -> str: function mock_event (line 14) | async def mock_event() -> Event: function test_get_events (line 30) | async def test_get_events(default_client: httpx.AsyncClient, mock_event:... function test_get_event (line 38) | async def test_get_event(default_client: httpx.AsyncClient, mock_event: ... function test_post_event (line 48) | async def test_post_event(default_client: httpx.AsyncClient, access_toke... function test_get_events_count (line 78) | async def test_get_events_count(default_client: httpx.AsyncClient) -> None: function test_update_event (line 88) | async def test_update_event(default_client: httpx.AsyncClient, mock_even... function test_delete_event (line 107) | async def test_delete_event(default_client: httpx.AsyncClient, mock_even... function test_get_event_again (line 126) | async def test_get_event_again(default_client: httpx.AsyncClient, mock_e... FILE: ch09/planner/auth/authenticate.py function authenticate (line 8) | async def authenticate(token: str = Depends(oauth2_scheme)) -> str: FILE: ch09/planner/auth/hash_password.py class HashPassword (line 6) | class HashPassword: method create_hash (line 7) | def create_hash(self, password: str) -> str: method verify_hash (line 10) | def verify_hash(self, plain_password: str, hashed_password: str) -> bool: FILE: ch09/planner/auth/jwt_handler.py function create_access_token (line 12) | def create_access_token(user: str) -> str: function verify_access_token (line 22) | async def verify_access_token(token: str) -> dict: FILE: ch09/planner/database/connection.py class Settings (line 10) | class Settings(BaseSettings): method initialize_database (line 14) | async def initialize_database(self): class Config (line 19) | class Config: class Database (line 23) | class Database: method __init__ (line 24) | def __init__(self, model): method save (line 27) | async def save(self, document): method get (line 31) | async def get(self, id: PydanticObjectId) -> bool: method get_all (line 37) | async def get_all(self) -> List[Any]: method update (line 41) | async def update(self, id: PydanticObjectId, body: BaseModel) -> Any: method delete (line 56) | async def delete(self, id: PydanticObjectId) -> bool: FILE: ch09/planner/main.py function init_db (line 36) | async def init_db(): function home (line 41) | async def home(): FILE: ch09/planner/models/events.py class Event (line 7) | class Event(Document): class Config (line 15) | class Config: class Settings (line 26) | class Settings: class EventUpdate (line 30) | class EventUpdate(BaseModel): class Config (line 37) | class Config: FILE: ch09/planner/models/users.py class User (line 6) | class User(Document): class Settings (line 10) | class Settings: class Config (line 13) | class Config: class TokenResponse (line 22) | class TokenResponse(BaseModel): FILE: ch09/planner/routes/events.py function retrieve_all_events (line 17) | async def retrieve_all_events() -> List[Event]: function retrieve_event (line 23) | async def retrieve_event(id: PydanticObjectId) -> Event: function create_event (line 34) | async def create_event(body: Event, user: str = Depends(authenticate)) -... function update_event (line 43) | async def update_event(id: PydanticObjectId, body: EventUpdate, user: st... function delete_event (line 60) | async def delete_event(id: PydanticObjectId, user: str = Depends(authent... FILE: ch09/planner/routes/users.py function sign_user_up (line 17) | async def sign_user_up(user: User) -> dict: function sign_user_in (line 34) | async def sign_user_in(user: OAuth2PasswordRequestForm = Depends()) -> d... FILE: ch09/planner/tests/conftest.py function event_loop (line 12) | def event_loop(): function init_db (line 18) | async def init_db(): function default_client (line 26) | async def default_client(): FILE: ch09/planner/tests/test_arthmetic_operations.py function add (line 1) | def add(a: int, b: int) -> int: function subtract (line 5) | def subtract(a: int, b: int) -> int: function multiply (line 9) | def multiply(a: int, b: int) -> int: function divide (line 13) | def divide(a: int, b: int) -> int: function test_add (line 17) | def test_add() -> None: function test_subtract (line 21) | def test_subtract() -> None: function test_multiply (line 25) | def test_multiply() -> None: function test_divide (line 29) | def test_divide() -> None: FILE: ch09/planner/tests/test_fixture.py function event (line 8) | def event() -> EventUpdate: function test_event_name (line 18) | def test_event_name(event: EventUpdate) -> None: FILE: ch09/planner/tests/test_login.py function test_sign_new_user (line 6) | async def test_sign_new_user(default_client: httpx.AsyncClient) -> None: function test_sign_user_in (line 28) | async def test_sign_user_in(default_client: httpx.AsyncClient) -> None: FILE: ch09/planner/tests/test_routes.py function access_token (line 9) | async def access_token() -> str: function mock_event (line 14) | async def mock_event() -> Event: function test_get_events (line 30) | async def test_get_events(default_client: httpx.AsyncClient, mock_event:... function test_get_event (line 38) | async def test_get_event(default_client: httpx.AsyncClient, mock_event: ... function test_post_event (line 48) | async def test_post_event(default_client: httpx.AsyncClient, access_toke... function test_get_events_count (line 78) | async def test_get_events_count(default_client: httpx.AsyncClient) -> None: function test_update_event (line 88) | async def test_update_event(default_client: httpx.AsyncClient, mock_even... function test_delete_event (line 107) | async def test_delete_event(default_client: httpx.AsyncClient, mock_even... function test_get_event_again (line 126) | async def test_get_event_again(default_client: httpx.AsyncClient, mock_e...