Skip to main content

htl-sign

Generate X-Trust signed human-presence HTTP headers. Standard library only.

Install

pip install htl-sign

Usage

from htl_sign import build_x_trust_header
headers = build_x_trust_header(secret="your_secret", sub="user-1", score=0.88)
# headers == {"X-Trust": "v1.eyJ...signature"}

What it does

Signs a JSON payload {sub, score, iat, exp} with HMAC-SHA256, base64url-encoded, prefixed with "v1.". Compatible with htl-verify (Python) and @htl-syterme/htl-core (TypeScript).

  • Spec: github.com/htl-syterme/htl-core/blob/main/SPEC.md
  • Dashboard: htl-syterme.github.io/htl-core

Release files for htl-sign 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for htl-sign 1.0.0
File Size Uploaded
htl_sign-1.0.0.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for htl-sign 1.0.0
File Interpreter ABI Platform
htl_sign-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size:4.7 kB

Release files / htl_sign-1.0.0.tar.gz

Download URL htl_sign-1.0.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6f6d9f61048db02c25ee94355b5f21329df47fc056ad538e11dd48a179b58342
BLAKE2b-256 checksum
How to use checksums
e7d9c83761b51946d8068b28d98ab9c726fcc541c616cbdf53c8d2af47a17f8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release files / htl_sign-1.0.0-py3-none-any.whl

Download URL htl_sign-1.0.0-py3-none-any.whl
Size 2.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb70ccf5321eec07d2da930ae98b64ae890187c495186a820a05ef5eda3af0bd
BLAKE2b-256 checksum
How to use checksums
762ab673e545fbf7883c9514f051b5f32ad24ddc6850c1cc6764a96de3f89d33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page