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

Method write

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

Source from the content-addressed store, hash-verified

373 bound = "https://bound.example"
374
375 def write(profile: str, *, with_base_url: Optional[str]) -> None:
376 cfg: Dict[str, Any] = {
377 "type": "workload_identity",
378 "identity_token": {"source": "file", "path": str(jwt_path)},
379 "federation_rule_id": "fdrl_x",
380 "organization_id": "org",
381 }
382 if with_base_url is not None:
383 cfg["base_url"] = with_base_url
384 _write_profile(tmp_path, profile, config=cfg)
385
386 # config omits base_url, no bind → DEFAULT_BASE_URL
387 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