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
Function
test_holds_a_call_that_is_deferred
(setup: SetupFactory, at: str)
tests/lib/tools/test_runner_eager_tools.py:406
Function
test_holds_a_call_that_the_caller_defers_until_the_loop_body_ends
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:82
Method
test_http_4xx_does_not_retain_assertion
(self)
tests/lib/test_credentials.py:5370
Method
test_http_base_url_error_leaves_out_password_from_any_source
( self, source: str, client_cls: type[Anthropic] | type[AsyncAnthropic], clean
tests/lib/test_credentials.py:2855
Method
test_http_base_url_error_leaves_out_url_with_password
( self, base_url: str, shown: str, auth_type: str, client_cls: type[Anthropic] | type[AsyncAnthropic]
tests/lib/test_credentials.py:2841
Method
test_http_base_url_in_config_file_raises_anthropic_error
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:4530
Method
test_http_base_url_on_workload_provider_raises_anthropic_error
(self)
tests/lib/test_credentials.py:4521
Method
test_http_base_url_rejected
(self)
tests/lib/test_credentials.py:3633
Method
test_http_base_url_that_only_starts_like_loopback_gets_no_request
( self, respx_mock: MockRouter, base_url: str )
tests/lib/test_credentials.py:2905
Method
test_http_base_url_that_only_starts_like_loopback_rejected
( self, base_url: str, auth_type: str, client_cls: type[Anthropic] | type[AsyncAnthropic] )
tests/lib/test_credentials.py:2895
Method
test_http_client_timeout_option
(self)
tests/test_client.py:428
Method
test_http_client_timeout_option
(self)
tests/test_client.py:2174
Method
test_http_loopback_base_url_gets_the_exchange
(self, respx_mock: MockRouter, base_url: str, host: str)
tests/lib/test_credentials.py:2915
Method
test_httpx_objects_rejected
(self, client: Anthropic)
tests/test_client.py:564
Method
test_httpx_objects_rejected
(self, async_client: AsyncAnthropic)
tests/test_client.py:2312
Function
test_idempotent_and_does_not_mutate_input
( send: Send, make_body: Callable[[], object], sent: object, monkeypatch: pytest.MonkeyPatch )
tests/test_prepare.py:714
Method
test_identity_token_file_binary_content_raises_anthropic_error
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:4569
Method
test_identity_token_file_directory_raises_anthropic_error
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:4562
Method
test_identity_token_file_empty_raises_anthropic_error
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:4577
Method
test_identity_token_file_permission_error_raises_anthropic_error
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:4546
Method
test_identity_token_provider_override
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:3452
Function
test_idle_flush_is_skipped_while_a_call_is_running
(notes: Path, reconnect: bool)
tests/lib/tools/memory_sync/test_e2e_memory.py:419
Function
test_idle_poller_logs_once_and_then_every_5_minutes
(sync: bool, caplog: pytest.LogCaptureFixture)
tests/lib/environments/test_poller.py:121
Function
test_idle_stop_waits_for_a_connection_that_succeeds
(outage: list[Step], ended: float)
tests/lib/tools/test_session_runner.py:1892
Method
test_ids_in_the_path
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:7319
Function
test_ignores_incorrect_paths
( query: dict[str, object], paths: Sequence[Sequence[str]], expected: list[tuple[str, FileTypes]],
tests/test_extract_files.py:65
Method
test_image_content_gif
(self)
tests/lib/tools/test_mcp_tool.py:104
Method
test_image_content_jpeg
(self)
tests/lib/tools/test_mcp_tool.py:97
Method
test_image_content_png
(self)
tests/lib/tools/test_mcp_tool.py:89
Method
test_image_content_webp
(self)
tests/lib/tools/test_mcp_tool.py:108
Function
test_image_media_types_track_the_generated_image_source
()
tests/lib/tools/toolsets/test_computer_surface.py:99
Method
test_image_resource
(self)
tests/lib/tools/test_mcp_tool.py:230
Method
test_image_unsupported_mime_type
(self)
tests/lib/tools/test_mcp_tool.py:112
Method
test_includes_query_params_in_signing
URL query params must be part of the signed request.
tests/lib/test_aws_auth.py:541
Method
test_includes_security_token_header
(self)
tests/lib/test_aws_auth.py:490
Method
test_incomplete_response
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:902
Function
test_init_api_key_mode
()
tests/lib/test_aws.py:26
Function
test_init_async_api_key_mode
()
tests/lib/test_aws.py:75
Function
test_init_async_requires_workspace_id
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:91
Function
test_init_async_sigv4
()
tests/lib/test_aws.py:81
Function
test_init_requires_region_for_sigv4
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:57
Function
test_init_requires_workspace_id
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:63
Function
test_init_sigv4_default_credential_chain
()
tests/lib/test_aws.py:51
Function
test_init_sigv4_explicit_creds
()
tests/lib/test_aws.py:32
Function
test_init_sigv4_profile
()
tests/lib/test_aws.py:45
Method
test_init_with_token_provider_and_base_url
(self)
tests/lib/test_google_cloud.py:117
Function
test_init_workspace_id_from_env
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:69
Method
test_initialization_from_environment_variables
Test client initialization falls back to environment variables.
tests/lib/test_azure.py:53
Method
test_initialization_from_environment_variables
Test async client initialization falls back to environment variables.
tests/lib/test_azure.py:153
Method
test_initialization_with_azure_ad_token_provider
Test client initialization with Azure AD token provider.
tests/lib/test_azure.py:39
Method
test_initialization_with_base_url
Test client initialization with base_url instead of resource.
tests/lib/test_azure.py:30
Method
test_inner_middleware_wins_whatever_the_header_casing
(self, respx_mock: MockRouter)
tests/test_middleware.py:898
Method
test_inner_middleware_wins_whatever_the_header_casing
(self, respx_mock: MockRouter)
tests/test_middleware.py:1749
Method
test_input_messages_under_the_bound_are_the_json_of_the_whole_list
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6453
Method
test_input_transformations_propagated
( self, respx_mock: MockRouter, fixture: str, expected: List[Dict[str, str]] )
tests/lib/streaming/test_beta_messages.py:699
Method
test_input_transformations_propagated
( self, respx_mock: MockRouter, fixture: str, expected: List[Dict[str, str]] )
tests/lib/streaming/test_beta_messages.py:1038
Function
test_inputs_are_parsed_into_the_generated_models_and_undeclared_keys_are_kept
()
tests/lib/tools/toolsets/test_computer_pipeline.py:148
Method
test_insert
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:320
Method
test_insert
(self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:946
Method
test_insert_at_beginning_of_file
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:337
Method
test_insert_at_beginning_of_file
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:963
Method
test_insert_at_end_of_file
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:353
Method
test_insert_at_end_of_file
(self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:981
Method
test_insert_error_for_invalid_insert_line
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:418
Method
test_insert_error_for_invalid_insert_line
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1054
Method
test_insert_error_for_non_existent_file
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:406
Method
test_insert_error_for_non_existent_file
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1042
Method
test_insert_preserves_crlf_line_endings
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:393
Method
test_insert_preserves_crlf_line_endings
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1027
Function
test_int_to_float_safe_conversion
()
tests/test_models.py:487
Function
test_integer_schema_with_min_max_exclusive
()
tests/lib/_parse/test_transform.py:278
Function
test_interpolation
(template: str, kwargs: dict[str, Any], expected: str)
tests/test_utils/test_path.py:63
Function
test_interrupt_of_a_subagent_that_requires_action_lists_its_resolved_call_before_the_turn_ends
()
tests/lib/tools/test_fake_sessions_api.py:132
Function
test_interrupted_command_stops_and_later_commands_do_not_run
(shell: list[Any], tmp_path: Path)
tests/lib/tools/test_session_runner.py:339
Function
test_interrupted_download_removes_the_folder_and_is_not_a_failure
(notes: Path, ending: Step)
tests/lib/tools/memory_sync/test_e2e_memory.py:670
Function
test_interval_below_the_minimum_is_rejected
(interval: float)
tests/lib/tools/memory_sync/test_e2e_memory.py:719
Method
test_invalid_expires_in_does_not_retain_minted_token
(self, expires_in: str)
tests/lib/test_credentials.py:5377
Method
test_invalid_http_client
(self)
tests/test_client.py:554
Method
test_invalid_http_client
(self)
tests/test_client.py:2302
Method
test_invalid_json_credentials_does_not_retain_raw_text
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:5578
Method
test_invalid_profile_name_raises_anthropic_error
( self, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:4505
Method
test_invalidate
(self)
tests/lib/test_credentials.py:1723
Method
test_invalidate_forces_provider_refresh
After invalidate(), the next provider call receives force_refresh=True so providers with on-disk caches bypass their freshness short-c
tests/lib/test_credentials.py:1916
Method
test_is_content_query
(self, query: str, content_names: tuple[str, ...], content: bool)
tests/test_open_telemetry.py:3370
Method
test_is_resent_once_without_speed
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture, status: int )
tests/lib/test_refusal_fallback.py:844
Method
test_is_resent_once_without_speed
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture, status: int )
tests/lib/test_refusal_fallback.py:941
Method
test_is_resent_once_without_speed
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture, status: int )
tests/lib/test_refusal_fallback_streaming.py:1650
Method
test_is_resent_once_without_speed
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture, status: int )
tests/lib/test_refusal_fallback_streaming.py:1901
Function
test_isinstance_check
(client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:423
Function
test_isinstance_does_not_error
()
tests/test_utils/test_proxy.py:26
Function
test_iso8601_datetime
()
tests/test_models.py:457
Function
test_item_fails_and_does_not_change_the_folder_when_one_is_already_there
( notes: Path, caplog: pytest.LogCaptureFixture )
tests/lib/tools/memory_sync/test_e2e_memory.py:695
Function
test_item_fails_before_skills_are_downloaded_when_its_memory_cannot_be
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:686
Function
test_item_fails_when_it_has_memory_and_no_token
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:679
Function
test_item_is_claimed_served_and_force_stopped_when_the_session_is_idle
(variant: Variant)
tests/lib/environments/test_worker.py:94
Function
test_item_is_dropped_when_the_api_refuses_the_repeat_of_a_heartbeat_whose_response_was_lost
(fault: Fault)
tests/lib/environments/test_worker.py:336
Function
test_item_is_force_stopped_after_the_loop_body
(sync: bool)
tests/lib/environments/test_poller.py:178
Function
test_item_is_not_stopped_when_a_heartbeat_is_refused
(status: int)
tests/lib/environments/test_worker.py:464
Function
test_item_is_not_stopped_when_it_was_queued_again
(variant: Variant)
tests/lib/environments/test_worker.py:311
Function
test_item_is_not_stopped_when_the_heartbeat_in_flight_at_a_cancel_gets_a_412
()
tests/lib/environments/test_worker.py:518
← previous
next →
7,301–7,400 of 14,068, ranked by callers