profile_to_ini() — anthropic-sdk-python Function Reference
Architecture documentation for the profile_to_ini() function in test_bedrock.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD adbbc449_ab1c_7138_a24f_3e386ac3bc7b["profile_to_ini()"] ba53edc6_e72a_dfe0_42d5_c2a06c57d6a1["test_bedrock.py"] adbbc449_ab1c_7138_a24f_3e386ac3bc7b -->|defined in| ba53edc6_e72a_dfe0_42d5_c2a06c57d6a1 088e20fd_bc1f_b98d_fd74_5a4156858e40["mock_aws_config()"] 088e20fd_bc1f_b98d_fd74_5a4156858e40 -->|calls| adbbc449_ab1c_7138_a24f_3e386ac3bc7b style adbbc449_ab1c_7138_a24f_3e386ac3bc7b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/lib/test_bedrock.py lines 35–41
def profile_to_ini(profile: AwsConfigProfile) -> str:
"""
Convert an AWS config profile to an INI format string.
"""
profile_name = profile["name"] if profile["name"] == "default" else f"profile {profile['name']}"
return f"[{profile_name}]\nregion = {profile['region']}\n"
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does profile_to_ini() do?
profile_to_ini() is a function in the anthropic-sdk-python codebase, defined in tests/lib/test_bedrock.py.
Where is profile_to_ini() defined?
profile_to_ini() is defined in tests/lib/test_bedrock.py at line 35.
What calls profile_to_ini()?
profile_to_ini() is called by 1 function(s): mock_aws_config.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free