Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
4,911 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
4,911
◇
Types & classes
1,594
↳
Endpoints
26
Method
__anext__
(self)
src/anthropic/lib/streaming/_messages.py:211
Method
__anext__
(self)
src/anthropic/_decoders/jsonl.py:118
Method
__await__
(self)
src/anthropic/_base_client.py:311
Method
__bool__
(self)
src/anthropic/_types.py:151
Method
__bool__
(self)
src/anthropic/_types.py:181
Method
__bool__
(self)
src/anthropic/_base_client.py:2408
Method
__call__
(self)
src/anthropic/lib/tools/_beta_functions.py:180
Method
__call__
(self, *_args: Any, **_kwds: Any)
src/anthropic/lib/tools/_beta_functions.py:229
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_types.py:53
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:123
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:134
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:478
Method
__call__
(self)
src/anthropic/lib/credentials/_providers.py:744
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_workload.py:231
Method
__call__
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:298
Method
__call__
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:309
Method
__call__
(self, *_args: Any, **_kwds: Any)
tests/test_utils/test_proxy.py:13
Method
__call__
(self)
tests/lib/test_credentials.py:1350
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1359
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1406
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1466
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1483
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1499
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:2674
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:2849
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:2902
Method
__contains__
(self, value: object, /)
src/anthropic/_types.py:268
Method
__del__
(self)
src/anthropic/_base_client.py:968
Method
__del__
(self)
src/anthropic/_base_client.py:1709
Method
__dir__
(self)
src/anthropic/_utils/_proxy.py:40
Method
__enter__
(self)
src/anthropic/_response.py:652
Method
__enter__
(self: _T)
src/anthropic/_base_client.py:1053
Method
__enter__
(self)
src/anthropic/lib/credentials/_workload.py:220
Method
__enter__
(self)
src/anthropic/lib/middleware/_fallbacks.py:81
Method
__enter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:73
Method
__enter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:170
Method
__enter__
(self)
src/anthropic/lib/streaming/_messages.py:166
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_response.py:656
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_base_client.py:1056
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_streaming.py:175
Method
__exit__
( self, exc_type: Optional[Type[BaseException]], exc: Optional[BaseException],
src/anthropic/lib/credentials/_workload.py:223
Method
__exit__
(self, *exc_info: object)
src/anthropic/lib/middleware/_fallbacks.py:86
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:76
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:175
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:171
Method
__get__
(self, instance: None, owner: type[Any] | None = None)
src/anthropic/_compat.py:217
Method
__get_pydantic_core_schema__
( cls, source_type: Any, handler: GetCoreSchemaHandler, )
src/anthropic/_models.py:437
Method
__getattr__
(self, attr: str)
src/anthropic/types/beta/beta_managed_agents_custom_tool_input_schema.py:30
Method
__getattr__
(self, attr: str)
src/anthropic/_utils/_proxy.py:19
Method
__getattr__
(self, attr: str)
tests/test_models.py:952
Method
__getitem__
(self, index: SupportsIndex, /)
src/anthropic/_types.py:265
Method
__init__
(self)
src/anthropic/_response.py:602
Method
__init__
(self)
src/anthropic/_response.py:629
Method
__init__
(self, request_func: Callable[[], _APIResponseT])
src/anthropic/_response.py:648
Method
__init__
(self, api_request: Awaitable[_AsyncAPIResponseT])
src/anthropic/_response.py:672
Method
__init__
(self)
src/anthropic/_legacy_response.py:372
Method
__init__
(self, response: httpx.Response)
src/anthropic/_legacy_response.py:415
Method
__init__
( self, *, options: FinalRequestOptions, cast_to: Any, stream: bool =
src/anthropic/_request.py:21
Method
__init__
( self, *, mapping: dict[str, type], discriminator_field: str, discrim
src/anthropic/_models.py:735
Method
__init__
(self, response: httpx.Response, body: object | None, *, message: str | None = None)
src/anthropic/_exceptions.py:55
Method
__init__
(self, message: str, *, response: httpx.Response, body: object | None)
src/anthropic/_exceptions.py:73
Method
__init__
(self, *, message: str = "Connection error.", request: httpx.Request)
src/anthropic/_exceptions.py:87
Method
__init__
(self, request: httpx.Request)
src/anthropic/_exceptions.py:92
Method
__init__
( self, client: AsyncAPIClient, options: FinalRequestOptions, page_cls: Type[A
src/anthropic/_base_client.py:299
Method
__init__
( self, *, version: str, base_url: str | URL, _strict_response_validat
src/anthropic/_base_client.py:393
Method
__init__
(self, **kwargs: Any)
src/anthropic/_base_client.py:907
Method
__init__
( self, *, version: str, base_url: str | URL, max_retries: int = DEFAU
src/anthropic/_base_client.py:984
Method
__init__
(self, **kwargs: Any)
src/anthropic/_base_client.py:1626
Method
__init__
(self, **_kwargs: Any)
src/anthropic/_base_client.py:1679
Method
__init__
( self, *, version: str, base_url: str | URL, _strict_response_validat
src/anthropic/_base_client.py:1726
Method
__init__
(self, name: str)
src/anthropic/_base_client.py:2413
Method
__init__
(self, name: str)
src/anthropic/_base_client.py:2491
Method
__init__
(self, func: Callable[[Any], _T])
src/anthropic/_compat.py:214
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 AsyncAnthropic client instance. Credentials are resolved in the following order (first match wins): 1. Explici
src/anthropic/_client.py:567
Method
__init__
(self, client: Anthropic)
src/anthropic/_client.py:973
Method
__init__
(self, client: AsyncAnthropic)
src/anthropic/_client.py:1004
Method
__init__
(self, client: Anthropic)
src/anthropic/_client.py:1035
Method
__init__
(self, client: AsyncAnthropic)
src/anthropic/_client.py:1066
Method
__init__
( self, *, array_format: ArrayFormat = "repeat", nested_format: NestedFormat =
src/anthropic/_qs.py:23
Method
__init__
( self, qs: Querystring = _qs, *, array_format: ArrayFormat | NotGiven = not_g
src/anthropic/_qs.py:141
Method
__init__
( self, *, cast_to: type[_T], response: httpx.Response, client: Anthro
src/anthropic/_streaming.py:52
Method
__init__
( self, *, cast_to: type[_T], response: httpx.Response, client: AsyncA
src/anthropic/_streaming.py:220
Method
__init__
( self, *, event: str | None = None, data: str | None = None, id: str
src/anthropic/_streaming.py:362
Method
__init__
(self)
src/anthropic/_streaming.py:420
Method
__init__
(self, completions: Completions)
src/anthropic/resources/completions.py:819
Method
__init__
(self, completions: AsyncCompletions)
src/anthropic/resources/completions.py:828
Method
__init__
(self, completions: Completions)
src/anthropic/resources/completions.py:837
Method
__init__
(self, completions: AsyncCompletions)
src/anthropic/resources/completions.py:846
Method
__init__
(self, models: Models)
src/anthropic/resources/models.py:287
Method
__init__
(self, models: AsyncModels)
src/anthropic/resources/models.py:299
Method
__init__
(self, models: Models)
src/anthropic/resources/models.py:311
Method
__init__
(self, models: AsyncModels)
src/anthropic/resources/models.py:323
Method
__init__
(self, deployment_runs: DeploymentRuns)
src/anthropic/resources/beta/deployment_runs.py:350
Method
__init__
(self, deployment_runs: AsyncDeploymentRuns)
src/anthropic/resources/beta/deployment_runs.py:362
Method
__init__
(self, deployment_runs: DeploymentRuns)
src/anthropic/resources/beta/deployment_runs.py:374
Method
__init__
(self, deployment_runs: AsyncDeploymentRuns)
src/anthropic/resources/beta/deployment_runs.py:386
Method
__init__
(self, files: Files)
src/anthropic/resources/beta/files.py:644
Method
__init__
(self, files: AsyncFiles)
src/anthropic/resources/beta/files.py:666
← previous
next →
901–1,000 of 4,911, ranked by callers