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
↓ 1 callers
Function
takes_pydantic
(model: pydantic.BaseModel)
tests/test_models.py:637
↓ 1 callers
Function
to_aiter
(iter: Iterator[bytes])
tests/decoders/test_jsonl.py:63
↓ 1 callers
Method
to_dict
Recursively generate a dictionary representation of the model, optionally specifying which fields to include or exclude. By default, fields t
src/anthropic/_models.py:145
↓ 1 callers
Method
to_dict
(self)
src/anthropic/lib/tools/_beta_functions.py:73
↓ 1 callers
Method
to_dict
(self)
src/anthropic/lib/tools/_beta_functions.py:88
↓ 1 callers
Function
to_thread
( func: Callable[T_ParamSpec, T_Retval], /, *args: T_ParamSpec.args, **kwargs: T_ParamSpec.kwargs )
src/anthropic/_utils/_sync.py:16
↓ 1 callers
Function
transform
Transform dictionaries based off of type information from the given type, for example: ```py class Params(TypedDict, total=False): ca
src/anthropic/_utils/_transform.py:92
↓ 1 callers
Method
until_done
Drive the runner to completion, discarding the per-call observations. Named to match ``BetaToolRunner.until_done`` (and to avoid colliding
src/anthropic/lib/tools/_beta_session_runner.py:472
↓ 1 callers
Method
until_done
Blocks until the stream has been consumed
src/anthropic/lib/streaming/_beta_messages.py:125
↓ 1 callers
Method
until_done
Waits until the stream has been consumed
src/anthropic/lib/streaming/_beta_messages.py:278
↓ 1 callers
Method
until_done
Waits until the stream has been consumed
src/anthropic/lib/streaming/_messages.py:274
↓ 1 callers
Function
validate_async_middleware
(middleware: Iterable[MiddlewareInput])
src/anthropic/_middleware.py:107
↓ 1 callers
Function
validate_sync_middleware
(middleware: Iterable[MiddlewareInput])
src/anthropic/_middleware.py:85
↓ 1 callers
Method
view
View the contents of a memory path.
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:247
↓ 1 callers
Function
walk
(e: Optional[BaseException])
tests/lib/test_credentials.py:3521
↓ 1 callers
Function
warn_env_static_shadows_auto_discovery
Warn that an ``ANTHROPIC_API_KEY`` / ``ANTHROPIC_AUTH_TOKEN`` from the environment is shadowing the SDK's profile / federation auto-discovery.
src/anthropic/lib/credentials/_auth.py:47
↓ 1 callers
Function
warn_explicit_static_shadows_credentials
Warn that an explicit ``api_key=`` / ``auth_token=`` argument shadows an explicit ``credentials=`` provider passed to the same constructor or
src/anthropic/lib/credentials/_auth.py:31
↓ 1 callers
Function
write
Write a file, creating parent directories as needed.
src/anthropic/lib/tools/agent_toolset.py:679
Method
__aenter__
(self)
src/anthropic/_response.py:684
Method
__aenter__
(self: _T)
src/anthropic/_base_client.py:1792
Method
__aenter__
(self)
src/anthropic/_streaming.py:341
Method
__aenter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:230
Method
__aenter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:329
Method
__aenter__
(self)
src/anthropic/lib/streaming/_messages.py:226
Method
__aenter__
(self)
src/anthropic/lib/streaming/_messages.py:324
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_response.py:688
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_base_client.py:1795
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_streaming.py:344
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:233
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:334
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:229
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:329
Method
__aexit__
(self, *exc: object)
tests/lib/tools/test_session_runner.py:154
Method
__aiter__
(self)
src/anthropic/_base_client.py:326
Method
__aiter__
(self)
src/anthropic/_base_client.py:352
Method
__aiter__
(self)
src/anthropic/_streaming.py:238
Method
__aiter__
(self)
src/anthropic/lib/tools/_beta_runner.py:467
Method
__aiter__
(self)
src/anthropic/lib/tools/_beta_session_runner.py:467
Method
__aiter__
(self)
src/anthropic/lib/middleware/_fallbacks.py:1630
Method
__aiter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:226
Method
__aiter__
(self)
src/anthropic/lib/streaming/_messages.py:222
Method
__aiter__
(self)
src/anthropic/_decoders/jsonl.py:121
Method
__aiter__
(self)
tests/lib/tools/test_session_runner.py:157
Method
__anext__
(self)
src/anthropic/lib/tools/_beta_runner.py:464
Method
__anext__
(self)
src/anthropic/lib/streaming/_beta_messages.py:223
Method
__anext__
(self)
src/anthropic/lib/streaming/_messages.py:219
Method
__anext__
(self)
src/anthropic/_decoders/jsonl.py:118
Method
__await__
(self)
src/anthropic/_base_client.py:310
Method
__bool__
(self)
src/anthropic/_types.py:151
Method
__bool__
(self)
src/anthropic/_types.py:181
Method
__bool__
(self)
src/anthropic/_base_client.py:2409
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:59
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:124
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:135
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:506
Method
__call__
(self)
src/anthropic/lib/credentials/_providers.py:772
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_workload.py:249
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:1444
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1453
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1500
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1560
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1577
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1593
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:2949
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:3124
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:3177
Method
__call__
(self, **kwargs: object)
tests/lib/test_bedrock_mantle.py:19
Method
__contains__
(self, value: object, /)
src/anthropic/_types.py:268
Method
__del__
(self)
src/anthropic/_base_client.py:967
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:660
Method
__enter__
(self: _T)
src/anthropic/_base_client.py:1052
Method
__enter__
(self)
src/anthropic/lib/credentials/_workload.py:238
Method
__enter__
(self)
src/anthropic/lib/middleware/_fallbacks.py:81
Method
__enter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:77
Method
__enter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:174
Method
__enter__
(self)
src/anthropic/lib/streaming/_messages.py:170
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_response.py:664
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_base_client.py:1055
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:241
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:80
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:179
Method
__exit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:175
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:443
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:610
Method
__init__
(self)
src/anthropic/_response.py:637
Method
__init__
(self, request_func: Callable[[], _APIResponseT])
src/anthropic/_response.py:656
← previous
next →
901–1,000 of 5,068, ranked by callers