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

Method write

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

Source from the content-addressed store, hash-verified

358 bound = "https://bound.example"
359
360 def write(profile: str, *, with_base_url: Optional[str]) -> None:
361 cfg: Dict[str, Any] = {
362 "type": "workload_identity",
363 "identity_token": {"source": "file", "path": str(jwt_path)},
364 "federation_rule_id": "fdrl_x",
365 "organization_id": "org",
366 }
367 if with_base_url is not None:
368 cfg["base_url"] = with_base_url
369 _write_profile(tmp_path, profile, config=cfg)
370
371 # config omits base_url, no bind → DEFAULT_BASE_URL
372 write("p0", with_base_url=None)

Callers 15

write_to_fileMethod · 0.80
write_to_fileMethod · 0.80
stream_to_fileMethod · 0.80
stream_to_fileMethod · 0.80
write_to_fileMethod · 0.80
stream_to_fileMethod · 0.80
astream_to_fileMethod · 0.80
_atomic_write_fileFunction · 0.80
createMethod · 0.80
write_replace_and_syncFunction · 0.80
create_exclusiveMethod · 0.80

Calls 1

_write_profileFunction · 0.85

Tested by

no test coverage detected