Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

HALTSEAL Payments SDK for Python

Dependency-free client for Python 3.12+. Registry beta candidate 0.2.0rc2; PyPI publication is pending. After publication, in a fresh virtual environment:

python -m pip install haltseal-payments==0.2.0rc2
python -m haltseal_payments_sdk.sandbox --output python-sandbox.json

The explicit demo creates a short-lived synthetic session at https://haltseal.com. Only Python is needed; the output omits its key and never overwrites an existing file. Offline wheels remain available through versioned GitHub releases.

from haltseal_payments_sdk import Client, UncertainDispatch

# Persist operation_id with the intended request before dispatch.
operation_id = "your-retained-operation-id"
with Client("https://your-evaluation-origin.example", "your-evaluation-key") as client:
    try:
        result = client.create_attempt("your-obligation-id", operation_id=operation_id,
                                       route="A", approval_revision=1)
    except UncertainDispatch as error:
        # Lookup failure preserves the hold. It grants no replacement.
        result = client.lookup_operation(error.operation_id, obligation_id=error.obligation_id)
    # Check decision and execution_outcome before any next step.

This snippet requires a configured evaluator. To run immediately without one, use python3 tools/quickstart.py at the repository root.

Creation uncertainty retains operation_id and LOOKUP_OPERATION. Resume/cancel/recover uncertainty retains attempt_id and LOOKUP_ATTEMPT. Read failures retain REPEAT_READ. No automatic retry or fallback occurs. Lookup 404 is not proof of original closure. Recovery context is immutable and JSON serializable, without the API key or signed source payload.

approve_source requires original signed JSON text. Do not rewrite it. Custom transports must preserve one send, verified TLS and refused redirects. Event callbacks receive redacted request metadata.

SDK v2 (0.2.0rc1) verifies echoed operation/obligation IDs and complete attempt records. timeout is a total caller deadline across transport, body and response validation. Default HTTP connects directly, verifies HTTPS and closes its socket on timeout. Custom transports run on bounded SDK workers; they must be thread-safe and preserve one send. An uninterruptible adapter can finish later, so a deadline never grants a replacement payment. Event callbacks must return promptly. Read the migration guide.

Recovery · API docs

HOLD/REFUSE block the new financial step. ACCEPT is not proof of payment. Production remains NO_GO. MIT licensed client only.

Metadata

Release files for haltseal-payments 0.2.0rc2

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

Built distribution (wheel)

Table of built distributions (wheels) for haltseal-payments 0.2.0rc2
File Interpreter ABI Platform
haltseal_payments-0.2.0rc2-py3-none-any.whl Python 3 none any Details

Release files / haltseal_payments-0.2.0rc2-py3-none-any.whl

Download URL haltseal_payments-0.2.0rc2-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
becd257048668520bec2ff13b31d62a36c14d0bd84ed65ed120b83825ed7d451
BLAKE2b-256 checksum
How to use checksums
6f59d0ef934d7b3188da7555fbb856165231e68c3bc31146ff97d910c7f27e85
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 Oct 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0rc2 This release

1 release file

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