Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
9,455 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
9,455
◇
Types & classes
3,151
↳
Endpoints
25
Method
test_path_params_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_external_keys.py:527
Method
test_path_validation_reject_paths_not_starting_with_memories
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:512
Method
test_path_validation_reject_paths_not_starting_with_memories
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1051
Method
test_path_validation_reject_paths_trying_to_escape_memories
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:520
Method
test_path_validation_reject_paths_trying_to_escape_memories
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1059
Function
test_pathlib_in_file_tuple
()
tests/test_files.py:47
Function
test_pathlib_includes_file_name
()
tests/test_files.py:14
Function
test_pathlike_str_outside_file_slots_is_a_string
(send: Send, monkeypatch: pytest.MonkeyPatch)
tests/test_prepare.py:673
Function
test_paths_that_escape_the_store_are_refused
(tmp_path: Path, caplog: pytest.LogCaptureFixture)
tests/lib/tools/memory_sync/test_memory_sync.py:150
Function
test_pause_turn_respects_max_iterations_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:784
Function
test_pause_turn_resumes_runner_async
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:754
Function
test_pause_turn_resumes_runner_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:724
Method
test_pdf_resource
(self)
tests/lib/tools/test_mcp_tool.py:221
Function
test_pending_compaction_is_skipped_on_a_final_turn_with_unrun_tool_calls_async
( respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/tools/test_runners.py:2755
Function
test_pending_compaction_is_skipped_on_a_final_turn_with_unrun_tool_calls_sync
( respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/tools/test_runners.py:2732
Function
test_pending_compaction_is_skipped_when_max_iterations_ends_the_run_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:3013
Function
test_pep604_discriminated_union_in_optional_invalid_data
()
tests/test_models.py:894
Function
test_pep604_union_field_invalid_data
()
tests/test_models.py:870
Method
test_per_request_mode_still_forces_after_invalidate
invalidate() still makes the next call pass `force_refresh=True` when nothing is cached.
tests/lib/test_credentials.py:1963
Method
test_per_request_mode_still_forces_after_invalidate
(self)
tests/lib/test_credentials.py:3635
Method
test_pins_the_conversation_to_the_accepted_fallback_via_state
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback.py:136
Method
test_pins_the_conversation_to_the_accepted_fallback_via_state
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:710
Method
test_pins_the_state_to_the_hop_that_served
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:636
Method
test_platform_headers_do_not_spawn_subprocesses
(self, monkeypatch: pytest.MonkeyPatch)
tests/test_client.py:2669
Method
test_pointer_at_missing_profile_raises
(self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:4313
Method
test_pointer_at_missing_profile_raises_via_client
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:4319
Method
test_pointer_at_present_profile_loads_normally
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:4334
Function
test_positional_param
()
tests/test_required_args.py:17
Function
test_post_construction_base_url_assignment_wins
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:616
Function
test_pre_denied_tool_ignores_stray_allow_verdict
A call the server already evaluated to `deny` must never execute, even if an (anomalous) `allow` confirmation exists for its id.
tests/lib/tools/test_session_runner.py:1039
Function
test_pre_denied_tool_never_executes
A call the server already evaluated to `deny` needs no confirmation — it must never execute and nothing may be posted for it.
tests/lib/tools/test_session_runner.py:724
Function
test_prefix_items_and_foreign_resources_leave_no_trace
Only `memory_store` resources are downloaded and only `memory` items carry content — a `file` resource and `memory_prefix` rollups pass throug
tests/lib/tools/memory_sync/test_memory_sync.py:412
Function
test_prepare_options_lifts_anthropic_beta_header_case_insensitively
()
tests/lib/test_bedrock.py:635
Function
test_preserves_key_order
(send: Send)
tests/test_prepare.py:401
Method
test_profile_and_config_mutually_exclusive
(self)
tests/lib/test_credentials.py:2961
Method
test_profile_and_credentials_mutually_exclusive
(self)
tests/lib/test_credentials.py:2965
Method
test_profile_base_url_adopted_by_client
Outbound: a zero-arg `Anthropic()` adopts the active profile's `base_url` when the user supplied neither `base_url=` nor `ANTHROPIC_BA
tests/lib/test_credentials.py:2516
Method
test_profile_env_triggers_tier1
ANTHROPIC_PROFILE set → tier 1 fires.
tests/lib/test_credentials.py:2109
Method
test_profile_from_active_config
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:975
Method
test_profile_from_env
(self, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:970
Method
test_profile_name_empty_rejected
(self)
tests/lib/test_credentials.py:832
Method
test_profile_name_leading_dot_rejected
(self)
tests/lib/test_credentials.py:828
Method
test_profile_name_path_traversal_rejected
(self)
tests/lib/test_credentials.py:824
Method
test_profile_name_with_dot_prefix_raises_anthropic_error
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:3910
Method
test_profile_param_loads_named_profile
`Anthropic(profile="staging")` loads `configs/staging.json` from the config directory, equivalent to setting `ANTHROPIC_PROFILE`.
tests/lib/test_credentials.py:2946
Method
test_profile_returns_true
(self)
tests/lib/test_aws_auth.py:74
Method
test_profile_suppresses_env_api_key
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws_auth.py:121
Method
test_profile_value_wins_over_env
(self, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:1423
Method
test_programmatic_tool_call
(self, snapshot_client: Anthropic)
tests/lib/tools/test_runners.py:534
Function
test_project_backfilled_from_adc_on_first_request
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:540
Function
test_project_backfilled_from_adc_on_first_request_async
( respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_google_cloud.py:662
Method
test_project_backfilled_from_explicit_credentials
(self)
tests/lib/test_google_cloud.py:176
Method
test_project_falls_back_to_google_cloud_project_env
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:144
Method
test_properties
(self)
tests/test_middleware.py:378
Method
test_provider_annotated_with_an_undefined_name
Reading the signature must not evaluate annotations that only resolve for type checkers.
tests/lib/test_credentials.py:1892
Method
test_provider_must_return_an_access_token
(self)
tests/lib/test_credentials.py:1546
Method
test_provider_must_return_an_access_token
(self)
tests/lib/test_credentials.py:3801
Method
test_proxy_environment_variables
(self, monkeypatch: pytest.MonkeyPatch)
tests/test_client.py:1351
Method
test_proxy_environment_variables
(self, monkeypatch: pytest.MonkeyPatch)
tests/test_client.py:2686
Function
test_pure_actions_render_their_confirmation_from_the_input
()
tests/lib/tools/toolsets/test_pipeline.py:102
Function
test_pydantic_mismatched_types
(send: Send)
tests/test_prepare.py:445
Method
test_pydantic_model_serialization
(self)
tests/test_utils/test_json.py:48
Method
test_pydantic_model_with_alias
(self)
tests/test_utils/test_json.py:82
Method
test_pydantic_model_with_alias_and_default
(self)
tests/test_utils/test_json.py:92
Method
test_pydantic_model_with_default_values
(self)
tests/test_utils/test_json.py:59
Method
test_pydantic_model_with_default_values_overridden
(self)
tests/test_utils/test_json.py:71
Method
test_pydantic_model_with_nested_models_and_defaults
(self)
tests/test_utils/test_json.py:108
Method
test_pydantic_model_with_optional_fields
(self)
tests/test_utils/test_json.py:136
Function
test_pydantic_models_are_dumped
(send: Send)
tests/test_prepare.py:412
Function
test_query_params
(send: Send)
tests/test_prepare.py:490
Function
test_query_params_are_never_read
(send: Send, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch)
tests/test_prepare.py:587
Method
test_raises_if_state_index_is_out_of_bounds_for_the_chain
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:159
Method
test_raises_on_missing_credentials
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws_auth.py:586
Method
test_raises_when_file_missing
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:237
Method
test_raises_when_missing
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:210
Method
test_raises_when_no_path
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:232
Method
test_raises_without_region_or_base_url
(self)
tests/lib/test_bedrock_mantle.py:61
Function
test_raw_dictionary
()
tests/test_models.py:123
Method
test_raw_response
(self, respx_mock: MockRouter, client: Anthropic)
tests/test_client.py:134
Method
test_raw_response
(self, respx_mock: MockRouter, async_client: AsyncAnthropic)
tests/test_client.py:1427
Method
test_raw_response_ack
(self, client: Anthropic)
tests/api_resources/beta/environments/test_work.py:211
Method
test_raw_response_ack
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/environments/test_work.py:658
Method
test_raw_response_add
(self, client: Anthropic)
tests/api_resources/beta/sessions/test_resources.py:276
Method
test_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/sessions/test_resources.py:569
Method
test_raw_response_add
(self, client: Anthropic)
tests/api_resources/beta/organization/federation/rules/test_workspaces.py:88
Method
test_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/federation/rules/test_workspaces.py:250
Method
test_raw_response_add
(self, client: Anthropic)
tests/api_resources/beta/organization/workspaces/test_members.py:181
Method
test_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/workspaces/test_members.py:430
Method
test_raw_response_add
(self, client: Anthropic)
tests/api_resources/beta/organization/workspaces/test_service_accounts.py:210
Method
test_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/workspaces/test_service_accounts.py:497
Method
test_raw_response_add
(self, client: Anthropic)
tests/api_resources/beta/organization/rbac_groups/test_members.py:78
Method
test_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/rbac_groups/test_members.py:221
Method
test_raw_response_add
(self, client: Anthropic)
tests/api_resources/beta/organization/service_accounts/test_workspaces.py:90
Method
test_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/service_accounts/test_workspaces.py:257
Method
test_raw_response_add
(self, client: Anthropic)
tests/api_resources/organization/federation/rules/test_workspaces.py:78
Method
test_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/federation/rules/test_workspaces.py:221
Method
test_raw_response_add
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_members.py:181
Method
test_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_members.py:430
Method
test_raw_response_add
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:180
Method
test_raw_response_add
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:428
← previous
next →
6,801–6,900 of 9,455, ranked by callers