Home / Class/ AsyncAPIResource Class — anthropic-sdk-python Architecture

AsyncAPIResource Class — anthropic-sdk-python Architecture

Architecture documentation for the AsyncAPIResource class in _resource.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  f98629a5_73f4_23f2_1f7f_c8db837848d1["AsyncAPIResource"]
  9f4d3871_4fd4_4b70_e093_fa84668403b5["_resource.py"]
  f98629a5_73f4_23f2_1f7f_c8db837848d1 -->|defined in| 9f4d3871_4fd4_4b70_e093_fa84668403b5
  d4e52a05_8bb5_c159_860a_8eb3e94c0222["__init__()"]
  f98629a5_73f4_23f2_1f7f_c8db837848d1 -->|method| d4e52a05_8bb5_c159_860a_8eb3e94c0222
  5109184f_22fe_cc31_9b4b_1dc5ac1940ed["_sleep()"]
  f98629a5_73f4_23f2_1f7f_c8db837848d1 -->|method| 5109184f_22fe_cc31_9b4b_1dc5ac1940ed

Relationship Graph

Source Code

src/anthropic/_resource.py lines 28–41

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)

Frequently Asked Questions

What is the AsyncAPIResource class?
AsyncAPIResource is a class in the anthropic-sdk-python codebase, defined in src/anthropic/_resource.py.
Where is AsyncAPIResource defined?
AsyncAPIResource is defined in src/anthropic/_resource.py at line 28.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free