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
Function
test_async_response_parse_mismatched_basemodel
(async_client: AsyncAnthropic)
tests/test_response.py:77
Function
test_async_supports_anyio_path
()
tests/test_files.py:32
Function
test_async_tuple_input
()
tests/test_files.py:39
Function
test_base64_file_input
(use_async: bool)
tests/test_transform.py:410
Method
test_base_url_env
(self)
tests/test_client.py:564
Method
test_base_url_env
(self)
tests/test_client.py:1431
Method
test_base_url_no_trailing_slash
(self, client: Anthropic)
tests/test_client.py:605
Method
test_base_url_no_trailing_slash
(self, client: AsyncAnthropic)
tests/test_client.py:1476
Method
test_base_url_setter
(self)
tests/test_client.py:556
Method
test_base_url_setter
(self)
tests/test_client.py:1421
Method
test_base_url_trailing_slash
(self, client: Anthropic)
tests/test_client.py:582
Method
test_base_url_trailing_slash
(self, client: AsyncAnthropic)
tests/test_client.py:1451
Function
test_basic
(value: object)
tests/test_models.py:20
Function
test_basic
()
tests/test_qs.py:16
Function
test_basic
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:14
Function
test_basic
(sync: bool)
tests/decoders/test_jsonl.py:15
Method
test_basic_response
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:95
Method
test_basic_response
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:150
Method
test_basic_union_response
(self, respx_mock: MockRouter)
tests/test_client.py:500
Method
test_basic_union_response
(self, respx_mock: MockRouter)
tests/test_client.py:1365
Method
test_client_context_manager
(self)
tests/test_client.py:649
Method
test_client_context_manager
(self)
tests/test_client.py:1523
Method
test_client_max_retries_validation
(self)
tests/test_client.py:669
Method
test_client_max_retries_validation
(self)
tests/test_client.py:1544
Method
test_client_response_validation_error
(self, respx_mock: MockRouter)
tests/test_client.py:658
Method
test_client_response_validation_error
(self, respx_mock: MockRouter)
tests/test_client.py:1533
Method
test_client_timeout_option
(self)
tests/test_client.py:267
Method
test_client_timeout_option
(self)
tests/test_client.py:1132
Function
test_compat_method_no_error_for_warnings
()
tests/test_models.py:564
Function
test_complex_nested_dict
()
tests/test_deepcopy.py:22
Method
test_context_manager
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:114
Method
test_context_manager
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:170
Method
test_copied_client_does_not_close_http
(self)
tests/test_client.py:638
Method
test_copied_client_does_not_close_http
(self)
tests/test_client.py:1511
Method
test_copy
(self)
tests/test_client.py:84
Method
test_copy
(self)
tests/test_client.py:949
Method
test_copy
(self)
tests/lib/test_vertex.py:51
Method
test_copy
(self)
tests/lib/test_vertex.py:155
Method
test_copy_build_request
(self)
tests/test_client.py:194
Method
test_copy_build_request
(self)
tests/test_client.py:1059
Method
test_copy_default_headers
(self)
tests/test_client.py:108
Method
test_copy_default_headers
(self)
tests/test_client.py:973
Method
test_copy_default_headers
(self)
tests/lib/test_vertex.py:84
Method
test_copy_default_headers
(self)
tests/lib/test_vertex.py:188
Method
test_copy_default_options
(self)
tests/test_client.py:92
Method
test_copy_default_options
(self)
tests/test_client.py:957
Method
test_copy_default_options
(self)
tests/lib/test_vertex.py:68
Method
test_copy_default_options
(self)
tests/lib/test_vertex.py:172
Method
test_copy_default_query
(self)
tests/test_client.py:142
Method
test_copy_default_query
(self)
tests/test_client.py:1007
Method
test_copy_signature
(self)
tests/test_client.py:178
Method
test_copy_signature
(self)
tests/test_client.py:1043
Function
test_data_json_escaped_double_new_line
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:131
Function
test_data_missing_event
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:31
Function
test_datetime_custom_format
(use_async: bool)
tests/test_transform.py:251
Function
test_datetime_with_alias
(use_async: bool)
tests/test_transform.py:264
Method
test_default_headers_option
(self)
tests/test_client.py:317
Method
test_default_headers_option
(self)
tests/test_client.py:1182
Method
test_default_query_option
(self)
tests/test_client.py:355
Method
test_default_query_option
(self)
tests/test_client.py:1220
Method
test_default_stream_cls
(self, respx_mock: MockRouter)
tests/test_client.py:674
Method
test_default_stream_cls
(self, respx_mock: MockRouter)
tests/test_client.py:1552
Function
test_deprecated_alias
()
tests/test_models.py:471
Method
test_deprecated_model_warning
(self, client: Anthropic)
tests/api_resources/test_messages.py:253
Method
test_deprecated_model_warning
(self, async_client: AsyncAnthropic)
tests/api_resources/test_messages.py:598
Method
test_deprecated_model_warning_stream
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:133
Method
test_deprecated_model_warning_stream
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:190
Function
test_dict_of_union
()
tests/test_models.py:361
Function
test_directly_nested_model
()
tests/test_models.py:25
Function
test_discriminated_unions_invalid_data
()
tests/test_models.py:654
Function
test_discriminated_unions_invalid_data_nested_unions
()
tests/test_models.py:710
Function
test_discriminated_unions_invalid_data_uses_cache
()
tests/test_models.py:796
Function
test_discriminated_unions_overlapping_discriminators_invalid_data
()
tests/test_models.py:776
Function
test_discriminated_unions_unknown_variant
()
tests/test_models.py:687
Function
test_discriminated_unions_with_aliases_invalid_data
()
tests/test_models.py:743
Function
test_does_not_coerce_int
()
tests/test_models.py:443
Function
test_double_nested_union
()
tests/test_models.py:381
Function
test_empty
()
tests/test_qs.py:10
Function
test_event_missing_data
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/test_streaming.py:47
Function
test_extract_response_type_binary_response
()
tests/test_response.py:51
Function
test_extract_response_type_concrete_subclasses
()
tests/test_response.py:45
Function
test_extract_response_type_direct_class_missing_type_arg
()
tests/test_response.py:37
Function
test_extract_response_type_direct_classes
()
tests/test_response.py:31
Function
test_extract_type_var
()
tests/test_utils/test_typing.py:27
Function
test_extract_type_var_generic_subclass
()
tests/test_utils/test_typing.py:38
Function
test_extract_type_var_generic_subclass_different_ordering_multiple
()
tests/test_utils/test_typing.py:67
Function
test_extract_type_var_generic_subclass_multiple
()
tests/test_utils/test_typing.py:58
Function
test_extract_type_var_multiple
()
tests/test_utils/test_typing.py:49
Function
test_field_named_cls
()
tests/test_models.py:850
Function
test_forwards_compat_model_dump_json_method
()
tests/test_models.py:600
Function
test_forwards_compat_model_dump_method
()
tests/test_models.py:536
Method
test_get_platform
(self)
tests/test_client.py:1807
Method
test_http_client_timeout_option
(self)
tests/test_client.py:276
Method
test_http_client_timeout_option
(self)
tests/test_client.py:1141
Function
test_ignores_incorrect_paths
( query: dict[str, object], paths: Sequence[Sequence[str]], expected: list[tuple[str, FileTypes]],
tests/test_extract_files.py:59
Function
test_ignores_invalid_input
(use_async: bool)
tests/test_transform.py:159
Function
test_ignores_other_types
()
tests/test_deepcopy.py:47
Function
test_includes_unknown_keys
(use_async: bool)
tests/test_transform.py:141
Function
test_int_to_float_safe_conversion
()
tests/test_models.py:453
Method
test_invalid_http_client
(self)
tests/test_client.py:307
← previous
next →
701–800 of 1,183, ranked by callers