MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / __init__

Method __init__

sdk/python/src/dstack_sdk/dstack_client.py:643–660  ·  view source on GitHub ↗

Initialize deprecated async tappd client wrapper.

(
        self,
        endpoint: str | None = None,
        *,
        use_sync_http: bool = False,
        timeout: float = 3,
    )

Source from the content-addressed store, hash-verified

641 """
642
643 def __init__(
644 self,
645 endpoint: str | None = None,
646 *,
647 use_sync_http: bool = False,
648 timeout: float = 3,
649 ):
650 """Initialize deprecated async tappd client wrapper."""
651 if not use_sync_http:
652 # Already warned in TappdClient.__init__
653 emit_deprecation_warning(
654 "AsyncTappdClient is deprecated, please use AsyncDstackClient instead"
655 )
656
657 endpoint = get_tappd_endpoint(endpoint)
658 super().__init__(endpoint, use_sync_http=use_sync_http, timeout=timeout)
659 # Set the correct path prefix for tappd
660 self.PATH_PREFIX = "/prpc/Tappd."
661
662 async def derive_key(
663 self,

Callers

nothing calls this directly

Calls 3

emit_deprecation_warningFunction · 0.85
get_tappd_endpointFunction · 0.70
__init__Method · 0.45

Tested by

no test coverage detected