__init__.py — anthropic-sdk-python Source File
Architecture documentation for __init__.py, a python file in the anthropic-sdk-python codebase. 43 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 05a7b67e_1fde_5c25_9b37_cc7e827cb62e["__init__.py"] f6cccbc2_b5f1_afc1_d6b1_b929a0d4c116["f6cccbc2:b5f1:afc1:d6b1:b929a0d4c116"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> f6cccbc2_b5f1_afc1_d6b1_b929a0d4c116 87f621ac_b3e0_a225_72b3_99f9818f3002["_types.py"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> 87f621ac_b3e0_a225_72b3_99f9818f3002 14d855f4_2395_cbc9_e501_5be17b6905d0["Omit"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> 14d855f4_2395_cbc9_e501_5be17b6905d0 0a69184e_7509_e793_afa4_1a03f37f5311["NoneType"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> 0a69184e_7509_e793_afa4_1a03f37f5311 f30eca5a_2fa0_68c1_64aa_b52331a2dcc8["NotGiven"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> f30eca5a_2fa0_68c1_64aa_b52331a2dcc8 6dadb144_3070_6111_357f_214554108905["__init__.py"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> 6dadb144_3070_6111_357f_214554108905 3a4e7de9_0222_597c_a697_7ff97bd0dafc["_client.py"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> 3a4e7de9_0222_597c_a697_7ff97bd0dafc 0517492b_78c2_27e9_22ae_aae3b5f0e93e["Anthropic"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> 0517492b_78c2_27e9_22ae_aae3b5f0e93e 0fd89929_7b38_b43a_7bae_43e09dda2e19["AsyncAnthropic"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> 0fd89929_7b38_b43a_7bae_43e09dda2e19 3912cc3f_b0e8_a732_b8e2_613b018b830d["_models.py"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> 3912cc3f_b0e8_a732_b8e2_613b018b830d 17ce5647_6f06_0676_a4a5_e378a3f57cb1["BaseModel"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> 17ce5647_6f06_0676_a4a5_e378a3f57cb1 bb24da94_fa7d_baef_2969_cb15c30df3ae["_version.py"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> bb24da94_fa7d_baef_2969_cb15c30df3ae 2e9c15bb_de03_aa91_93be_0e05db0a552e["_response.py"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> 2e9c15bb_de03_aa91_93be_0e05db0a552e c5dafd2e_e591_b4ff_d0c8_67a1204aef83["APIResponse"] 05a7b67e_1fde_5c25_9b37_cc7e827cb62e --> c5dafd2e_e591_b4ff_d0c8_67a1204aef83 style 05a7b67e_1fde_5c25_9b37_cc7e827cb62e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import typing as _t
from . import types
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given
from ._utils import file_from_path
from ._client import (
Client,
Stream,
Timeout,
Anthropic,
Transport,
AsyncClient,
AsyncStream,
AsyncAnthropic,
RequestOptions,
)
from ._models import BaseModel
from ._version import __title__, __version__
from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
from ._constants import (
AI_PROMPT as AI_PROMPT,
HUMAN_PROMPT as HUMAN_PROMPT,
DEFAULT_TIMEOUT,
DEFAULT_MAX_RETRIES,
DEFAULT_CONNECTION_LIMITS,
)
from ._exceptions import (
APIError,
ConflictError,
NotFoundError,
AnthropicError,
APIStatusError,
RateLimitError,
APITimeoutError,
BadRequestError,
APIConnectionError,
AuthenticationError,
InternalServerError,
PermissionDeniedError,
UnprocessableEntityError,
APIResponseValidationError,
)
from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
from ._utils._logs import setup_logging as _setup_logging
from .lib._parse._transform import transform_schema
__all__ = [
"types",
"__version__",
"__title__",
"NoneType",
"Transport",
"ProxiesTypes",
"NotGiven",
"NOT_GIVEN",
"not_given",
"Omit",
"omit",
// ... (61 more lines)
Domain
Subdomains
Dependencies
- APIConnectionError
- APIError
- APIResponse
- APIResponseValidationError
- APIStatusError
- APITimeoutError
- Anthropic
- AnthropicError
- AsyncAPIResponse
- AsyncAnthropic
- AuthenticationError
- BadRequestError
- BaseModel
- ConflictError
- DefaultAsyncHttpxClient
- DefaultHttpxClient
- InternalServerError
- NoneType
- NotFoundError
- NotGiven
- Omit
- PermissionDeniedError
- RateLimitError
- UnprocessableEntityError
- __init__.py
- _base_client.py
- _client.py
- _constants.py
- _exceptions.py
- _models.py
- _response.py
- _types.py
- _utils._logs
- _utils._resources_proxy
- _version.py
- f6cccbc2:b5f1:afc1:d6b1:b929a0d4c116
- lib._parse._transform
- lib.bedrock
- lib.foundry
- lib.streaming
- lib.tools
- lib.vertex
- typing
Source
Frequently Asked Questions
What does __init__.py do?
__init__.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain, SyncAPI subdomain.
What functions are defined in __init__.py?
__init__.py defines 2 function(s): __name, _utils.
What does __init__.py depend on?
__init__.py imports 43 module(s): APIConnectionError, APIError, APIResponse, APIResponseValidationError, APIStatusError, APITimeoutError, Anthropic, AnthropicError, and 35 more.
Where is __init__.py in the architecture?
__init__.py is located at src/anthropic/__init__.py (domain: AnthropicClient, subdomain: SyncAPI, directory: src/anthropic).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free