Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
14,068 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
14,068
◇
Types & classes
4,501
↳
Endpoints
96
↓ 1 callers
Method
type
(self, context: BetaToolsetCallContext, input: BetaBrowserTypeInput)
src/anthropic/lib/tools/_toolsets/_browser.py:381
↓ 1 callers
Function
type_names_under
The `type` of each member of a union and of everything in their fields, except inside a `stop_at` type.
tests/test_open_telemetry.py:8264
↓ 1 callers
Method
unconfirmed_calls
(self)
src/anthropic/lib/tools/_beta_session_runner.py:769
↓ 1 callers
Function
under
(path: tuple[str, ...], parent: tuple[str, ...])
tests/test_open_telemetry.py:8364
↓ 1 callers
Function
unfinished
(api: FakeApi, workers: tuple[str, ...])
tests/lib/environments/test_worker_properties.py:237
↓ 1 callers
Method
unposted
(self, session: FakeSession)
tests/lib/tools/test_session_runner_properties.py:306
↓ 1 callers
Method
until_done
Blocks until the stream has been consumed
src/anthropic/lib/streaming/_beta_messages.py:134
↓ 1 callers
Method
until_done
Waits until the stream has been consumed
src/anthropic/lib/streaming/_beta_messages.py:308
↓ 1 callers
Method
until_done
Waits until the stream has been consumed
src/anthropic/lib/streaming/_messages.py:296
↓ 1 callers
Method
user_input
One soon after another does nothing.
tests/lib/environments/_fake_work_api.py:244
↓ 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
Function
vetted_upload_entries
One `file_upload` field run through the file policy's `hook`: the entries the driver receives, read once (a generator is spent after one pass).
src/anthropic/lib/tools/_toolsets/_pipeline.py:365
↓ 1 callers
Method
view
View the contents of a memory path.
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:249
↓ 1 callers
Method
violations
(self)
tests/lib/environments/test_worker_properties.py:142
↓ 1 callers
Method
wait_for_all
Returns once no call is running. It never returns after a call raised.
src/anthropic/lib/tools/_beta_session_runner.py:942
↓ 1 callers
Function
walk
(e: Optional[BaseException])
tests/lib/test_credentials.py:5325
↓ 1 callers
Function
warn_env_api_key_shadows_env_auth_token
Warn that `ANTHROPIC_AUTH_TOKEN` is ignored because `ANTHROPIC_API_KEY` is set as well.
src/anthropic/lib/credentials/_auth.py:48
↓ 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. Pe
src/anthropic/lib/credentials/_auth.py:30
↓ 1 callers
Method
withhold_snapshot
(self)
src/anthropic/lib/_tracing/_streaming.py:126
↓ 1 callers
Function
without
`fields` without the value at `path`, as a copy that shares what the path does not go through.
src/anthropic/lib/_tracing/_response.py:89
↓ 1 callers
Function
without_cache_control
A copy of `value`, which `as_sent()` returned, without the `cache_control` of any block in it, however deep. Only the keys that hold blocks are fo
src/anthropic/lib/threads/_thread_state.py:652
↓ 1 callers
Method
without_events
(self)
src/anthropic/lib/tools/_beta_session_runner.py:730
↓ 1 callers
Function
without_message_delta_fields
The fields of the streamed `message` without what is under `FINAL_FROM_MESSAGE_DELTA`. Until that event the snapshot has what `message_start` put
src/anthropic/lib/_tracing/_response.py:34
↓ 1 callers
Function
without_omit
`hints` with the `| Omit` that every optional field of a thread params type adds to the type `create()` gives it.
tests/lib/threads/test_beta_threads.py:2251
↓ 1 callers
Method
work_without_lease
(self)
tests/lib/environments/test_worker_properties.py:165
↓ 1 callers
Function
write
Write a file, creating parent directories as needed.
src/anthropic/lib/tools/agent_toolset.py:1029
↓ 1 callers
Function
write_package
(repo: Path, files: dict[str, str])
tests/test_detect_breaking_changes.py:53
↓ 1 callers
Method
wrong_credentials
(self)
tests/lib/environments/test_worker_properties.py:158
↓ 1 callers
Method
wrong_heartbeats
(self)
tests/lib/environments/test_worker_properties.py:178
↓ 1 callers
Method
wrong_stops
(self)
tests/lib/environments/test_worker_properties.py:189
↓ 1 callers
Method
yielded
(self)
tests/lib/tools/_fake_sessions_api.py:165
↓ 1 callers
Function
yielding
(*copies: dict[str, Any], delay: float = 0)
tests/lib/tools/test_session_runner_properties.py:599
Method
__aenter__
(self)
src/anthropic/_response.py:690
Method
__aenter__
(self: _T)
src/anthropic/_base_client.py:2045
Method
__aenter__
(self)
src/anthropic/lib/tools/_toolsets/_runnable.py:167
Method
__aenter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:260
Method
__aenter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:374
Method
__aenter__
(self)
src/anthropic/lib/streaming/_messages.py:248
Method
__aenter__
(self)
src/anthropic/lib/streaming/_messages.py:357
Method
__aenter__
(self)
src/anthropic/lib/threads/_stream_managers.py:86
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_response.py:694
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_base_client.py:2048
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/_streaming.py:266
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, tb: TracebackType | None
src/anthropic/lib/tools/_toolsets/_runnable.py:171
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:263
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_beta_messages.py:379
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:251
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/streaming/_messages.py:362
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_t
src/anthropic/lib/threads/_stream_managers.py:92
Method
__aiter__
(self)
src/anthropic/_base_client.py:366
Method
__aiter__
(self)
src/anthropic/_base_client.py:392
Method
__aiter__
(self)
src/anthropic/_tracing.py:590
Method
__aiter__
(self)
src/anthropic/_streaming.py:194
Method
__aiter__
(self)
src/anthropic/lib/tools/_beta_runner.py:1169
Method
__aiter__
(self)
src/anthropic/lib/tools/_beta_session_runner.py:373
Method
__aiter__
(self)
src/anthropic/lib/middleware/_fallbacks.py:1712
Method
__aiter__
(self)
src/anthropic/lib/streaming/_beta_messages.py:256
Method
__aiter__
(self)
src/anthropic/lib/streaming/_messages.py:244
Method
__aiter__
(self)
src/anthropic/_vendor/httpx_aiohttp/transport.py:72
Method
__aiter__
(self)
src/anthropic/_decoders/jsonl.py:133
Method
__aiter__
(self)
tests/utils.py:200
Method
__aiter__
(self)
tests/utils.py:235
Method
__aiter__
(self)
tests/test_open_telemetry.py:632
Method
__aiter__
(self)
tests/test_open_telemetry.py:2494
Method
__aiter__
(self)
tests/test_client.py:117
Method
__aiter__
(self)
tests/lib/environments/_fake_work_api.py:187
Method
__aiter__
(self)
tests/lib/tools/_fake_sessions_api.py:217
Method
__aiter__
(self)
tests/lib/tools/test_runner_eager_tools.py:991
Method
__anext__
(self)
src/anthropic/lib/streaming/_beta_messages.py:253
Method
__anext__
(self)
src/anthropic/lib/streaming/_messages.py:241
Method
__anext__
(self)
src/anthropic/_decoders/jsonl.py:130
Method
__await__
(self)
src/anthropic/_base_client.py:347
Method
__bool__
(self)
src/anthropic/_types.py:253
Method
__bool__
(self)
src/anthropic/_types.py:283
Method
__bool__
(self)
src/anthropic/_base_client.py:2731
Method
__bool__
(self)
tests/lib/tools/toolsets/test_pipeline.py:252
Method
__call__
(self)
src/anthropic/lib/tools/_beta_functions.py:188
Method
__call__
(self, *_args: Any, **_kwds: Any)
src/anthropic/lib/tools/_beta_functions.py:237
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_types.py:65
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_types.py:76
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:508
Method
__call__
(self)
src/anthropic/lib/credentials/_providers.py:771
Method
__call__
(self, *, force_refresh: bool = False)
src/anthropic/lib/credentials/_workload.py:245
Method
__call__
The JSON that `body` is sent as, or `None` when the request went out without content.
tests/test_prepare.py:72
Method
__call__
(self, request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:325
Method
__call__
(self, request: APIRequest, call_next: CallNext)
tests/test_middleware.py:336
Method
__call__
(self, request: httpx2.Request)
tests/test_tracing.py:110
Method
__call__
(self, *_args: Any, **_kwds: Any)
tests/test_utils/test_proxy.py:13
Method
__call__
(self)
tests/lib/test_credentials.py:1590
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1599
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1679
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1739
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1756
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:1772
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:3964
Method
__call__
(self, *, force_refresh: bool = False)
tests/lib/test_credentials.py:4038
Method
__call__
(self, token: str, *, force_refresh: bool = False)
tests/lib/test_credentials.py:4084
← previous
next →
2,001–2,100 of 14,068, ranked by callers