thresh-sdk
Official Python client for Thresh: documents in, schema-conformant JSON out. Full API reference at https://usethresh.com/docs.
from thresh import Thresh
client = Thresh(api_key="th_live_...")
doc = client.upload(
"contract.pdf",
fields=["purchase_price", "closing_date", "buyer_name"],
tables=[{"name": "monthly_charges", "columns": ["item", "qty", "mrc"]}],
questions=["Is the contract contingent upon financing?"],
)
result = client.wait(doc.id)
result.fields["purchase_price"] # "399900"
result.tables["monthly_charges"] # [{"item": ..., "qty": ..., "mrc": ...}, ...]
result.answer("Is the contract contingent upon financing?") # "Yes"
upload(...)accepts a path or a binary file object; passidempotency_key=to make retries safe.- No schema?
client.upload("contract.pdf")runs auto-extraction: the engine discovers and names the fields and tables itself. Refine what it found, thenclient.create_template("sale-contract", fields=[...])and reuse it withclient.upload("next.pdf", template="sale-contract"). wait(id, timeout=300)polls untilcompletedorfailed(failed results return with.errorset, no exception).verify_webhook_signature(secret, header, body)validatesThresh-Signatureheaders on webhook deliveries.- Errors raise
ThreshErrorwith.status,.error_type, and.request_id.
Missing values come back as the string "null"; checkbox states as
"true"/"false".
Metadata
Release files for thresh-sdk 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| thresh_sdk-0.9.1.tar.gz | 20.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| thresh_sdk-0.9.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.7 kB
Release files / thresh_sdk-0.9.1.tar.gz
| Download URL | thresh_sdk-0.9.1.tar.gz |
|---|---|
| Size | 20.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e6240dd57d16176245cec50275f6b7019ac46fc1adc7667ef82c132cb6c3daf
|
|
BLAKE2b-256 checksum How to use checksums |
7c57fdcf2e4456bdb1febae1c9b1bfeec28440451fed122aacfc20c4991903b4
|
| 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 Aug 15, 2026.
Transparency logRelease files / thresh_sdk-0.9.1-py3-none-any.whl
| Download URL | thresh_sdk-0.9.1-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1edfa8c84fff8fd619e826c88d567ab56102ee6fc95c1d5b77e8f1ffe3437f9
|
|
BLAKE2b-256 checksum How to use checksums |
21afad447d335c1a6a721a614f9791bb768386c4f821f9b939e77874d4b5f8a2
|
| 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 Aug 15, 2026.
Transparency logSecurity for thresh-sdk 0.9.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for thresh_sdk-0.9.1.tar.gz
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 Aug 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.