Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
5,068 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
5,068
◇
Types & classes
1,620
↳
Endpoints
13
Method
__init__
(self, api_request: Awaitable[_AsyncAPIResponseT])
src/anthropic/_response.py:680
Method
__init__
(self)
src/anthropic/_legacy_response.py:376
Method
__init__
(self, response: httpx.Response)
src/anthropic/_legacy_response.py:419
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:741
Method
__init__
(self, response: httpx.Response, body: object | None, *, message: str | None = None)
src/anthropic/_exceptions.py:60
Method
__init__
(self, message: str, *, response: httpx.Response, body: object | None)
src/anthropic/_exceptions.py:80
Method
__init__
(self, *, message: str = "Connection error.", request: httpx.Request)
src/anthropic/_exceptions.py:95
Method
__init__
(self, request: httpx.Request)
src/anthropic/_exceptions.py:100
Method
__init__
( self, client: AsyncAPIClient, options: FinalRequestOptions, page_cls: Type[A
src/anthropic/_base_client.py:298
Method
__init__
( self, *, version: str, base_url: str | URL, _strict_response_validat
src/anthropic/_base_client.py:392
Method
__init__
(self, **kwargs: Any)
src/anthropic/_base_client.py:906
Method
__init__
( self, *, version: str, base_url: str | URL, max_retries: int = DEFAU
src/anthropic/_base_client.py:983
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:2414
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:574
Method
__init__
(self, client: Anthropic)
src/anthropic/_client.py:980
Method
__init__
(self, client: AsyncAnthropic)
src/anthropic/_client.py:1011
Method
__init__
(self, client: Anthropic)
src/anthropic/_client.py:1042
Method
__init__
(self, client: AsyncAnthropic)
src/anthropic/_client.py:1073
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:287
Method
__init__
(self, beta: AsyncBeta)
src/anthropic/resources/beta/beta.py:348
Method
__init__
(self, beta: Beta)
src/anthropic/resources/beta/beta.py:409
Method
__init__
(self, beta: AsyncBeta)
src/anthropic/resources/beta/beta.py:470
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:720
Method
__init__
(self, user_profiles: AsyncUserProfiles)
src/anthropic/resources/beta/user_profiles.py:741
Method
__init__
(self, user_profiles: UserProfiles)
src/anthropic/resources/beta/user_profiles.py:762
Method
__init__
(self, user_profiles: AsyncUserProfiles)
src/anthropic/resources/beta/user_profiles.py:783
Method
__init__
(self, dreams: Dreams)
src/anthropic/resources/beta/dreams.py:640
Method
__init__
(self, dreams: AsyncDreams)
src/anthropic/resources/beta/dreams.py:661
Method
__init__
(self, dreams: Dreams)
src/anthropic/resources/beta/dreams.py:682
Method
__init__
(self, dreams: AsyncDreams)
src/anthropic/resources/beta/dreams.py:703
Method
__init__
(self, deployments: Deployments)
src/anthropic/resources/beta/deployments.py:1118
Method
__init__
(self, deployments: AsyncDeployments)
src/anthropic/resources/beta/deployments.py:1148
Method
__init__
(self, deployments: Deployments)
src/anthropic/resources/beta/deployments.py:1178
Method
__init__
(self, deployments: AsyncDeployments)
src/anthropic/resources/beta/deployments.py:1208
Method
__init__
(self, environments: Environments)
src/anthropic/resources/beta/environments/environments.py:802
Method
__init__
(self, environments: AsyncEnvironments)
src/anthropic/resources/beta/environments/environments.py:830
Method
__init__
(self, environments: Environments)
src/anthropic/resources/beta/environments/environments.py:858
Method
__init__
(self, environments: AsyncEnvironments)
src/anthropic/resources/beta/environments/environments.py:886
Method
__init__
(self, work: Work)
src/anthropic/resources/beta/environments/work.py:1280
Method
__init__
(self, work: AsyncWork)
src/anthropic/resources/beta/environments/work.py:1310
Method
__init__
(self, work: Work)
src/anthropic/resources/beta/environments/work.py:1340
Method
__init__
(self, work: AsyncWork)
src/anthropic/resources/beta/environments/work.py:1370
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:604
Method
__init__
(self, events: AsyncEvents)
src/anthropic/resources/beta/sessions/events.py:619
Method
__init__
(self, events: Events)
src/anthropic/resources/beta/sessions/events.py:634
Method
__init__
(self, events: AsyncEvents)
src/anthropic/resources/beta/sessions/events.py:649
Method
__init__
(self, sessions: Sessions)
src/anthropic/resources/beta/sessions/sessions.py:951
Method
__init__
(self, sessions: AsyncSessions)
src/anthropic/resources/beta/sessions/sessions.py:987
Method
__init__
(self, sessions: Sessions)
src/anthropic/resources/beta/sessions/sessions.py:1023
Method
__init__
(self, sessions: AsyncSessions)
src/anthropic/resources/beta/sessions/sessions.py:1059
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:369
Method
__init__
(self, events: AsyncEvents)
src/anthropic/resources/beta/sessions/threads/events.py:381
Method
__init__
(self, events: Events)
src/anthropic/resources/beta/sessions/threads/events.py:393
Method
__init__
(self, events: AsyncEvents)
src/anthropic/resources/beta/sessions/threads/events.py:405
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
← previous
next →
1,001–1,100 of 5,068, ranked by callers