Skip to main content

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)

# fill a PDF form by the field names info lists, and redact a name wherever it stands
form = client.pdf.info("antrag.pdf").form
filled = client.pdf.fill("antrag.pdf", fields={"customer.name": "Erika Mustermann"}, flatten=True)
with open("invoice.pdf", "rb") as f:
    redacted = client.pdf.redact(file=f, text=["Max Mustermann"])
# and split, compress or draw pages: client.pdf.split, .compress, .to_image

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

Metadata

Release files for formfeed 0.3.27

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for formfeed 0.3.27
File Size Uploaded Provenance Actions
formfeed-0.3.27.tar.gz 35.0 kB With provenance Details for formfeed-0.3.27.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for formfeed 0.3.27
File Interpreter ABI Platform Actions
formfeed-0.3.27-py3-none-any.whl Python 3 none any Details for formfeed-0.3.27-py3-none-any.whl

Total release size: 59.5 kB

Release files / formfeed-0.3.27.tar.gz

Download URL formfeed-0.3.27.tar.gz
Size 35.0 kB
Tags Source
SHA-256 checksum
How to use checksums
aff486a8465d7a6755f8675e7f6aa68e17fe28fdb5d3728b997b5180d8d52438
BLAKE2b-256 checksum
How to use checksums
68c1b9eb3d5f29dbaead9463f5a5ecccab1055be9c500d7d8a488e73f0feeb1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / formfeed-0.3.27-py3-none-any.whl

Download URL formfeed-0.3.27-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea1e1d7f28c6046e6a9332dfee3cb1446ee61bc5306cb965b1fa22081b241ef8
BLAKE2b-256 checksum
How to use checksums
71af2eaa6a631c45b4cd05f86b662f2e7bacb9b8bd50106ec91c4c8dd9393c3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Security for formfeed 0.3.27

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for formfeed-0.3.27.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 Nov 18, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.3.27 This release

2 release files Full provenance

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