TrustBeat SDK — qualified timestamping and Merkle anchoring
Project description
TrustBeat Python SDK
Qualified electronic timestamps and Merkle anchoring — eIDAS-compliant, over a simple API.
Install
pip install trustbeat
Quickstart
from trustbeat import TrustBeat
tb = TrustBeat(api_key="tb_live_...")
# Anchor a file (SHA-256 computed locally, file never leaves your machine).
# anchor_file_wait() blocks until the proof is ready (next batch, up to 11 min).
proof = tb.anchor_file_wait("contract.pdf")
print(proof.id) # tracking ID
print(proof.anchored_at) # ISO 8601 timestamp
print(proof.merkle_root) # Merkle root of the batch
# Verify locally — no network call
assert tb.verify(proof)
# Or anchor a raw SHA-256 hash without blocking, then wait for the proof.
job = tb.anchor("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855")
print(job.id) # tracking ID, returned immediately (202)
proof = tb.anchor_wait(job.id) # blocks up to 11 min
Requirements
- Python 3.9+
- Zero runtime dependencies (stdlib only)
Documentation
Full API reference and guides at api.trustbeat.eu/docs
License
MIT — see LICENSE
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
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 trustbeat-0.1.0.tar.gz.
File metadata
- Download URL: trustbeat-0.1.0.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccc1eebd8f63b80a8b9a07c780214d968a19d283845f59d0376643891b83c3f0
|
|
| MD5 |
7e33cd174c128ad3cf880391858acbe0
|
|
| BLAKE2b-256 |
e8e1962a1b31c014b5c552da40c669fdd8bd04fa2616fa8e8e046c2cfca62e98
|
Provenance
The following attestation bundles were made for trustbeat-0.1.0.tar.gz:
Publisher:
publish.yml on TrustBeat/sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trustbeat-0.1.0.tar.gz -
Subject digest:
ccc1eebd8f63b80a8b9a07c780214d968a19d283845f59d0376643891b83c3f0 - Sigstore transparency entry: 2025497207
- Sigstore integration time:
-
Permalink:
TrustBeat/sdk-python@04ba1af9bd0b4417b99cffb035f95a3a9e87156f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/TrustBeat
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@04ba1af9bd0b4417b99cffb035f95a3a9e87156f -
Trigger Event:
push
-
Statement type:
File details
Details for the file trustbeat-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trustbeat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f976845550a9b4d0f257ce8b528a1380e8f02545dcb09d8859aad69796420b3
|
|
| MD5 |
8ab799a83d559a8c7d838dd6140d019a
|
|
| BLAKE2b-256 |
1127ad08c0938cd4715f751eadf8eb75ea0641bb4feaeb39e297e7992895b3db
|
Provenance
The following attestation bundles were made for trustbeat-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on TrustBeat/sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trustbeat-0.1.0-py3-none-any.whl -
Subject digest:
7f976845550a9b4d0f257ce8b528a1380e8f02545dcb09d8859aad69796420b3 - Sigstore transparency entry: 2025497264
- Sigstore integration time:
-
Permalink:
TrustBeat/sdk-python@04ba1af9bd0b4417b99cffb035f95a3a9e87156f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/TrustBeat
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@04ba1af9bd0b4417b99cffb035f95a3a9e87156f -
Trigger Event:
push
-
Statement type: