Sigmodx Python SDK
Install:
pip install sigmodx
Quickstart
from decimal import Decimal
from sigmodx import SigmodxClient, InvoiceDecision, hash_inputs
payload = {
"invoice_amount": 142500.00,
"vendor_id": "VENDOR-4821",
"po_reference": "PO-4821",
"invoice_reference": "INV-2026-0042",
}
client = SigmodxClient(api_key="sk_...", agent_id="your-agent-uuid")
decision = InvoiceDecision(
decision_type="approve",
input_hash=hash_inputs(payload),
rationale="Within delegated authority; PO matches contract.",
confidence=0.94,
invoice_amount=Decimal("142500.00"),
vendor_name="Acme Consulting LLC",
vendor_id="VENDOR-4821",
po_reference="PO-4821",
invoice_reference="INV-2026-0042",
delegated_authority_limit=Decimal("500000.00"),
)
result = client.submit_invoice_decision(decision)
print(result.decision_event_id, result.requires_human_approval)
client.close()
hash_inputs()
Include structural fields your agent used to decide (amounts, references, field names). Keys are sorted before hashing so the digest is stable.
Security: Never include sensitive field values in hash_inputs() if you do not want them derivable. Hash the structural payload — field names, amounts, references. Sigmodx stores only the hash.
Error handling
AgentBlockedError— agent reliability state isBLOCK(HTTP 403).SigmodxError— other API failures.
Metadata
Release files for sigmodx 0.5.0
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 | Actions |
|---|---|---|---|---|
| sigmodx-0.5.0.tar.gz | 7.1 kB | Without provenance | Details for sigmodx-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sigmodx-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for sigmodx-0.5.0-py3-none-any.whl |
Total release size: 13.4 kB
Release files / sigmodx-0.5.0.tar.gz
| Download URL | sigmodx-0.5.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85f08e6d554afc0cce126e5f2aea392222ddf61abc8c9f115ccc6aabf731f66b
|
|
BLAKE2b-256 checksum How to use checksums |
cccf312aee379f47440322f7fe7197606f4a0d111e4182052cb9c14bab00c6a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / sigmodx-0.5.0-py3-none-any.whl
| Download URL | sigmodx-0.5.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
616e4a6e9e58cf4a91f8c3c7cb888e00f73c065706382f4c07f00d87e9e79bae
|
|
BLAKE2b-256 checksum How to use checksums |
9762ca8036f4b864ec8e9721f1008cc7c1146a8660775efb2afbac93aadf0917
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for sigmodx 0.5.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.