Metadata-Version: 2.3
Name: tappd-client
Version: 0.1.3
Summary: Python client for Tappd in DStack CVM
Author-email: Kevin Wang <wy721@qq.com>
License: MIT
Keywords: dstack,tappd
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.7
Requires-Dist: requests-unixsocket2>=0.4.2
Description-Content-Type: text/markdown

# Tappd Client

A Python client for interacting with the Tappd daemon via Unix socket communication.

## Installation

```bash
pip install tappd-client
```

## Usage

```python
from 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]
```

## License

This project is licensed under the MIT License. See the LICENSE file for more details.
