Skip to main content

TrustBeat Python SDK

Qualified electronic timestamps and Merkle anchoring — eIDAS-compliant, over a simple API.

Part of TrustBeat — digital trust infrastructure for the EU.

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

Download files

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

Source Distribution

trustbeat-0.1.1.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

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

trustbeat-0.1.1-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trustbeat-0.1.1.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for trustbeat-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3f02ac86af224a17b105e0d0f8bb741bd81de9b425ab1b7e072694a599db7b59
MD5 d30e07da84bb6cf047c39d8f29373fc7
BLAKE2b-256 85484c8299eaaec39ecab38ca4d6d8a28b909a65fb49b16188f5cf52f4a27498

See more details on using hashes here.

Provenance

The following attestation bundles were made for trustbeat-0.1.1.tar.gz:

Publisher: publish.yml on TrustBeat/sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: trustbeat-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for trustbeat-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c27d6d605a372f5024bcb8ecd248ec7cba3c9ce588a7e361d0b46d14af6bec48
MD5 ec7c84075021e858df6971ed20d2efea
BLAKE2b-256 4b6c30fed10d110817a2dc7f0bb5a3b100f5b15c1be3a2d031831b7b190e1ed8

See more details on using hashes here.

Provenance

The following attestation bundles were made for trustbeat-0.1.1-py3-none-any.whl:

Publisher: publish.yml on TrustBeat/sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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