Trustplane SDK (Python) for generating request proof headers
Project description
Trustplane Python SDK (v0.2)
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>")
Blindfold verify (one call)
from trustplane_sdk import blindfold_verify
res = blindfold_verify(
auth_base_url="https://auth.trustplane.mergematter.io",
tenant_id="new_tenant",
api_id="api_demo_2",
client_id="client_demo",
private_key_b64url="<private_key_b64url>",
method="GET",
path="/orders",
body="",
)
print(res["status"], res["data"])
Tests
python3 -m unittest sdk/python/tests/test_vector.py
Project details
Release history Release notifications | RSS feed
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.2.0.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trustplane_sdk-0.2.0.tar.gz.
File metadata
- Download URL: trustplane_sdk-0.2.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ec87b714b5ee47f0614a20a1896db1df551a48f0cbce908fff60195584dffeb
|
|
| MD5 |
01cc3e226e72e4a73a6a4ef453236268
|
|
| BLAKE2b-256 |
2b54fac01f80d4c3ddb33e60c0fbe258fc378e4d5b4af20cdc0326b102c5ee38
|
File details
Details for the file trustplane_sdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: trustplane_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98ba6b1251f7c98308ca9071d3f4bae823b7dc901cef3a43ec66f89e6a3e5a26
|
|
| MD5 |
a75391e9136f904d3cb90f3b5472cf57
|
|
| BLAKE2b-256 |
50803320ede0c60565406a573a008d9da0bc1ccefde7dc409cea77a69a8a3b00
|