Skip to main content

Python client for Tappd in DStack CVM

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Tappd Client

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

Installation

pip install tappd-client

Usage

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tappd_client-0.1.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tappd_client-0.1.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file tappd_client-0.1.3.tar.gz.

File metadata

  • Download URL: tappd_client-0.1.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for tappd_client-0.1.3.tar.gz
Algorithm Hash digest
SHA256 954043e08b439497e78367280b314c9fc1328a3b92be726ea07a205b8c14f734
MD5 e0f4bd0faec6818a64632ae0ab685b96
BLAKE2b-256 2ef56b0e3cd99a2c5bbd9945b55fcb7d580c4bc509122fc60109bf0bb135d4cf

See more details on using hashes here.

File details

Details for the file tappd_client-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: tappd_client-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for tappd_client-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 98e7ee952c1badfab308b42e87e5135f9cae73603ac4f00b05da389dba5ff53e
MD5 2dede9bab26f93df87f86c551f10e911
BLAKE2b-256 92c30bdc3fc23da5dcc910e581905d9272ef483bd829580dc1f2b70cd3824832

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page