Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
1,183 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
1,183
◇
Types & classes
417
↳
Endpoints
7
Method
test_raw_response_list
(self, async_client: AsyncAnthropic)
tests/api_resources/messages/test_batches.py:407
Method
test_raw_response_retrieve
(self, client: Anthropic)
tests/api_resources/test_models.py:29
Method
test_raw_response_retrieve
(self, async_client: AsyncAnthropic)
tests/api_resources/test_models.py:105
Method
test_raw_response_retrieve
(self, client: Anthropic)
tests/api_resources/beta/test_models.py:29
Method
test_raw_response_retrieve
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_models.py:105
Method
test_raw_response_retrieve
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:186
Method
test_raw_response_retrieve
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:545
Method
test_raw_response_retrieve
(self, client: Anthropic)
tests/api_resources/messages/test_batches.py:107
Method
test_raw_response_retrieve
(self, async_client: AsyncAnthropic)
tests/api_resources/messages/test_batches.py:362
Method
test_received_text_for_expected_json
(self, respx_mock: MockRouter)
tests/test_client.py:685
Method
test_received_text_for_expected_json
(self, respx_mock: MockRouter)
tests/test_client.py:1564
Function
test_recursive_proxy
()
tests/test_utils/test_proxy.py:17
Function
test_recursive_typeddict
(use_async: bool)
tests/test_transform.py:65
Function
test_removes_files_from_input
()
tests/test_extract_files.py:11
Function
test_repr
()
tests/test_models.py:183
Function
test_repr_nested_model
()
tests/test_models.py:189
Method
test_request_extra_headers
(self)
tests/test_client.py:407
Method
test_request_extra_headers
(self)
tests/test_client.py:1272
Method
test_request_extra_json
(self)
tests/test_client.py:373
Method
test_request_extra_json
(self)
tests/test_client.py:1238
Method
test_request_extra_query
(self)
tests/test_client.py:429
Method
test_request_extra_query
(self)
tests/test_client.py:1294
Method
test_request_timeout
(self)
tests/test_client.py:256
Method
test_request_timeout
(self)
tests/test_client.py:1121
Function
test_required_iso8601_format
(use_async: bool)
tests/test_transform.py:219
Function
test_response_basemodel_request_id
(client: Anthropic)
tests/test_legacy_response.py:94
Function
test_response_basemodel_request_id
(client: Anthropic)
tests/test_response.py:159
Function
test_response_parse_annotated_type
(client: Anthropic)
tests/test_legacy_response.py:114
Function
test_response_parse_annotated_type
(client: Anthropic)
tests/test_response.py:200
Function
test_response_parse_bool
(client: Anthropic, content: str, expected: bool)
tests/test_legacy_response.py:46
Function
test_response_parse_bool
(client: Anthropic, content: str, expected: bool)
tests/test_response.py:245
Function
test_response_parse_custom_model
(client: Anthropic)
tests/test_legacy_response.py:79
Function
test_response_parse_custom_model
(client: Anthropic)
tests/test_response.py:128
Function
test_response_parse_custom_stream
(client: Anthropic)
tests/test_legacy_response.py:60
Function
test_response_parse_custom_stream
(client: Anthropic)
tests/test_response.py:94
Function
test_response_parse_expect_model_union_non_json_content
(client: Anthropic)
tests/test_legacy_response.py:136
Function
test_response_parse_expect_model_union_non_json_content
(client: Anthropic)
tests/test_response.py:289
Function
test_response_parse_mismatched_basemodel
(client: Anthropic)
tests/test_legacy_response.py:18
Function
test_response_parse_mismatched_basemodel
(client: Anthropic)
tests/test_response.py:59
Method
test_retries_taken
( self, client: Anthropic, failures_before_success: int, failure_mode: Literal
tests/test_client.py:789
Method
test_retries_taken
( self, async_client: AsyncAnthropic, failures_before_success: int, failure_mo
tests/test_client.py:1670
Method
test_retries_taken_new_response_class
( self, client: Anthropic, failures_before_success: int, respx_mock: MockRouter )
tests/test_client.py:894
Method
test_retries_taken_new_response_class
( self, async_client: AsyncAnthropic, failures_before_success: int, respx_mock: MockRouter )
tests/test_client.py:1778
Method
test_retrying_status_errors_doesnt_leak
(self, respx_mock: MockRouter)
tests/test_client.py:760
Method
test_retrying_status_errors_doesnt_leak
(self, respx_mock: MockRouter)
tests/test_client.py:1640
Method
test_retrying_timeout_errors_doesnt_leak
(self, respx_mock: MockRouter)
tests/test_client.py:733
Method
test_retrying_timeout_errors_doesnt_leak
(self, respx_mock: MockRouter)
tests/test_client.py:1613
Function
test_simple_dict
()
tests/test_deepcopy.py:9
Function
test_simple_list
()
tests/test_deepcopy.py:31
Function
test_special_new_line_character
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, )
tests/test_streaming.py:166
Function
test_stream_method_definition_in_sync
(sync: bool)
tests/lib/streaming/test_messages.py:207
Method
test_streaming_response_cancel
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:324
Method
test_streaming_response_cancel
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:683
Method
test_streaming_response_cancel
(self, client: Anthropic)
tests/api_resources/messages/test_batches.py:228
Method
test_streaming_response_cancel
(self, async_client: AsyncAnthropic)
tests/api_resources/messages/test_batches.py:483
Method
test_streaming_response_count_tokens
(self, client: Anthropic)
tests/api_resources/test_messages.py:347
Method
test_streaming_response_count_tokens
(self, async_client: AsyncAnthropic)
tests/api_resources/test_messages.py:692
Method
test_streaming_response_count_tokens
(self, client: Anthropic)
tests/api_resources/beta/test_messages.py:342
Method
test_streaming_response_count_tokens
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_messages.py:683
Method
test_streaming_response_create
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:144
Method
test_streaming_response_create
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:503
Method
test_streaming_response_create
(self, client: Anthropic)
tests/api_resources/messages/test_batches.py:73
Method
test_streaming_response_create
(self, async_client: AsyncAnthropic)
tests/api_resources/messages/test_batches.py:328
Method
test_streaming_response_create_overload_1
(self, client: Anthropic)
tests/api_resources/test_completions.py:58
Method
test_streaming_response_create_overload_1
(self, async_client: AsyncAnthropic)
tests/api_resources/test_completions.py:168
Method
test_streaming_response_create_overload_1
(self, client: Anthropic)
tests/api_resources/test_messages.py:118
Method
test_streaming_response_create_overload_1
(self, async_client: AsyncAnthropic)
tests/api_resources/test_messages.py:463
Method
test_streaming_response_create_overload_1
(self, client: Anthropic)
tests/api_resources/beta/test_messages.py:119
Method
test_streaming_response_create_overload_1
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_messages.py:460
Method
test_streaming_response_create_overload_2
(self, client: Anthropic)
tests/api_resources/test_completions.py:111
Method
test_streaming_response_create_overload_2
(self, async_client: AsyncAnthropic)
tests/api_resources/test_completions.py:221
Method
test_streaming_response_create_overload_2
(self, client: Anthropic)
tests/api_resources/test_messages.py:232
Method
test_streaming_response_create_overload_2
(self, async_client: AsyncAnthropic)
tests/api_resources/test_messages.py:577
Method
test_streaming_response_create_overload_2
(self, client: Anthropic)
tests/api_resources/beta/test_messages.py:235
Method
test_streaming_response_create_overload_2
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_messages.py:576
Method
test_streaming_response_delete
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:278
Method
test_streaming_response_delete
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:637
Method
test_streaming_response_delete
(self, client: Anthropic)
tests/api_resources/messages/test_batches.py:190
Method
test_streaming_response_delete
(self, async_client: AsyncAnthropic)
tests/api_resources/messages/test_batches.py:445
Method
test_streaming_response_list
(self, client: Anthropic)
tests/api_resources/test_models.py:83
Method
test_streaming_response_list
(self, async_client: AsyncAnthropic)
tests/api_resources/test_models.py:159
Method
test_streaming_response_list
(self, client: Anthropic)
tests/api_resources/beta/test_models.py:83
Method
test_streaming_response_list
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_models.py:159
Method
test_streaming_response_list
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:241
Method
test_streaming_response_list
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:600
Method
test_streaming_response_list
(self, client: Anthropic)
tests/api_resources/messages/test_batches.py:161
Method
test_streaming_response_list
(self, async_client: AsyncAnthropic)
tests/api_resources/messages/test_batches.py:416
Method
test_streaming_response_retrieve
(self, client: Anthropic)
tests/api_resources/test_models.py:40
Method
test_streaming_response_retrieve
(self, async_client: AsyncAnthropic)
tests/api_resources/test_models.py:116
Method
test_streaming_response_retrieve
(self, client: Anthropic)
tests/api_resources/beta/test_models.py:40
Method
test_streaming_response_retrieve
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_models.py:116
Method
test_streaming_response_retrieve
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:197
Method
test_streaming_response_retrieve
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:556
Method
test_streaming_response_retrieve
(self, client: Anthropic)
tests/api_resources/messages/test_batches.py:118
Method
test_streaming_response_retrieve
(self, async_client: AsyncAnthropic)
tests/api_resources/messages/test_batches.py:373
Function
test_strict_validation_unknown_fields
()
tests/test_models.py:160
Function
test_string_not_allowed
()
tests/test_files.py:45
Function
test_to_dict
()
tests/test_models.py:504
Function
test_to_json
()
tests/test_models.py:572
Function
test_too_many_positional_params
()
tests/test_required_args.py:8
← previous
next →
1,001–1,100 of 1,183, ranked by callers