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

Method write

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

Source from the content-addressed store, hash-verified

413 bound = "https://bound.example"
414
415 def write(profile: str, *, with_base_url: Optional[str]) -> None:
416 cfg: Dict[str, Any] = {
417 "type": "workload_identity",
418 "identity_token": {"source": "file", "path": str(jwt_path)},
419 "federation_rule_id": "fdrl_x",
420 "organization_id": "org",
421 }
422 if with_base_url is not None:
423 cfg["base_url"] = with_base_url
424 _write_profile(tmp_path, profile, config=cfg)
425
426 # config omits base_url, no bind → DEFAULT_BASE_URL
427 write("p0", with_base_url=None)

Callers 15

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_code_blocksFunction · 0.45
mainFunction · 0.45

Calls 1

_write_profileFunction · 0.85

Tested by

no test coverage detected