update_content() — fastapi Function Reference
Architecture documentation for the update_content() function in people.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 03193f2b_d187_4dad_deb5_b729737aed7c["update_content()"] 4dbe490d_c30b_6033_480a_ba29c94d075d["people.py"] 03193f2b_d187_4dad_deb5_b729737aed7c -->|defined in| 4dbe490d_c30b_6033_480a_ba29c94d075d 04dd64fd_a157_008a_06a5_7c82002acaed["main()"] 04dd64fd_a157_008a_06a5_7c82002acaed -->|calls| 03193f2b_d187_4dad_deb5_b729737aed7c style 03193f2b_d187_4dad_deb5_b729737aed7c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/people.py lines 305–314
def update_content(*, content_path: Path, new_content: Any) -> bool:
old_content = content_path.read_text(encoding="utf-8")
new_content = yaml.dump(new_content, sort_keys=False, width=200, allow_unicode=True)
if old_content == new_content:
logging.info(f"The content hasn't changed for {content_path}")
return False
content_path.write_text(new_content, encoding="utf-8")
logging.info(f"Updated {content_path}")
return True
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does update_content() do?
update_content() is a function in the fastapi codebase, defined in scripts/people.py.
Where is update_content() defined?
update_content() is defined in scripts/people.py at line 305.
What calls update_content()?
update_content() is called by 1 function(s): main.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free