Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
12,274 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
12,274
◇
Types & classes
3,937
↳
Endpoints
46
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:121
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:364
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/beta/organization/federation/test_issuers.py:179
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/federation/test_issuers.py:441
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/beta/organization/federation/test_rules.py:215
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/federation/test_rules.py:514
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/beta/organization/claude_tag/test_slack_workspaces.py:127
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/claude_tag/test_slack_workspaces.py:289
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/beta/organization/claude_tag/test_slack_channels.py:191
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/claude_tag/test_slack_channels.py:470
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/beta/organization/claude_tag/test_bundles.py:114
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/claude_tag/test_bundles.py:262
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/beta/organization/workspaces/test_members.py:114
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/workspaces/test_members.py:379
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/beta/organization/workspaces/test_service_accounts.py:135
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/workspaces/test_service_accounts.py:442
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/beta/organization/workspaces/test_rate_limits.py:77
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/workspaces/test_rate_limits.py:217
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/beta/memory_stores/test_memories.py:204
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/memory_stores/test_memories.py:523
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/test_rbac_groups.py:131
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_rbac_groups.py:323
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/test_workspaces.py:160
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_workspaces.py:386
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/test_external_keys.py:161
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_external_keys.py:420
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/test_api_keys.py:98
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_api_keys.py:226
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/test_users.py:92
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_users.py:252
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/test_service_accounts.py:140
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_service_accounts.py:343
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/federation/test_issuers.py:157
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/federation/test_issuers.py:377
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/federation/test_rules.py:191
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/federation/test_rules.py:446
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_members.py:108
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_members.py:357
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:108
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_service_accounts.py:356
Method
test_path_params_update
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_rate_limits.py:72
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_rate_limits.py:205
Method
test_path_params_validate
(self, client: Anthropic)
tests/api_resources/beta/organization/test_external_keys.py:296
Method
test_path_params_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_external_keys.py:581
Method
test_path_params_validate
(self, client: Anthropic)
tests/api_resources/organization/test_external_keys.py:270
Method
test_path_params_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_external_keys.py:529
Method
test_path_sharing_user_profiles_prefix_keeps_workspace_base
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1576
Method
test_path_sharing_user_profiles_prefix_keeps_workspace_base
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1735
Method
test_path_validation_reject_paths_not_starting_with_memories
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:551
Method
test_path_validation_reject_paths_not_starting_with_memories
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1189
Method
test_path_validation_reject_paths_trying_to_escape_memories
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:559
Method
test_path_validation_reject_paths_trying_to_escape_memories
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1197
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:756
Function
test_pause_turn_resumes_runner_async
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:721
Function
test_pause_turn_resumes_runner_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:686
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:2776
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:2749
Function
test_pending_compaction_is_skipped_when_max_iterations_ends_the_run_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:3038
Function
test_pep604_discriminated_union_in_optional_invalid_data
()
tests/test_models.py:909
Function
test_pep604_union_field_invalid_data
()
tests/test_models.py:885
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:2023
Method
test_per_request_mode_still_forces_after_invalidate
(self)
tests/lib/test_credentials.py:3757
Method
test_per_request_omit_keeps_the_client_default
( self, client: AnthropicBedrockMantle, respx_mock: MockRouter )
tests/lib/test_bedrock_mantle.py:913
Function
test_pickled_status_error_loads_as_its_own_class
(error_class: type[APIStatusError])
tests/test_exceptions.py:92
Method
test_pins_the_conversation_to_the_accepted_fallback_via_state
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback.py:158
Method
test_pins_the_conversation_to_the_accepted_fallback_via_state
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:770
Method
test_pins_the_state_to_the_hop_that_served
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:666
Method
test_platform_client_span
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:4890
Method
test_platform_client_spans_have_the_platform_in_their_scope
( self, platform: str, sync_client: Callable[..., Any], async_client: Callable
tests/test_open_telemetry.py:4859
Method
test_platform_clients_have_the_option
(self, spans: Spans)
tests/test_open_telemetry.py:4314
Method
test_platform_clients_read_the_environment_when_they_are_constructed
( self, registered: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4801
Method
test_platform_clients_replace_the_whole_option_too
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:4641
Method
test_platform_clients_without_spans_read_back_an_option_without_them
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4666
Method
test_platform_headers_do_not_spawn_subprocesses
(self, monkeypatch: pytest.MonkeyPatch)
tests/test_client.py:2942
Method
test_pointer_at_missing_profile_raises
(self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:4750
Method
test_pointer_at_missing_profile_raises_via_client
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:4756
Method
test_pointer_at_present_profile_loads_normally
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:4771
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:861
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:1064
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:749
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:907
Function
test_preserves_key_order
(send: Send)
tests/test_prepare.py:401
Method
test_primary_threads_tool_has_the_thread_id_that_the_sessions_log_gives
( self, spans: Spans, respx_mock: MockRouter, status_events_in: str )
tests/lib/tools/test_open_telemetry.py:2402
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:2672
Method
test_profile_env_triggers_tier1
ANTHROPIC_PROFILE set → tier 1 fires.
tests/lib/test_credentials.py:2169
Method
test_profile_from_active_config
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:1038
Method
test_profile_from_env
(self, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:1033
Method
test_profile_name_empty_rejected
(self)
tests/lib/test_credentials.py:895
Method
test_profile_name_leading_dot_rejected
(self)
tests/lib/test_credentials.py:891
Method
test_profile_name_path_traversal_rejected
(self)
tests/lib/test_credentials.py:887
Method
test_profile_name_with_dot_prefix_raises_anthropic_error
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:4032
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:3076
Method
test_profile_returns_true
(self)
tests/lib/test_aws_auth.py:74
← previous
next →
8,701–8,800 of 12,274, ranked by callers