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_method_upload_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/test_files.py:238
Method
test_method_upload_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_files.py:488
Method
test_method_validate
(self, client: Anthropic)
tests/api_resources/beta/organization/test_external_keys.py:240
Method
test_method_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_external_keys.py:500
Method
test_method_validate
(self, client: Anthropic)
tests/api_resources/organization/test_external_keys.py:238
Method
test_method_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_external_keys.py:496
Method
test_method_validate_archive
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:158
Method
test_method_validate_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:378
Method
test_method_validate_archive_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:165
Method
test_method_validate_archive_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:385
Method
test_method_validate_repository
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:197
Method
test_method_validate_repository
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:417
Method
test_method_validate_repository_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:204
Method
test_method_validate_repository_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:424
Method
test_mid_loop_refusal_ending_in_thinking_strips_the_trailing_thinking_block
( self, respx_mock: MockRouter )
tests/lib/test_refusal_fallback_streaming.py:1468
Method
test_middleware_error_is_not_retried
(self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/test_middleware.py:823
Method
test_middleware_error_is_not_retried
( self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_middleware.py:1803
Method
test_middleware_exception_propagates
(self, respx_mock: MockRouter)
tests/test_middleware.py:1307
Method
test_middleware_exception_propagates
(self, respx_mock: MockRouter)
tests/test_middleware.py:1733
Method
test_middleware_iterator_argument_runs_middleware
(self, respx_mock: MockRouter)
tests/test_middleware.py:1193
Method
test_middleware_iterator_argument_runs_middleware
(self, respx_mock: MockRouter)
tests/test_middleware.py:1715
Method
test_middleware_ordering
(self, respx_mock: MockRouter)
tests/test_middleware.py:672
Method
test_middleware_ordering
(self, respx_mock: MockRouter)
tests/test_middleware.py:1432
Method
test_middleware_ordering_across_sequential_requests
(self, respx_mock: MockRouter)
tests/test_middleware.py:1170
Method
test_middleware_ordering_across_sequential_requests
(self, respx_mock: MockRouter)
tests/test_middleware.py:1692
Method
test_middleware_runs_per_attempt
(self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/test_middleware.py:794
Method
test_middleware_runs_per_attempt
(self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/test_middleware.py:1748
Method
test_middleware_sees_prepared_body
(self, respx_mock: MockRouter, tmp_path: Path)
tests/test_middleware.py:625
Method
test_middleware_sees_prepared_body
(self, respx_mock: MockRouter, tmp_path: Path)
tests/test_middleware.py:1385
Method
test_middleware_sees_request_and_returns_response
(self, respx_mock: MockRouter)
tests/test_middleware.py:592
Method
test_middleware_sees_request_and_returns_response
(self, respx_mock: MockRouter)
tests/test_middleware.py:1356
Method
test_missing_access_token_does_not_retain_refresh_token
A credentials file that has a refresh_token but no access_token raises before any exchange; the on-disk dict must not survive raw in f
tests/lib/test_credentials.py:4643
Method
test_missing_authentication
(self)
tests/lib/test_credentials.py:3171
Method
test_missing_config_file
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:767
Method
test_missing_credentials_error
Test error raised when no credentials are provided.
tests/lib/test_azure.py:55
Function
test_missing_kwarg_raises_key_error
()
tests/test_utils/test_path.py:63
Method
test_missing_project_defers_without_construct_error
(self)
tests/lib/test_google_cloud.py:97
Method
test_missing_project_defers_without_construct_error
(self)
tests/lib/test_google_cloud.py:1086
Method
test_missing_required_fields
(self)
tests/lib/test_credentials.py:3175
Method
test_missing_resource_error
Test error raised when neither resource nor base_url is provided.
tests/lib/test_azure.py:62
Method
test_mkdir_parents_not_world_writable_under_permissive_umask
(self)
tests/lib/tools/memory_tools/test_filesystem.py:55
Method
test_mkdir_parents_not_world_writable_under_permissive_umask
(self)
tests/lib/tools/memory_tools/test_filesystem.py:580
Method
test_models_not_available
(self)
tests/lib/test_bedrock_mantle.py:140
Function
test_models_with_unresolved_forward_references
(send: Send)
tests/test_prepare.py:480
Function
test_multi_byte_character_multiple_chunks
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, )
tests/test_streaming.py:200
Function
test_multi_byte_character_multiple_chunks
( sync: bool, )
tests/decoders/test_jsonl.py:46
Method
test_multipart_content_type_case_insensitive
(self, client: Anthropic)
tests/test_client.py:527
Method
test_multipart_content_type_case_insensitive
(self, async_client: AsyncAnthropic)
tests/test_client.py:1826
Method
test_multipart_media_type_is_matched_case_insensitively
(self)
tests/test_header_case_sensitivity.py:287
Method
test_multipart_repeating_array
(self, client: Anthropic)
tests/test_client.py:858
Method
test_multipart_repeating_array
(self, async_client: AsyncAnthropic)
tests/test_client.py:2159
Function
test_multiple_data_lines
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:151
Function
test_multiple_data_lines_with_empty_line
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:112
Function
test_multiple_events
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:66
Function
test_multiple_events_with_data
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:88
Function
test_multiple_files
()
tests/test_extract_files.py:29
Function
test_multiple_params
()
tests/test_required_args.py:43
Function
test_multiple_params_multiple_variants
()
tests/test_required_args.py:89
Method
test_multiple_paths
(self)
tests/test_files.py:154
Function
test_multiple_variants
()
tests/test_required_args.py:71
Function
test_navigate_and_screenshot_results_render_from_their_models
()
tests/lib/tools/toolsets/test_pipeline.py:785
Function
test_navigate_line_folds_control_characters_and_omits_absent_fields
()
tests/lib/tools/toolsets/test_pipeline.py:78
Function
test_navigate_renders_one_line_and_attaches_the_browser_state_block
()
tests/lib/tools/toolsets/test_pipeline.py:59
Method
test_neither_provided_passes
(self)
tests/lib/test_aws_auth.py:25
Method
test_nested_array_path_copies_list_and_elements
(self)
tests/test_files.py:137
Function
test_nested_brackets
()
tests/test_qs.py:49
Function
test_nested_dictionary_model
()
tests/test_models.py:135
Function
test_nested_discriminated_union
()
tests/test_models.py:974
Function
test_nested_dotted
(method: str)
tests/test_qs.py:37
Function
test_nested_union_invalid_data
()
tests/test_models.py:283
Function
test_nested_union_multiple_variants
()
tests/test_models.py:255
Function
test_nested_union_of_mixed_types
()
tests/test_models.py:237
Function
test_nested_union_of_models
()
tests/test_models.py:222
Method
test_nesting_different_states_restores_the_outer_pin
(self)
tests/lib/test_refusal_fallback.py:767
Function
test_never_runs_the_call_that_was_cut_off_by
(setup: SetupFactory, cut_off_reply: Callable[[], Reply])
tests/lib/tools/test_runner_eager_tools.py:675
Function
test_new_event_resets_idle_grace
()
tests/lib/tools/test_session_runner.py:1275
Function
test_new_index_inserts_the_fragment_as_a_fresh_block
()
tests/lib/sessions/test_accumulate.py:72
Function
test_new_lines_in_json
( sync: bool, )
tests/decoders/test_jsonl.py:34
Method
test_next_force_preserved_on_provider_failure
If invalidate() set the force flag and the provider then raises, the flag must NOT be consumed — a subsequent retry must still see for
tests/lib/test_credentials.py:1923
Method
test_next_force_preserved_on_provider_failure
(self)
tests/lib/test_credentials.py:3603
Method
test_next_force_preserved_when_provider_returns_non_token
A rejected provider return does not consume the force flag set by invalidate().
tests/lib/test_credentials.py:1946
Method
test_next_force_preserved_when_provider_returns_non_token
(self)
tests/lib/test_credentials.py:3619
Function
test_next_sequential_index_inserts
()
tests/lib/sessions/test_accumulate.py:107
Function
test_no_api_key_leak
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:842
Function
test_no_api_key_leak_async
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:862
Method
test_no_args_no_env_defaults_to_sigv4
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws_auth.py:97
Function
test_no_auth_token_leak
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:880
Function
test_no_auth_token_leak_async
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:899
Function
test_no_environment_key_threads_none_to_scoped_client
Without an environment key the runner still asks `_scoped_client` for a request client — passing `None` so the factory returns the parent client
tests/lib/tools/test_session_runner.py:1621
Method
test_no_expiry_never_refreshes
(self)
tests/lib/test_credentials.py:1579
Method
test_no_middleware_behavior_unchanged
(self, respx_mock: MockRouter)
tests/test_middleware.py:1322
Method
test_no_middleware_behavior_unchanged
(self, respx_mock: MockRouter)
tests/test_middleware.py:1859
Function
test_no_numeric_bound_is_applied_beyond_the_generated_types
()
tests/lib/tools/toolsets/test_computer_pipeline.py:194
Method
test_no_retry_on_non_401_error
Non-401 errors from the provider are not retried.
tests/lib/test_credentials.py:1685
Method
test_no_spurious_env_shadow_warning
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:202
Method
test_no_supported_mime_raises
(self)
tests/lib/tools/test_mcp_tool.py:238
Method
test_no_warning_when_output_format_not_provided
Verify no deprecation warning when output_format is not used.
tests/api_resources/beta/test_output_format_conversion.py:141
Method
test_no_warning_when_using_output_config
Verify no deprecation warning when using output_config.format directly.
tests/api_resources/beta/test_output_format_conversion.py:167
Method
test_no_x_api_key_with_azure_ad_token_provider
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_azure.py:189
Method
test_non_401_omits_hint
The hint is 401-specific; a 5xx or 400 shouldn't suggest a config change.
tests/lib/test_credentials.py:1326
← previous
next →
6,201–6,300 of 9,455, ranked by callers