Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
12,274 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
12,274
◇
Types & classes
3,937
↳
Endpoints
46
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_streaming.py:135
Method
__exit__
( self, exc_type: Optional[Type[BaseException]], exc: Optional[BaseException],
src/anthropic/lib/credentials/_workload.py:237
Method
__exit__
(self, *exc_info: object)
src/anthropic/lib/middleware/_fallbacks.py:88
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:85
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:199
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:80
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:189
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/threads/_stream_managers.py:47
Method
__fspath__
(self)
tests/test_prepare.py:167
Method
__fspath__
(self)
tests/test_prepare.py:211
Method
__get__
(self, instance: None, owner: type[Any] | None = None)
src/anthropic/_compat.py:212
Method
__get_pydantic_core_schema__
(cls, source_type: Any, handler: GetCoreSchemaHandler)
src/anthropic/_types.py:287
Method
__get_pydantic_core_schema__
( cls, source_type: Any, handler: GetCoreSchemaHandler, )
src/anthropic/_models.py:512
Method
__get_pydantic_core_schema__
(cls, source: Any, handler: Any)
tests/test_models.py:1153
Method
__get_validators__
(cls)
tests/test_models.py:1243
Method
__getattr__
(self, attr: str)
src/anthropic/types/beta/beta_managed_agents_custom_tool_input_schema.py:28
Method
__getattr__
(self, attr: str)
src/anthropic/types/beta/beta_response_tool_input_schema.py:31
Method
__getattr__
(self, attr: str)
src/anthropic/_utils/_proxy.py:19
Method
__getattr__
(self, attr: str)
tests/test_models.py:1046
Method
__getitem__
(self, index: SupportsIndex, /)
src/anthropic/_types.py:372
Method
__getitem__
(self, index: Any)
tests/test_prepare.py:202
Method
__init__
(self)
src/anthropic/_response.py:609
Method
__init__
(self)
src/anthropic/_response.py:636
Method
__init__
(self, request_func: Callable[[], _APIResponseT])
src/anthropic/_response.py:655
Method
__init__
(self, api_request: Awaitable[_AsyncAPIResponseT])
src/anthropic/_response.py:679
Method
__init__
( self, *, options: FinalRequestOptions, cast_to: Any, stream: bool =
src/anthropic/_request.py:21
Method
__init__
(self, field_name: str)
src/anthropic/_models.py:802
Method
__init__
( self, *, mapping: dict[str, type], discriminator_field: str, discrim
src/anthropic/_models.py:855
Method
__init__
(self, response: httpx2.Response, body: object | None, *, message: str | None = None)
src/anthropic/_exceptions.py:75
Method
__init__
(self, message: str, *, response: httpx2.Response, body: object | None)
src/anthropic/_exceptions.py:125
Method
__init__
(self, *, message: str = "Connection error.", request: httpx2.Request)
src/anthropic/_exceptions.py:143
Method
__init__
(self, request: httpx2.Request)
src/anthropic/_exceptions.py:148
Method
__init__
(self, message: str, *, path: pathlib.Path | None = None)
src/anthropic/_exceptions.py:177
Method
__init__
( self, client: AsyncAPIClient, options: FinalRequestOptions, page_cls: Type[A
src/anthropic/_base_client.py:333
Method
__init__
( self, *, version: str, base_url: str | URL, _strict_response_validat
src/anthropic/_base_client.py:436
Method
__init__
(self, **kwargs: Any)
src/anthropic/_base_client.py:999
Method
__init__
( self, *, version: str, base_url: str | URL, max_retries: int = DEFAU
src/anthropic/_base_client.py:1077
Method
__init__
(self, **kwargs: Any)
src/anthropic/_base_client.py:1756
Method
__init__
(self, **_kwargs: Any)
src/anthropic/_base_client.py:1810
Method
__init__
( self, *, version: str, base_url: str | URL, _strict_response_validat
src/anthropic/_base_client.py:1857
Method
__init__
(self, name: str)
src/anthropic/_base_client.py:2606
Method
__init__
(self, name: str)
src/anthropic/_base_client.py:2683
Method
__init__
(self, func: Callable[[Any], _T])
src/anthropic/_compat.py:209
Method
__init__
(self, client: SyncAPIClient)
src/anthropic/_resource.py:13
Method
__init__
(self, client: AsyncAPIClient)
src/anthropic/_resource.py:29
Method
__init__
Construct a new async AsyncAnthropic client instance. Credentials are resolved in the following order (first match wins): 1. An expl
src/anthropic/_client.py:579
Method
__init__
(self, client: Anthropic)
src/anthropic/_client.py:971
Method
__init__
(self, client: AsyncAnthropic)
src/anthropic/_client.py:1020
Method
__init__
(self, client: Anthropic)
src/anthropic/_client.py:1069
Method
__init__
(self, client: AsyncAnthropic)
src/anthropic/_client.py:1118
Method
__init__
(self, span: Span)
src/anthropic/_tracing.py:492
Method
__init__
(self, body: httpx2.SyncByteStream, observer: StreamObserver)
src/anthropic/_tracing.py:546
Method
__init__
(self, body: httpx2.AsyncByteStream, observer: StreamObserver)
src/anthropic/_tracing.py:580
Method
__init__
( self, body: httpx2.SyncByteStream, async_body: httpx2.AsyncByteStream, observer: StreamObserver
src/anthropic/_tracing.py:621
Method
__init__
( self, *, array_format: ArrayFormat = "repeat", nested_format: NestedFormat =
src/anthropic/_qs.py:24
Method
__init__
( self, qs: Querystring = _qs, *, array_format: ArrayFormat | NotGiven = not_g
src/anthropic/_qs.py:143
Method
__init__
( self, *, cast_to: type[_T], response: httpx2.Response, client: Anthr
src/anthropic/_streaming.py:33
Method
__init__
( self, *, cast_to: type[_T], response: httpx2.Response, client: Async
src/anthropic/_streaming.py:161
Method
__init__
( self, *, event: str | None = None, data: str | None = None, id: str
src/anthropic/_streaming.py:284
Method
__init__
(self)
src/anthropic/_streaming.py:342
Method
__init__
(self, files: Files)
src/anthropic/resources/files.py:758
Method
__init__
(self, files: AsyncFiles)
src/anthropic/resources/files.py:780
Method
__init__
(self, files: Files)
src/anthropic/resources/files.py:802
Method
__init__
(self, files: AsyncFiles)
src/anthropic/resources/files.py:824
Method
__init__
(self, models: Models)
src/anthropic/resources/models.py:340
Method
__init__
(self, models: AsyncModels)
src/anthropic/resources/models.py:352
Method
__init__
(self, models: Models)
src/anthropic/resources/models.py:364
Method
__init__
(self, models: AsyncModels)
src/anthropic/resources/models.py:376
Method
__init__
(self, action_urls: ActionURLs)
src/anthropic/resources/user_profiles/action_urls.py:173
Method
__init__
(self, action_urls: AsyncActionURLs)
src/anthropic/resources/user_profiles/action_urls.py:182
Method
__init__
(self, action_urls: ActionURLs)
src/anthropic/resources/user_profiles/action_urls.py:191
Method
__init__
(self, action_urls: AsyncActionURLs)
src/anthropic/resources/user_profiles/action_urls.py:200
Method
__init__
(self, user_profiles: UserProfiles)
src/anthropic/resources/user_profiles/user_profiles.py:757
Method
__init__
(self, user_profiles: AsyncUserProfiles)
src/anthropic/resources/user_profiles/user_profiles.py:782
Method
__init__
(self, user_profiles: UserProfiles)
src/anthropic/resources/user_profiles/user_profiles.py:807
Method
__init__
(self, user_profiles: AsyncUserProfiles)
src/anthropic/resources/user_profiles/user_profiles.py:832
Method
__init__
(self, deployment_runs: DeploymentRuns)
src/anthropic/resources/beta/deployment_runs.py:410
Method
__init__
(self, deployment_runs: AsyncDeploymentRuns)
src/anthropic/resources/beta/deployment_runs.py:422
Method
__init__
(self, deployment_runs: DeploymentRuns)
src/anthropic/resources/beta/deployment_runs.py:434
Method
__init__
(self, deployment_runs: AsyncDeploymentRuns)
src/anthropic/resources/beta/deployment_runs.py:446
Method
__init__
(self, files: Files)
src/anthropic/resources/beta/files.py:899
Method
__init__
(self, files: AsyncFiles)
src/anthropic/resources/beta/files.py:921
Method
__init__
(self, files: Files)
src/anthropic/resources/beta/files.py:943
Method
__init__
(self, files: AsyncFiles)
src/anthropic/resources/beta/files.py:965
Method
__init__
(self, beta: Beta)
src/anthropic/resources/beta/beta.py:301
Method
__init__
(self, beta: AsyncBeta)
src/anthropic/resources/beta/beta.py:366
Method
__init__
(self, beta: Beta)
src/anthropic/resources/beta/beta.py:431
Method
__init__
(self, beta: AsyncBeta)
src/anthropic/resources/beta/beta.py:496
Method
__init__
(self, models: Models)
src/anthropic/resources/beta/models.py:389
Method
__init__
(self, models: AsyncModels)
src/anthropic/resources/beta/models.py:401
Method
__init__
(self, models: Models)
src/anthropic/resources/beta/models.py:413
Method
__init__
(self, models: AsyncModels)
src/anthropic/resources/beta/models.py:425
Method
__init__
(self, dreams: Dreams)
src/anthropic/resources/beta/dreams.py:922
Method
__init__
(self, dreams: AsyncDreams)
src/anthropic/resources/beta/dreams.py:943
Method
__init__
(self, dreams: Dreams)
src/anthropic/resources/beta/dreams.py:964
Method
__init__
(self, dreams: AsyncDreams)
src/anthropic/resources/beta/dreams.py:985
Method
__init__
(self, deployments: Deployments)
src/anthropic/resources/beta/deployments.py:1399
Method
__init__
(self, deployments: AsyncDeployments)
src/anthropic/resources/beta/deployments.py:1429
Method
__init__
(self, deployments: Deployments)
src/anthropic/resources/beta/deployments.py:1459
Method
__init__
(self, deployments: AsyncDeployments)
src/anthropic/resources/beta/deployments.py:1489
← previous
next →
1,901–2,000 of 12,274, ranked by callers