Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
4,447 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
4,447
◇
Types & classes
1,509
↳
Endpoints
24
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:564
Method
__init__
(self, client: Anthropic)
src/anthropic/_client.py:967
Method
__init__
(self, client: AsyncAnthropic)
src/anthropic/_client.py:998
Method
__init__
(self, client: Anthropic)
src/anthropic/_client.py:1029
Method
__init__
(self, client: AsyncAnthropic)
src/anthropic/_client.py:1060
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
Method
__init__
(self, files: Files)
src/anthropic/resources/beta/files.py:688
Method
__init__
(self, files: AsyncFiles)
src/anthropic/resources/beta/files.py:710
Method
__init__
(self, beta: Beta)
src/anthropic/resources/beta/beta.py:255
Method
__init__
(self, beta: AsyncBeta)
src/anthropic/resources/beta/beta.py:308
Method
__init__
(self, beta: Beta)
src/anthropic/resources/beta/beta.py:361
Method
__init__
(self, beta: AsyncBeta)
src/anthropic/resources/beta/beta.py:414
Method
__init__
(self, models: Models)
src/anthropic/resources/beta/models.py:287
Method
__init__
(self, models: AsyncModels)
src/anthropic/resources/beta/models.py:299
Method
__init__
(self, models: Models)
src/anthropic/resources/beta/models.py:311
Method
__init__
(self, models: AsyncModels)
src/anthropic/resources/beta/models.py:323
Method
__init__
(self, user_profiles: UserProfiles)
src/anthropic/resources/beta/user_profiles.py:686
Method
__init__
(self, user_profiles: AsyncUserProfiles)
src/anthropic/resources/beta/user_profiles.py:707
Method
__init__
(self, user_profiles: UserProfiles)
src/anthropic/resources/beta/user_profiles.py:728
Method
__init__
(self, user_profiles: AsyncUserProfiles)
src/anthropic/resources/beta/user_profiles.py:749
Method
__init__
(self, deployments: Deployments)
src/anthropic/resources/beta/deployments.py:1097
Method
__init__
(self, deployments: AsyncDeployments)
src/anthropic/resources/beta/deployments.py:1127
Method
__init__
(self, deployments: Deployments)
src/anthropic/resources/beta/deployments.py:1157
Method
__init__
(self, deployments: AsyncDeployments)
src/anthropic/resources/beta/deployments.py:1187
Method
__init__
(self, environments: Environments)
src/anthropic/resources/beta/environments/environments.py:800
Method
__init__
(self, environments: AsyncEnvironments)
src/anthropic/resources/beta/environments/environments.py:828
Method
__init__
(self, environments: Environments)
src/anthropic/resources/beta/environments/environments.py:856
Method
__init__
(self, environments: AsyncEnvironments)
src/anthropic/resources/beta/environments/environments.py:884
Method
__init__
(self, work: Work)
src/anthropic/resources/beta/environments/work.py:1278
Method
__init__
(self, work: AsyncWork)
src/anthropic/resources/beta/environments/work.py:1308
Method
__init__
(self, work: Work)
src/anthropic/resources/beta/environments/work.py:1338
Method
__init__
(self, work: AsyncWork)
src/anthropic/resources/beta/environments/work.py:1368
Method
__init__
(self, resources: Resources)
src/anthropic/resources/beta/sessions/resources.py:689
Method
__init__
(self, resources: AsyncResources)
src/anthropic/resources/beta/sessions/resources.py:710
Method
__init__
(self, resources: Resources)
src/anthropic/resources/beta/sessions/resources.py:731
Method
__init__
(self, resources: AsyncResources)
src/anthropic/resources/beta/sessions/resources.py:752
Method
__init__
(self, events: Events)
src/anthropic/resources/beta/sessions/events.py:591
Method
__init__
(self, events: AsyncEvents)
src/anthropic/resources/beta/sessions/events.py:606
Method
__init__
(self, events: Events)
src/anthropic/resources/beta/sessions/events.py:621
Method
__init__
(self, events: AsyncEvents)
src/anthropic/resources/beta/sessions/events.py:636
Method
__init__
(self, sessions: Sessions)
src/anthropic/resources/beta/sessions/sessions.py:920
Method
__init__
(self, sessions: AsyncSessions)
src/anthropic/resources/beta/sessions/sessions.py:956
Method
__init__
(self, sessions: Sessions)
src/anthropic/resources/beta/sessions/sessions.py:992
Method
__init__
(self, sessions: AsyncSessions)
src/anthropic/resources/beta/sessions/sessions.py:1028
Method
__init__
(self, threads: Threads)
src/anthropic/resources/beta/sessions/threads/threads.py:426
Method
__init__
(self, threads: AsyncThreads)
src/anthropic/resources/beta/sessions/threads/threads.py:445
Method
__init__
(self, threads: Threads)
src/anthropic/resources/beta/sessions/threads/threads.py:464
Method
__init__
(self, threads: AsyncThreads)
src/anthropic/resources/beta/sessions/threads/threads.py:483
Method
__init__
(self, events: Events)
src/anthropic/resources/beta/sessions/threads/events.py:334
Method
__init__
(self, events: AsyncEvents)
src/anthropic/resources/beta/sessions/threads/events.py:346
Method
__init__
(self, events: Events)
src/anthropic/resources/beta/sessions/threads/events.py:358
Method
__init__
(self, events: AsyncEvents)
src/anthropic/resources/beta/sessions/threads/events.py:370
Method
__init__
(self, credentials: Credentials)
src/anthropic/resources/beta/vaults/credentials.py:912
Method
__init__
(self, credentials: AsyncCredentials)
src/anthropic/resources/beta/vaults/credentials.py:939
Method
__init__
(self, credentials: Credentials)
src/anthropic/resources/beta/vaults/credentials.py:966
Method
__init__
(self, credentials: AsyncCredentials)
src/anthropic/resources/beta/vaults/credentials.py:993
Method
__init__
(self, vaults: Vaults)
src/anthropic/resources/beta/vaults/vaults.py:739
Method
__init__
(self, vaults: AsyncVaults)
src/anthropic/resources/beta/vaults/vaults.py:767
← previous
next →
901–1,000 of 4,447, ranked by callers