main() — anthropic-sdk-python Function Reference
Architecture documentation for the main() function in detect-breaking-changes.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD a55ce8c3_4110_406d_c5a6_815f3f1358d9["main()"] f35c06ad_626e_0ab9_5a04_f3a67cc1344b["detect-breaking-changes.py"] a55ce8c3_4110_406d_c5a6_815f3f1358d9 -->|defined in| f35c06ad_626e_0ab9_5a04_f3a67cc1344b b7405e69_1607_d3dc_34ad_ff7b356e4a67["find_breaking_changes()"] a55ce8c3_4110_406d_c5a6_815f3f1358d9 -->|calls| b7405e69_1607_d3dc_34ad_ff7b356e4a67 style a55ce8c3_4110_406d_c5a6_815f3f1358d9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/detect-breaking-changes.py lines 50–76
def main() -> None:
try:
against_ref = sys.argv[1]
except IndexError as err:
raise RuntimeError("You must specify a base ref to run breaking change detection against") from err
package = griffe.load(
"anthropic",
search_paths=[Path(__file__).parent.parent.joinpath("src")],
)
old_package = griffe.load_git(
"anthropic",
ref=against_ref,
search_paths=["src"],
)
assert isinstance(package, griffe.Module)
assert isinstance(old_package, griffe.Module)
output = list(find_breaking_changes(package, old_package, path=["anthropic"]))
if output:
rich.print(Text("Breaking changes detected!", style=Style(color="rgb(165, 79, 87)")))
rich.print()
for text in output:
rich.print(text, end="")
sys.exit(1)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does main() do?
main() is a function in the anthropic-sdk-python codebase, defined in scripts/detect-breaking-changes.py.
Where is main() defined?
main() is defined in scripts/detect-breaking-changes.py at line 50.
What does main() call?
main() calls 1 function(s): find_breaking_changes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free