Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
14,068 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
14,068
◇
Types & classes
4,501
↳
Endpoints
96
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:196
Method
test_path_params_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/federation/test_rules.py:456
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:928
Function
test_pep604_union_field_invalid_data
()
tests/test_models.py:904
Method
test_per_call_header_wins_over_client_header
(self, respx_mock: MockRouter)
tests/test_middleware.py:857
Method
test_per_call_header_wins_over_client_header
(self, respx_mock: MockRouter)
tests/test_middleware.py:1708
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:2028
Method
test_per_request_mode_still_forces_after_invalidate
(self)
tests/lib/test_credentials.py:4238
Method
test_per_request_omit_keeps_the_client_default
( self, client: AnthropicBedrockMantle, respx_mock: MockRouter )
tests/lib/test_bedrock_mantle.py:913
Function
test_periodic_sync_waits_for_the_upload_after_an_idle
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:451
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:668
Method
test_platform_client_span
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:4891
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:4860
Method
test_platform_clients_have_the_option
(self, spans: Spans)
tests/test_open_telemetry.py:4315
Method
test_platform_clients_read_the_environment_when_they_are_constructed
( self, registered: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4802
Method
test_platform_clients_replace_the_whole_option_too
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:4642
Method
test_platform_clients_without_spans_read_back_an_option_without_them
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4667
Method
test_platform_headers_do_not_spawn_subprocesses
(self, monkeypatch: pytest.MonkeyPatch)
tests/test_client.py:3384
Method
test_pointer_at_missing_profile_raises
(self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:5231
Method
test_pointer_at_missing_profile_raises_via_client
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:5237
Method
test_pointer_at_present_profile_loads_normally
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:5252
Function
test_poll_backoff_starts_over_after_a_response
(sync: bool, items: list[str], times: list[float])
tests/lib/environments/test_poller.py:67
Function
test_poll_finds_the_item
(actions: list[Step], found: list[bool])
tests/lib/environments/test_fake_work_api.py:41
Function
test_poll_has_the_given_parameters
(sync: bool, options: dict[str, Any], params: dict[str, str])
tests/lib/environments/test_poller.py:99
Function
test_poll_names_the_given_worker
(sync: bool)
tests/lib/environments/test_poller.py:105
Function
test_poll_that_cannot_succeed_raises
(sync: bool, fault: Step, error: type[Exception], kinds: list[str])
tests/lib/environments/test_poller.py:84
Function
test_poller_and_worker_methods_are_only_on_the_async_client
(sync: bool)
tests/lib/environments/test_poller.py:287
Function
test_polling_continues_after_a_stop_that_never_succeeds
(sync: bool, fault: Fault)
tests/lib/environments/test_poller.py:220
Function
test_polling_uses_the_environment_key_and_the_item_its_token_and_each_request_names_its_helper
()
tests/lib/environments/test_worker.py:795
Function
test_polls_back_off_while_acks_fail
(sync: bool)
tests/lib/environments/test_poller.py:143
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_post_gets_30_seconds_after_a_tool_that_returned_late_to_a_cancelled_consumer
( failures: int, exited: float )
tests/lib/tools/test_session_runner.py:1330
Function
test_post_refused_for_another_reason_is_not_repeated_and_the_next_call_runs
(status: int)
tests/lib/tools/test_session_runner.py:1214
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:908
Function
test_preserves_key_order
(send: Send)
tests/test_prepare.py:401
Function
test_primary_thread_call_with_no_permission_runs_when_an_idle_lists_it
( before: list[Step], idle: Step, start: float )
tests/lib/tools/test_session_runner.py:478
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:2768
Method
test_profile_env_triggers_tier1
ANTHROPIC_PROFILE set → tier 1 fires.
tests/lib/test_credentials.py:2174
Method
test_profile_from_active_config
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:1043
Method
test_profile_from_env
(self, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:1038
Method
test_profile_name_empty_rejected
(self)
tests/lib/test_credentials.py:900
Method
test_profile_name_leading_dot_rejected
(self)
tests/lib/test_credentials.py:896
Method
test_profile_name_path_traversal_rejected
(self)
tests/lib/test_credentials.py:892
Method
test_profile_name_with_dot_prefix_raises_anthropic_error
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:4513
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:3357
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:1488
Method
test_programmatic_tool_call
(self, snapshot_client: Anthropic)
tests/lib/tools/test_runners.py:496
Method
test_project_backfilled_from_adc_for_organization_route
( self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_google_cloud.py:1638
← previous
next →
10,001–10,100 of 14,068, ranked by callers