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_invalid_http_client
(self)
tests/test_client.py:1172
Function
test_isinstance_check
(client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:219
Function
test_iso8601_datetime
()
tests/test_models.py:423
Function
test_iso8601_format
(use_async: bool)
tests/test_transform.py:190
Function
test_iterable_of_dictionaries
(use_async: bool)
tests/test_transform.py:374
Function
test_iterable_union_str
(use_async: bool)
tests/test_transform.py:397
Function
test_keyword_only_param
()
tests/test_required_args.py:30
Function
test_list_mismatched_type
()
tests/test_models.py:115
Function
test_list_nested_model
()
tests/test_models.py:54
Function
test_list_of_typeddict
(use_async: bool)
tests/test_transform.py:80
Function
test_list_of_unions
()
tests/test_models.py:305
Function
test_list_optional_items_nested_model
()
tests/test_models.py:95
Function
test_messages_retries
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:28
Method
test_messages_retries
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:24
Method
test_messages_retries
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:128
Function
test_messages_retries_async
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:63
Method
test_method_cancel
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:298
Method
test_method_cancel
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:657
Method
test_method_cancel
(self, client: Anthropic)
tests/api_resources/messages/test_batches.py:210
Method
test_method_cancel
(self, async_client: AsyncAnthropic)
tests/api_resources/messages/test_batches.py:465
Method
test_method_cancel_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:305
Method
test_method_cancel_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:664
Method
test_method_count_tokens
(self, client: Anthropic)
tests/api_resources/test_messages.py:263
Method
test_method_count_tokens
(self, async_client: AsyncAnthropic)
tests/api_resources/test_messages.py:608
Method
test_method_count_tokens
(self, client: Anthropic)
tests/api_resources/beta/test_messages.py:256
Method
test_method_count_tokens
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_messages.py:597
Method
test_method_count_tokens_with_all_params
(self, client: Anthropic)
tests/api_resources/test_messages.py:276
Method
test_method_count_tokens_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/test_messages.py:621
Method
test_method_count_tokens_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/test_messages.py:269
Method
test_method_count_tokens_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_messages.py:610
Method
test_method_create
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:28
Method
test_method_create
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:387
Method
test_method_create
(self, client: Anthropic)
tests/api_resources/messages/test_batches.py:27
Method
test_method_create
(self, async_client: AsyncAnthropic)
tests/api_resources/messages/test_batches.py:282
Method
test_method_create_overload_1
(self, client: Anthropic)
tests/api_resources/test_completions.py:21
Method
test_method_create_overload_1
(self, async_client: AsyncAnthropic)
tests/api_resources/test_completions.py:131
Method
test_method_create_overload_1
(self, client: Anthropic)
tests/api_resources/test_messages.py:25
Method
test_method_create_overload_1
(self, async_client: AsyncAnthropic)
tests/api_resources/test_messages.py:370
Method
test_method_create_overload_1
(self, client: Anthropic)
tests/api_resources/beta/test_messages.py:24
Method
test_method_create_overload_1
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_messages.py:365
Method
test_method_create_overload_2
(self, client: Anthropic)
tests/api_resources/test_completions.py:73
Method
test_method_create_overload_2
(self, async_client: AsyncAnthropic)
tests/api_resources/test_completions.py:183
Method
test_method_create_overload_2
(self, client: Anthropic)
tests/api_resources/test_messages.py:138
Method
test_method_create_overload_2
(self, async_client: AsyncAnthropic)
tests/api_resources/test_messages.py:483
Method
test_method_create_overload_2
(self, client: Anthropic)
tests/api_resources/beta/test_messages.py:139
Method
test_method_create_overload_2
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_messages.py:480
Method
test_method_create_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:49
Method
test_method_create_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:408
Method
test_method_create_with_all_params_overload_1
(self, client: Anthropic)
tests/api_resources/test_completions.py:30
Method
test_method_create_with_all_params_overload_1
(self, async_client: AsyncAnthropic)
tests/api_resources/test_completions.py:140
Method
test_method_create_with_all_params_overload_1
(self, client: Anthropic)
tests/api_resources/test_messages.py:39
Method
test_method_create_with_all_params_overload_1
(self, async_client: AsyncAnthropic)
tests/api_resources/test_messages.py:384
Method
test_method_create_with_all_params_overload_1
(self, client: Anthropic)
tests/api_resources/beta/test_messages.py:38
Method
test_method_create_with_all_params_overload_1
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_messages.py:379
Method
test_method_create_with_all_params_overload_2
(self, client: Anthropic)
tests/api_resources/test_completions.py:83
Method
test_method_create_with_all_params_overload_2
(self, async_client: AsyncAnthropic)
tests/api_resources/test_completions.py:193
Method
test_method_create_with_all_params_overload_2
(self, client: Anthropic)
tests/api_resources/test_messages.py:153
Method
test_method_create_with_all_params_overload_2
(self, async_client: AsyncAnthropic)
tests/api_resources/test_messages.py:498
Method
test_method_create_with_all_params_overload_2
(self, client: Anthropic)
tests/api_resources/beta/test_messages.py:154
Method
test_method_create_with_all_params_overload_2
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_messages.py:495
Method
test_method_delete
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:252
Method
test_method_delete
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:611
Method
test_method_delete
(self, client: Anthropic)
tests/api_resources/messages/test_batches.py:172
Method
test_method_delete
(self, async_client: AsyncAnthropic)
tests/api_resources/messages/test_batches.py:427
Method
test_method_delete_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:259
Method
test_method_delete_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:618
Method
test_method_list
(self, client: Anthropic)
tests/api_resources/test_models.py:60
Method
test_method_list
(self, async_client: AsyncAnthropic)
tests/api_resources/test_models.py:136
Method
test_method_list
(self, client: Anthropic)
tests/api_resources/beta/test_models.py:60
Method
test_method_list
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_models.py:136
Method
test_method_list
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:217
Method
test_method_list
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:576
Method
test_method_list
(self, client: Anthropic)
tests/api_resources/messages/test_batches.py:138
Method
test_method_list
(self, async_client: AsyncAnthropic)
tests/api_resources/messages/test_batches.py:393
Method
test_method_list_with_all_params
(self, client: Anthropic)
tests/api_resources/test_models.py:65
Method
test_method_list_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/test_models.py:141
Method
test_method_list_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/test_models.py:65
Method
test_method_list_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_models.py:141
Method
test_method_list_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:222
Method
test_method_list_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:581
Method
test_method_list_with_all_params
(self, client: Anthropic)
tests/api_resources/messages/test_batches.py:143
Method
test_method_list_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/messages/test_batches.py:398
Method
test_method_results
(self, client: Anthropic, respx_mock: MockRouter)
tests/api_resources/beta/messages/test_batches.py:345
Method
test_method_results
(self, async_client: AsyncAnthropic, respx_mock: MockRouter)
tests/api_resources/beta/messages/test_batches.py:704
Method
test_method_results
(self, client: Anthropic, respx_mock: MockRouter)
tests/api_resources/messages/test_batches.py:249
Method
test_method_results
(self, async_client: AsyncAnthropic, respx_mock: MockRouter)
tests/api_resources/messages/test_batches.py:504
Method
test_method_retrieve
(self, client: Anthropic)
tests/api_resources/test_models.py:22
Method
test_method_retrieve
(self, async_client: AsyncAnthropic)
tests/api_resources/test_models.py:98
Method
test_method_retrieve
(self, client: Anthropic)
tests/api_resources/beta/test_models.py:22
Method
test_method_retrieve
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_models.py:98
Method
test_method_retrieve
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:171
Method
test_method_retrieve
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:530
Method
test_method_retrieve
(self, client: Anthropic)
tests/api_resources/messages/test_batches.py:100
Method
test_method_retrieve
(self, async_client: AsyncAnthropic)
tests/api_resources/messages/test_batches.py:355
Method
test_method_retrieve_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/messages/test_batches.py:178
Method
test_method_retrieve_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/messages/test_batches.py:537
Function
test_multi_byte_character_multiple_chunks
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, )
tests/test_streaming.py:197
Function
test_multi_byte_character_multiple_chunks
( sync: bool, )
tests/decoders/test_jsonl.py:45
Method
test_multipart_repeating_array
(self, client: Anthropic)
tests/test_client.py:470
Method
test_multipart_repeating_array
(self, async_client: AsyncAnthropic)
tests/test_client.py:1335
← previous
next →
801–900 of 1,183, ranked by callers