formfeed (Python)
Client for the Formfeed API: template-based PDF and image
generation. Sync and async, built on httpx, pydantic models, retries on 429 and 503 with the
server's Retry-After, an Idempotency-Key on every render, typed errors and webhook verification.
pip install formfeed
from formfeed import Formfeed
client = Formfeed("ff_test_…") # region="us" or base_url="…" for other hosts
render = client.renders.create(template="invoice-de", data={"invoice": {"number": "2026-001"}})
open("invoice.pdf", "wb").write(client.renders.download(render))
job = client.renders.batch([{"data": d} for d in rows], template="invoice-de", zip=True)
job = client.jobs.wait_for(job.id)
from formfeed import AsyncFormfeed
async with AsyncFormfeed("ff_test_…") as client:
render = await client.renders.create(html="<h1>Hello</h1>", output="png")
Word and PowerPoint:
# a template is a .docx or .pptx with tags such as {{ customer.name }} in its text
with open("offer.docx", "rb") as f:
client.templates.create(name="Offer", slug="offer", kind="docx", engine="jinja2", file=f, publish=True)
filled = client.renders.create(template="offer", output="docx", data={"customer": {"name": "Olvarest GmbH"}})
# a new version with a new document; without file= the latest document is kept
with open("offer-v2.docx", "rb") as f:
client.templates.create_version("offer", file=f, change_note="New terms")
docx = client.templates.version_file("offer", "latest") # the document's bytes
# any office document to PDF (Word, Excel, PowerPoint, OpenDocument, RTF)
with open("report.xlsx", "rb") as f:
pdf = client.pdf.convert(file=f, single_page_sheets=True)
Webhooks:
from formfeed import parse_webhook_event
event = parse_webhook_event(secret, request.headers["Webhook-Signature"], request.body)
Errors raise FormfeedError with code, status, problem and request_id. Templates:
client.templates.all(), .version("invoice-de", "latest"), .create_version(...), .publish(...).
Documentation: https://docs.formfeed.dev/api/sdks/python
Release files for formfeed 0.3.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| formfeed-0.3.10.tar.gz | 23.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| formfeed-0.3.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.0 kB
Release files / formfeed-0.3.10.tar.gz
| Download URL | formfeed-0.3.10.tar.gz |
|---|---|
| Size | 23.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e717b5dec9d61e2e6740842a165d583091e902a177b6145b96ecf78c2afd243c
|
|
BLAKE2b-256 checksum How to use checksums |
1754d55833e605400cf9d18cdd5c8b6b212d04d3c306d73f32416799b2cfc933
|
| 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 logRelease files / formfeed-0.3.10-py3-none-any.whl
| Download URL | formfeed-0.3.10-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c696e7ea348974e95222113ca4932b579d585b0e3f1721724b115b2e8e1b0a36
|
|
BLAKE2b-256 checksum How to use checksums |
e1b2b248c9dfce362de5f8aa014aa899064745cbcf0bdcff5ababa0b5fa4bff2
|
| 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