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
list
List available models. The Models API response can be used to determine which models are available for use in the API. More
src/anthropic/resources/models.py:196
Method
list
List available models. The Models API response can be used to determine which models are available for use in the API. More
src/anthropic/resources/beta/models.py:79
Method
list
List available models. The Models API response can be used to determine which models are available for use in the API. More
src/anthropic/resources/beta/models.py:196
Method
list
List all Message Batches within a Workspace. Most recently created batches are returned first. Args: after_id: ID
src/anthropic/resources/beta/messages/batches.py:159
Method
list
List all Message Batches within a Workspace. Most recently created batches are returned first. Args: after_id: ID
src/anthropic/resources/beta/messages/batches.py:528
Method
list
List all Message Batches within a Workspace. Most recently created batches are returned first. Args: after_id: ID
src/anthropic/resources/messages/batches.py:127
Method
list
List all Message Batches within a Workspace. Most recently created batches are returned first. Args: after_id: ID
src/anthropic/resources/messages/batches.py:412
Function
maybe_coerce_boolean
(val: str | None)
src/anthropic/_utils/_utils.py:333
Function
maybe_coerce_float
(val: str | None)
src/anthropic/_utils/_utils.py:327
Function
maybe_coerce_integer
(val: str | None)
src/anthropic/_utils/_utils.py:321
Method
messages
(self)
src/anthropic/resources/beta/beta.py:33
Method
messages
(self)
src/anthropic/resources/beta/beta.py:62
Method
messages
(self)
src/anthropic/resources/beta/beta.py:94
Method
messages
(self)
src/anthropic/resources/beta/beta.py:107
Method
messages
(self)
src/anthropic/resources/beta/beta.py:120
Method
messages
(self)
src/anthropic/resources/beta/beta.py:133
Method
messages
(self)
src/anthropic/lib/bedrock/_beta.py:21
Method
messages
(self)
src/anthropic/lib/bedrock/_beta.py:46
Method
messages
(self)
src/anthropic/lib/bedrock/_beta.py:74
Method
messages
(self)
src/anthropic/lib/bedrock/_beta.py:83
Method
messages
(self)
src/anthropic/lib/bedrock/_beta.py:92
Method
messages
(self)
src/anthropic/lib/bedrock/_beta.py:101
Method
messages
(self)
src/anthropic/lib/vertex/_beta.py:21
Method
messages
(self)
src/anthropic/lib/vertex/_beta.py:46
Method
messages
(self)
src/anthropic/lib/vertex/_beta.py:74
Method
messages
(self)
src/anthropic/lib/vertex/_beta.py:83
Method
messages
(self)
src/anthropic/lib/vertex/_beta.py:92
Method
messages
(self)
src/anthropic/lib/vertex/_beta.py:101
Method
method
(self)
src/anthropic/_response.py:101
Method
method
(self)
src/anthropic/_legacy_response.py:166
Method
model_fields_set
(self)
src/anthropic/_models.py:92
Method
model_id
(self)
tests/test_models.py:476
Function
model_parse
(model: type[_ModelT], data: Any)
src/anthropic/_compat.py:161
Method
models
(self)
src/anthropic/resources/beta/beta.py:29
Method
models
(self)
src/anthropic/resources/beta/beta.py:58
Method
models
(self)
src/anthropic/resources/beta/beta.py:90
Method
models
(self)
src/anthropic/resources/beta/beta.py:103
Method
models
(self)
src/anthropic/resources/beta/beta.py:116
Method
models
(self)
src/anthropic/resources/beta/beta.py:129
Method
next_page_info
(self)
src/anthropic/pagination.py:27
Method
next_page_info
(self)
src/anthropic/pagination.py:56
Method
patch
( self, path: str, *, cast_to: Type[ResponseT], body: Body | None = No
src/anthropic/_base_client.py:1284
Method
patch
( self, path: str, *, cast_to: Type[ResponseT], body: Body | None = No
src/anthropic/_base_client.py:1850
Method
post
( self, path: str, *, cast_to: Type[ResponseT], body: Body | None = No
src/anthropic/_base_client.py:1797
Method
project_id
(self)
src/anthropic/lib/vertex/_client.py:43
Method
put
( self, path: str, *, cast_to: Type[ResponseT], body: Body | None = No
src/anthropic/_base_client.py:1295
Method
put
( self, path: str, *, cast_to: Type[ResponseT], body: Body | None = No
src/anthropic/_base_client.py:1861
Function
pytest_collection_modifyitems
(items: list[pytest.Function])
tests/conftest.py:22
Method
qs
(self)
src/anthropic/_base_client.py:595
Method
qs
(self)
src/anthropic/_client.py:132
Method
qs
(self)
src/anthropic/_client.py:352
Method
read
(self)
src/anthropic/_legacy_response.py:434
Method
region
(self)
src/anthropic/lib/vertex/_client.py:39
Function
removeprefix
Remove a prefix from a string. Backport of `str.removeprefix` for Python < 3.9
src/anthropic/_utils/_utils.py:339
Function
removesuffix
Remove a suffix from a string. Backport of `str.removesuffix` for Python < 3.9
src/anthropic/_utils/_utils.py:349
Method
request_id
(self)
src/anthropic/_response.py:300
Method
request_id
(self)
src/anthropic/_response.py:409
Method
request_id
(self)
src/anthropic/_legacy_response.py:93
Method
request_id
(self)
src/anthropic/lib/streaming/_beta_messages.py:46
Method
request_id
(self)
src/anthropic/lib/streaming/_beta_messages.py:183
Method
request_id
(self)
src/anthropic/lib/streaming/_messages.py:46
Method
request_id
(self)
src/anthropic/lib/streaming/_messages.py:183
Function
required_args
Decorator to enforce a given set of arguments or variants of arguments are passed to the decorated function. Useful for enforcing runtime validat
src/anthropic/_utils/_utils.py:207
Method
response
(self)
src/anthropic/lib/streaming/_beta_messages.py:42
Method
response
(self)
src/anthropic/lib/streaming/_beta_messages.py:179
Method
response
(self)
src/anthropic/lib/streaming/_messages.py:42
Method
response
(self)
src/anthropic/lib/streaming/_messages.py:179
Method
results
Streams the results of a Message Batch as a `.jsonl` file. Each line in the file is a JSON object containing the result of a single
src/anthropic/resources/beta/messages/batches.py:340
Method
results
Streams the results of a Message Batch as a `.jsonl` file. Each line in the file is a JSON object containing the result of a single
src/anthropic/resources/beta/messages/batches.py:709
Method
results
Streams the results of a Message Batch as a `.jsonl` file. Each line in the file is a JSON object containing the result of a single
src/anthropic/resources/messages/batches.py:551
Method
retrieve
Get a specific model. The Models API response can be used to determine information about a specific model or resolve a model
src/anthropic/resources/models.py:158
Method
retrieve
Get a specific model. The Models API response can be used to determine information about a specific model or resolve a model
src/anthropic/resources/beta/models.py:41
Method
retrieve
Get a specific model. The Models API response can be used to determine information about a specific model or resolve a model
src/anthropic/resources/beta/models.py:158
Method
retry
(self)
src/anthropic/_streaming.py:284
Method
retry_handler
(_request: httpx.Request)
tests/test_client.py:800
Method
retry_handler
(_request: httpx.Request)
tests/test_client.py:1681
Function
setup_logging
()
src/anthropic/_utils/_logs.py:16
Method
status_code
(self)
src/anthropic/_response.py:92
Method
status_code
(self)
src/anthropic/_legacy_response.py:158
Method
stream
Create a Message stream
src/anthropic/resources/beta/messages/messages.py:937
Method
stream
( self, *, max_tokens: int, messages: Iterable[BetaMessageParam], mode
src/anthropic/resources/beta/messages/messages.py:2113
Method
stream
Create a Message stream
src/anthropic/resources/messages/messages.py:2081
Method
stream_to_file
Streams the output to the given file. Accepts a filename or any path-like object, e.g. pathlib.Path
src/anthropic/_response.py:566
Method
stream_to_file
Streams the output to the given file. Accepts a filename or any path-like object, e.g. pathlib.Path
src/anthropic/_response.py:582
Method
stream_to_file
( self, file: str | os.PathLike[str], *, chunk_size: int | None = None, )
src/anthropic/_legacy_response.py:468
Method
test_absolute_request_url
(self, client: Anthropic)
tests/test_client.py:628
Method
test_absolute_request_url
(self, client: AsyncAnthropic)
tests/test_client.py:1501
Function
test_aliases
()
tests/test_models.py:171
Function
test_annotated_types
()
tests/test_models.py:642
Function
test_application_inference_profile
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:97
Function
test_array_brackets
(method: str)
tests/test_qs.py:65
Function
test_array_comma
(method: str)
tests/test_qs.py:46
Function
test_array_repeat
()
tests/test_qs.py:57
Function
test_async_pathlib_includes_file_name
()
tests/test_files.py:25
Function
test_async_response_basemodel_request_id
(client: Anthropic)
tests/test_response.py:180
Function
test_async_response_parse_annotated_type
(async_client: AsyncAnthropic)
tests/test_response.py:217
Function
test_async_response_parse_bool
(client: AsyncAnthropic, content: str, expected: bool)
tests/test_response.py:270
Function
test_async_response_parse_custom_model
(async_client: AsyncAnthropic)
tests/test_response.py:144
Function
test_async_response_parse_custom_stream
(async_client: AsyncAnthropic)
tests/test_response.py:109
Function
test_async_response_parse_expect_model_union_non_json_content
(async_client: AsyncAnthropic)
tests/test_response.py:306
← previous
next →
601–700 of 1,183, ranked by callers