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

Class TappdClient

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

Deprecated client kept for backward compatibility. DEPRECATED: Use ``DstackClient`` instead.

Source from the content-addressed store, hash-verified

720
721
722class TappdClient(DstackClient):
723 """Deprecated client kept for backward compatibility.
724
725 DEPRECATED: Use ``DstackClient`` instead.
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(
740 self,
741 path: str | None = None,
742 subject: str | None = None,
743 alt_names: List[str] | None = None,
744 ) -> GetTlsKeyResponse:
745 """Use ``get_key`` instead (deprecated)."""
746 raise NotImplementedError
747
748 @call_async
749 def tdx_quote(
750 self,
751 report_data: str | bytes,
752 hash_algorithm: str | None = None,
753 ) -> GetQuoteResponse:
754 """Use ``get_quote`` instead (deprecated)."""
755 raise NotImplementedError
756
757 @call_async
758 def info(self) -> InfoResponse[TcbInfo]:
759 """Fetch service information including parsed TCB info."""
760 raise NotImplementedError
761
762 @call_async
763 def __enter__(self):
764 raise NotImplementedError
765
766 @call_async
767 def __exit__(self, exc_type, exc_val, exc_tb):
768 raise NotImplementedError

Callers 4

mainFunction · 0.90

Calls

no outgoing calls

Tested by 4

mainFunction · 0.72