MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / write

Method write

tests/lib/test_credentials.py:393–402  ·  view source on GitHub ↗
(profile: str, *, with_base_url: Optional[str])

Source from the content-addressed store, hash-verified

391 bound = "https://bound.example"
392
393 def write(profile: str, *, with_base_url: Optional[str]) -> None:
394 cfg: Dict[str, Any] = {
395 "type": "workload_identity",
396 "identity_token": {"source": "file", "path": str(jwt_path)},
397 "federation_rule_id": "fdrl_x",
398 "organization_id": "org",
399 }
400 if with_base_url is not None:
401 cfg["base_url"] = with_base_url
402 _write_profile(tmp_path, profile, config=cfg)
403
404 # config omits base_url, no bind → DEFAULT_BASE_URL
405 write("p0", with_base_url=None)

Callers 13

write_to_fileMethod · 0.45
write_to_fileMethod · 0.45
stream_to_fileMethod · 0.45
stream_to_fileMethod · 0.45
_atomic_write_fileFunction · 0.45
createMethod · 0.45
write_replace_and_syncFunction · 0.45
create_exclusiveMethod · 0.45
_replace_via_tempFunction · 0.45
format_fileFunction · 0.45
mock_aws_configFunction · 0.45

Calls 1

_write_profileFunction · 0.85

Tested by

no test coverage detected