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

Method write

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

Source from the content-addressed store, hash-verified

408 bound = "https://bound.example"
409
410 def write(profile: str, *, with_base_url: Optional[str]) -> None:
411 cfg: Dict[str, Any] = {
412 "type": "workload_identity",
413 "identity_token": {"source": "file", "path": str(jwt_path)},
414 "federation_rule_id": "fdrl_x",
415 "organization_id": "org",
416 }
417 if with_base_url is not None:
418 cfg["base_url"] = with_base_url
419 _write_profile(tmp_path, profile, config=cfg)
420
421 # config omits base_url, no bind → DEFAULT_BASE_URL
422 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