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
↓ 1 callers
Method
start
Track a content_block_start, shifting `event["index"]`.
src/anthropic/lib/middleware/_fallbacks.py:1209
↓ 1 callers
Method
str_replace
Replace text in a memory file.
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:257
↓ 1 callers
Function
stream_error
()
examples/text_completions_streaming.py:43
↓ 1 callers
Method
stream_to_file
Streams the output to the given file. Accepts a filename or any path-like object, e.g. pathlib.Path
src/anthropic/_response.py:569
↓ 1 callers
Method
stringify
( self, params: Params, *, array_format: ArrayFormat | NotGiven = not_given,
src/anthropic/_qs.py:36
↓ 1 callers
Method
sync_auth_flow
(self, request: httpx.Request)
src/anthropic/lib/credentials/_auth.py:105
↓ 1 callers
Function
sync_client
()
examples/vertex.py:6
↓ 1 callers
Function
sync_stream
()
examples/text_completions_streaming.py:15
↓ 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
(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:365
↓ 1 callers
Method
until_done
Blocks until the stream has been consumed
src/anthropic/lib/streaming/_beta_messages.py:121
↓ 1 callers
Method
until_done
Waits until the stream has been consumed
src/anthropic/lib/streaming/_beta_messages.py:270
↓ 1 callers
Method
until_done
Waits until the stream has been consumed
src/anthropic/lib/streaming/_messages.py:266
↓ 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
Method
__aenter__
(self)
src/anthropic/_response.py:676
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:222
Method
__aenter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:321
Method
__aenter__
(self)
src/anthropic/lib/streaming/_messages.py:218
Method
__aenter__
(self)
src/anthropic/lib/streaming/_messages.py:316
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_response.py:680
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:225
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:326
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:221
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:321
Method
__aexit__
(self, *exc: object)
tests/lib/tools/test_session_runner.py:137
Method
__aiter__
(self)
src/anthropic/_base_client.py:327
Method
__aiter__
(self)
src/anthropic/_base_client.py:353
Method
__aiter__
(self)
src/anthropic/_streaming.py:238
Method
__aiter__
(self)
src/anthropic/lib/tools/_beta_runner.py:456
Method
__aiter__
(self)
src/anthropic/lib/tools/_beta_session_runner.py:360
Method
__aiter__
(self)
src/anthropic/lib/middleware/_fallbacks.py:1559
Method
__aiter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:218
Method
__aiter__
(self)
src/anthropic/lib/streaming/_messages.py:214
Method
__aiter__
(self)
src/anthropic/_decoders/jsonl.py:121
Method
__aiter__
(self)
tests/lib/tools/test_session_runner.py:140
Method
__anext__
(self)
src/anthropic/lib/tools/_beta_runner.py:453
Method
__anext__
(self)
src/anthropic/lib/streaming/_beta_messages.py:215
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:40
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:115
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:126
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_providers.py:450
Method
__call__
(self)
src/anthropic/lib/credentials/_providers.py:690
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_workload.py:220
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:209
Method
__enter__
(self)
src/anthropic/lib/middleware/_fallbacks.py:71
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:212
Method
__exit__
(self, *exc_info: object)
src/anthropic/lib/middleware/_fallbacks.py:76
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
← previous
next →
801–900 of 4,447, ranked by callers