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
__aenter__
(self)
src/anthropic/lib/streaming/_messages.py:193
Method
__aenter__
(self)
src/anthropic/lib/streaming/_messages.py:285
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_response.py:677
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_base_client.py:1470
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_streaming.py:241
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:196
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:290
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:196
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:290
Method
__aiter__
(self)
src/anthropic/_base_client.py:277
Method
__aiter__
(self)
src/anthropic/_base_client.py:300
Method
__aiter__
(self)
src/anthropic/_streaming.py:184
Method
__aiter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:189
Method
__aiter__
(self)
src/anthropic/lib/streaming/_messages.py:189
Method
__aiter__
(self)
src/anthropic/_decoders/jsonl.py:99
Method
__anext__
(self)
src/anthropic/lib/streaming/_beta_messages.py:186
Method
__anext__
(self)
src/anthropic/lib/streaming/_messages.py:186
Method
__anext__
(self)
src/anthropic/_decoders/jsonl.py:96
Method
__as_proxied__
Helper method that returns the current proxy, typed as the loaded object
src/anthropic/_utils/_proxy.py:57
Method
__await__
(self)
src/anthropic/_base_client.py:261
Method
__bool__
(self)
src/anthropic/_types.py:124
Method
__bool__
(self)
src/anthropic/_types.py:153
Method
__bool__
(self)
src/anthropic/_base_client.py:1938
Method
__call__
(self, *_args: Any, **_kwds: Any)
tests/test_utils/test_proxy.py:13
Method
__del__
(self)
src/anthropic/_base_client.py:770
Method
__del__
(self)
src/anthropic/_base_client.py:1355
Method
__dir__
(self)
src/anthropic/_utils/_proxy.py:40
Method
__enter__
(self)
src/anthropic/_response.py:649
Method
__enter__
(self: _T)
src/anthropic/_base_client.py:884
Method
__enter__
(self)
src/anthropic/_streaming.py:120
Method
__enter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:56
Method
__enter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:146
Method
__enter__
(self)
src/anthropic/lib/streaming/_messages.py:56
Method
__enter__
(self)
src/anthropic/lib/streaming/_messages.py:146
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_response.py:653
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_base_client.py:887
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_streaming.py:123
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:59
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:151
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:59
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:151
Method
__get__
(self, instance: None, owner: type[Any] | None = None)
src/anthropic/_compat.py:204
Method
__getattr__
(self, attr: str)
src/anthropic/_utils/_proxy.py:19
Method
__init__
(self)
src/anthropic/_response.py:599
Method
__init__
(self)
src/anthropic/_response.py:626
Method
__init__
(self, request_func: Callable[[], _APIResponseT])
src/anthropic/_response.py:645
Method
__init__
(self, api_request: Awaitable[_AsyncAPIResponseT])
src/anthropic/_response.py:669
Method
__init__
(self)
src/anthropic/_legacy_response.py:369
Method
__init__
(self, response: httpx.Response)
src/anthropic/_legacy_response.py:412
Method
__init__
( self, *, mapping: dict[str, type], discriminator_field: str, discrim
src/anthropic/_models.py:586
Method
__init__
(self, response: httpx.Response, body: object | None, *, message: str | None = None)
src/anthropic/_exceptions.py:51
Method
__init__
(self, message: str, *, response: httpx.Response, body: object | None)
src/anthropic/_exceptions.py:64
Method
__init__
(self, *, message: str = "Connection error.", request: httpx.Request)
src/anthropic/_exceptions.py:72
Method
__init__
(self, request: httpx.Request)
src/anthropic/_exceptions.py:77
Method
__init__
( self, client: AsyncAPIClient, options: FinalRequestOptions, page_cls: Type[A
src/anthropic/_base_client.py:249
Method
__init__
( self, *, version: str, base_url: str | URL, _strict_response_validat
src/anthropic/_base_client.py:342
Method
__init__
(self, **kwargs: Any)
src/anthropic/_base_client.py:750
Method
__init__
( self, *, version: str, base_url: str | URL, max_retries: int = DEFAU
src/anthropic/_base_client.py:784
Method
__init__
(self, **kwargs: Any)
src/anthropic/_base_client.py:1335
Method
__init__
( self, *, version: str, base_url: str | URL, _strict_response_validat
src/anthropic/_base_client.py:1370
Method
__init__
(self, name: str)
src/anthropic/_base_client.py:1943
Method
__init__
(self, name: str)
src/anthropic/_base_client.py:2021
Method
__init__
(self, func: Callable[[Any], _T])
src/anthropic/_compat.py:201
Method
__init__
(self, client: SyncAPIClient)
src/anthropic/_resource.py:15
Method
__init__
(self, client: AsyncAPIClient)
src/anthropic/_resource.py:31
Method
__init__
Construct a new async anthropic client instance. This automatically infers the following arguments from their corresponding environment varia
src/anthropic/_client.py:287
Method
__init__
(self, client: Anthropic)
src/anthropic/_client.py:492
Method
__init__
(self, client: AsyncAnthropic)
src/anthropic/_client.py:500
Method
__init__
(self, client: Anthropic)
src/anthropic/_client.py:508
Method
__init__
(self, client: AsyncAnthropic)
src/anthropic/_client.py:516
Method
__init__
( self, *, array_format: ArrayFormat = "repeat", nested_format: NestedFormat =
src/anthropic/_qs.py:27
Method
__init__
( self, qs: Querystring = _qs, *, array_format: NotGivenOr[ArrayFormat] = NOT_
src/anthropic/_qs.py:142
Method
__init__
( self, *, cast_to: type[_T], response: httpx.Response, client: Anthro
src/anthropic/_streaming.py:51
Method
__init__
( self, *, cast_to: type[_T], response: httpx.Response, client: AsyncA
src/anthropic/_streaming.py:168
Method
__init__
( self, *, event: str | None = None, data: str | None = None, id: str
src/anthropic/_streaming.py:259
Method
__init__
(self)
src/anthropic/_streaming.py:305
Method
__init__
(self, completions: Completions)
src/anthropic/resources/completions.py:791
Method
__init__
(self, completions: AsyncCompletions)
src/anthropic/resources/completions.py:800
Method
__init__
(self, completions: Completions)
src/anthropic/resources/completions.py:809
Method
__init__
(self, completions: AsyncCompletions)
src/anthropic/resources/completions.py:818
Method
__init__
(self, models: Models)
src/anthropic/resources/models.py:256
Method
__init__
(self, models: AsyncModels)
src/anthropic/resources/models.py:268
Method
__init__
(self, models: Models)
src/anthropic/resources/models.py:280
Method
__init__
(self, models: AsyncModels)
src/anthropic/resources/models.py:292
Method
__init__
(self, beta: Beta)
src/anthropic/resources/beta/beta.py:86
Method
__init__
(self, beta: AsyncBeta)
src/anthropic/resources/beta/beta.py:99
Method
__init__
(self, beta: Beta)
src/anthropic/resources/beta/beta.py:112
Method
__init__
(self, beta: AsyncBeta)
src/anthropic/resources/beta/beta.py:125
Method
__init__
(self, models: Models)
src/anthropic/resources/beta/models.py:256
Method
__init__
(self, models: AsyncModels)
src/anthropic/resources/beta/models.py:268
Method
__init__
(self, models: Models)
src/anthropic/resources/beta/models.py:280
Method
__init__
(self, models: AsyncModels)
src/anthropic/resources/beta/models.py:292
Method
__init__
(self, batches: Batches)
src/anthropic/resources/beta/messages/batches.py:773
Method
__init__
(self, batches: AsyncBatches)
src/anthropic/resources/beta/messages/batches.py:794
Method
__init__
(self, batches: Batches)
src/anthropic/resources/beta/messages/batches.py:815
Method
__init__
(self, batches: AsyncBatches)
src/anthropic/resources/beta/messages/batches.py:836
Method
__init__
(self, messages: Messages)
src/anthropic/resources/beta/messages/messages.py:2404
Method
__init__
(self, messages: AsyncMessages)
src/anthropic/resources/beta/messages/messages.py:2420
Method
__init__
(self, messages: Messages)
src/anthropic/resources/beta/messages/messages.py:2436
Method
__init__
(self, messages: AsyncMessages)
src/anthropic/resources/beta/messages/messages.py:2452
← previous
next →
301–400 of 1,183, ranked by callers