Skip to main content

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


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.0.tar.gz (21.0 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.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

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

Hashes for trustbeat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ccc1eebd8f63b80a8b9a07c780214d968a19d283845f59d0376643891b83c3f0
MD5 7e33cd174c128ad3cf880391858acbe0
BLAKE2b-256 e8e1962a1b31c014b5c552da40c669fdd8bd04fa2616fa8e8e046c2cfca62e98

See more details on using hashes here.

Provenance

The following attestation bundles were made for trustbeat-0.1.0.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.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

Hashes for trustbeat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f976845550a9b4d0f257ce8b528a1380e8f02545dcb09d8859aad69796420b3
MD5 8ab799a83d559a8c7d838dd6140d019a
BLAKE2b-256 1127ad08c0938cd4715f751eadf8eb75ea0641bb4feaeb39e297e7992895b3db

See more details on using hashes here.

Provenance

The following attestation bundles were made for trustbeat-0.1.0-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 Pingdom Monitoring Sentry Error logging StatusPage Status page