update_content() — fastapi Function Reference
Architecture documentation for the update_content() function in sponsors.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD dcb347d6_8c86_b380_c197_49c4b43b5cf2["update_content()"] 056ab1dd_e9bf_db94_7561_c9133dc915c2["sponsors.py"] dcb347d6_8c86_b380_c197_49c4b43b5cf2 -->|defined in| 056ab1dd_e9bf_db94_7561_c9133dc915c2 2551f96f_dafc_1264_4aa4_d4ca9c29d970["main()"] 2551f96f_dafc_1264_4aa4_d4ca9c29d970 -->|calls| dcb347d6_8c86_b380_c197_49c4b43b5cf2 style dcb347d6_8c86_b380_c197_49c4b43b5cf2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/sponsors.py lines 147–156
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/sponsors.py.
Where is update_content() defined?
update_content() is defined in scripts/sponsors.py at line 147.
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