Skip to main content

zigotrace-partner

The Python client for the ZigoTrace Partner API, for software vendors (ERP, distribution, supply-chain systems) running ZigoTrace for their own customers: send each customer's records, read the findings about lost stock, unbilled deliveries and missing records, and get the exact record that fixes each one to write into your system.

pip install zigotrace-partner

Python 3.10+, standard library only.

from zigotrace_partner import ZigoTracePartner, ZigoTraceError, verify_webhook

zt = ZigoTracePartner("zpk_...")  # your partner key

org = zt.create_org({"name": "Kilimani Foods", "external_ref": "cust-42"})
zt.push_records(org["org_id"], "receipts", {"records": [...]}, idempotency_key="grn-001")

for finding in zt.list_findings(org["org_id"], area="receiving")["findings"]:
    print(finding["label"], finding["description"])

pdf = zt.report_pdf(org["org_id"], "gaps-summary")  # bytes

Every method returns the decoded JSON body (bytes for a PDF or Word report) and raises ZigoTraceError with .status and .detail otherwise.

Webhooks. Check each delivery before trusting it:

if not verify_webhook(webhook_secret, raw_body, request.headers["Zigo-Signature"]):
    return 400

The package version is the API version it was generated from. Partner keys and access: agri.zigotrace.com.

Release files for zigotrace-partner 1.2.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 zigotrace-partner 1.2.0
File Size Uploaded
zigotrace_partner-1.2.0.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zigotrace-partner 1.2.0
File Interpreter ABI Platform
zigotrace_partner-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 kB

Release files / zigotrace_partner-1.2.0.tar.gz

Download URL zigotrace_partner-1.2.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
04e8123f5a38ef873d2040585097043d24c7b1c5db49979b9f92ab8fb34a85d8
BLAKE2b-256 checksum
How to use checksums
7e69293ad96f5e9b95612e94ac87723cffc577559cf63af03f6aa9da90d28555
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 25, 2026.

Transparency log

Release files / zigotrace_partner-1.2.0-py3-none-any.whl

Download URL zigotrace_partner-1.2.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7188b5914077f5e27b0b5b813252ca6bb41b499b005de4afab1ca965d9ea3942
BLAKE2b-256 checksum
How to use checksums
3a391a31729c0509af8b18f6293db283bf95f09b5c9b5544c2eb8f7c2c7d9769
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 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.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