Skip to main content

Trustplane SDK (Python) for generating request proof headers

Project description

Trustplane Python SDK (v0.1)

Minimal SDK to generate Trustplane proof headers.

Install

pip install trustplane-sdk

Usage

from trustplane_sdk import sign

out = sign(
    tenant_id="mergematter.io",
    api_id="api_demo",
    client_id="client_demo",
    private_key_b64url="<private_key_b64url>",
    method="GET",
    path="/orders",
    body=""
)

print(out["headers"])

Config file

from trustplane_sdk import from_file

client = from_file("./trustplane.json")
out = client.sign(method="GET", path="/orders", body="", private_key_b64url="<private_key_b64url>")

Tests

python3 -m unittest sdk/python/tests/test_vector.py

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

trustplane_sdk-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

trustplane_sdk-0.1.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file trustplane_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: trustplane_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for trustplane_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4f717027dc783dae785f48392d9f7ad5307835f1e94de43a35106b8dd32006bc
MD5 8cea16a084f5e64155ffca5e3a8f4863
BLAKE2b-256 ceb713c4293c136bc8ce2267f7a7b25cbe76e8de68e0ed87d725a2b969eacbf0

See more details on using hashes here.

File details

Details for the file trustplane_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: trustplane_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for trustplane_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f9010bfc0aefb0586852974442ec705a06bcb6ad324e4b225c428aa9aa232338
MD5 1ecdf4fffa5d8c94caef00a24b6dc7dc
BLAKE2b-256 7fd37e1b33801d9425145a7f1d72b867c043edd97e1c203084795a04f406b503

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