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

Method __init__

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

Initialize deprecated tappd client wrapper.

(self, endpoint: str | None = None, timeout: float = 3)

Source from the content-addressed store, hash-verified

726 """
727
728 def __init__(self, endpoint: str | None = None, timeout: float = 3):
729 """Initialize deprecated tappd client wrapper."""
730 emit_deprecation_warning(
731 "TappdClient is deprecated, please use DstackClient instead"
732 )
733 endpoint = get_tappd_endpoint(endpoint)
734 self.async_client = AsyncTappdClient(
735 endpoint, use_sync_http=True, timeout=timeout
736 )
737
738 @call_async
739 def derive_key(

Callers 1

__init__Method · 0.45

Calls 3

emit_deprecation_warningFunction · 0.85
AsyncTappdClientClass · 0.85
get_tappd_endpointFunction · 0.70

Tested by

no test coverage detected