Home / Function/ fake_save_user() — fastapi Function Reference

fake_save_user() — fastapi Function Reference

Architecture documentation for the fake_save_user() function in tutorial001_py310.py from the fastapi codebase.

Function python FastAPI Applications calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  604f7354_8184_c8f6_29c0_cb3ee660bc12["fake_save_user()"]
  82a4a6fc_54ef_d6b1_d38d_2fb5da6fb305["tutorial001_py310.py"]
  604f7354_8184_c8f6_29c0_cb3ee660bc12 -->|defined in| 82a4a6fc_54ef_d6b1_d38d_2fb5da6fb305
  60a68986_9746_3f35_86ff_32777dd00c83["create_user()"]
  60a68986_9746_3f35_86ff_32777dd00c83 -->|calls| 604f7354_8184_c8f6_29c0_cb3ee660bc12
  d1f5034e_f5ac_dbab_1cca_afebdd467ab9["fake_password_hasher()"]
  604f7354_8184_c8f6_29c0_cb3ee660bc12 -->|calls| d1f5034e_f5ac_dbab_1cca_afebdd467ab9
  style 604f7354_8184_c8f6_29c0_cb3ee660bc12 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

docs_src/extra_models/tutorial001_py310.py lines 31–35

def fake_save_user(user_in: UserIn):
    hashed_password = fake_password_hasher(user_in.password)
    user_in_db = UserInDB(**user_in.model_dump(), hashed_password=hashed_password)
    print("User saved! ..not really")
    return user_in_db

Domain

Subdomains

Called By

Frequently Asked Questions

What does fake_save_user() do?
fake_save_user() is a function in the fastapi codebase, defined in docs_src/extra_models/tutorial001_py310.py.
Where is fake_save_user() defined?
fake_save_user() is defined in docs_src/extra_models/tutorial001_py310.py at line 31.
What does fake_save_user() call?
fake_save_user() calls 1 function(s): fake_password_hasher.
What calls fake_save_user()?
fake_save_user() is called by 1 function(s): create_user.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free