Clients
Python SDK
compound on PyPI, stdlib-only (urllib), generated from the same catalog the API serves.
Install
pip install compound
Use
One method per endpoint, snake-cased. Async calls take async_=True (the bare word is a Python keyword); wait_for_job resolves on success or failure, a failed job is never charged.
app.py
import os from compound import Compound client = Compound(api_key=os.environ["COMPOUND_API_KEY"]) # Sync call invoice = client.invoice(data=pdf_base64) # Async job (async_ because 'async' is a Python keyword) job = client.parse(data=big_pdf_base64, async_=True) result = client.wait_for_job(job["jobId"])
Every method's snippet, with a real example body, lives on its collection guide.