_resource.py — anthropic-sdk-python Source File
Architecture documentation for _resource.py, a python file in the anthropic-sdk-python codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 9f4d3871_4fd4_4b70_e093_fa84668403b5["_resource.py"] 31e60ad8_cac8_652d_176d_4f7cf7dda1ad["_base_client.py"] 9f4d3871_4fd4_4b70_e093_fa84668403b5 --> 31e60ad8_cac8_652d_176d_4f7cf7dda1ad 4b46ed95_ff71_ea5d_7534_6929dc929bdb["SyncAPIClient"] 9f4d3871_4fd4_4b70_e093_fa84668403b5 --> 4b46ed95_ff71_ea5d_7534_6929dc929bdb 3224f719_8046_78c8_59e1_47301a46ddd4["AsyncAPIClient"] 9f4d3871_4fd4_4b70_e093_fa84668403b5 --> 3224f719_8046_78c8_59e1_47301a46ddd4 fc8f16cf_4f31_976d_68d3_fa49ea4ffdd0["time"] 9f4d3871_4fd4_4b70_e093_fa84668403b5 --> fc8f16cf_4f31_976d_68d3_fa49ea4ffdd0 40396b02_9c68_4765_9e00_db68fce91470["anyio"] 9f4d3871_4fd4_4b70_e093_fa84668403b5 --> 40396b02_9c68_4765_9e00_db68fce91470 style 9f4d3871_4fd4_4b70_e093_fa84668403b5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
import time
import anyio
from ._base_client import SyncAPIClient, AsyncAPIClient
class SyncAPIResource:
_client: SyncAPIClient
def __init__(self, client: SyncAPIClient) -> None:
self._client = client
self._get = client.get
self._post = client.post
self._patch = client.patch
self._put = client.put
self._delete = client.delete
self._get_api_list = client.get_api_list
def _sleep(self, seconds: float) -> None:
time.sleep(seconds)
class AsyncAPIResource:
_client: AsyncAPIClient
def __init__(self, client: AsyncAPIClient) -> None:
self._client = client
self._get = client.get
self._post = client.post
self._patch = client.patch
self._put = client.put
self._delete = client.delete
self._get_api_list = client.get_api_list
async def _sleep(self, seconds: float) -> None:
await anyio.sleep(seconds)
Domain
Subdomains
Classes
Dependencies
Source
Frequently Asked Questions
What does _resource.py do?
_resource.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain, AsyncAPI subdomain.
What does _resource.py depend on?
_resource.py imports 5 module(s): AsyncAPIClient, SyncAPIClient, _base_client.py, anyio, time.
Where is _resource.py in the architecture?
_resource.py is located at src/anthropic/_resource.py (domain: AnthropicClient, subdomain: AsyncAPI, directory: src/anthropic).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free