A Python client for interacting with the Tappd daemon via Unix socket communication.
pip install tappd-clientfrom tappd_client import TappdClient
# Initialize the client
client = TappdClient() # Default socket path: /var/run/tappd.sock
# Or specify custom socket path
client = TappdClient(socket_path='/custom/path/tappd.sock')
# Get TDX quote
# Using binary data
binary_data = b'Hello World'
response = client.tdx_quote(binary_data)
# Using string data
string_data = "Hello World"
response = client.tdx_quote(string_data)
# Get the quote
quote = response.quote
# Get event log
event_log = response.event_log
# Replay RTMRS from the event log
rtmrs = response.replay_rtmrs()
RTMR0 = rtmrs[0]
RTMR1 = rtmrs[1]
RTMR2 = rtmrs[2]
RTMR3 = rtmrs[3]This project is licensed under the MIT License. See the LICENSE file for more details.