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")

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.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 formfeed 0.2.0
File Size Uploaded
formfeed-0.2.0.tar.gz 13.7 kB Details

Built distribution (wheel)

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

Total release size: 26.2 kB

Release files / formfeed-0.2.0.tar.gz

Download URL formfeed-0.2.0.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8350d1a8707f420f1610a24e5a0686513212a9e5a5ffc6f8d6f47ba10ca7172a
BLAKE2b-256 checksum
How to use checksums
c5b880babd0d2edac872e0bd8b1f5e764195936c2eba747449b0d99f9de0e6cf
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 13, 2026.

Transparency log

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

Download URL formfeed-0.2.0-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c278881141e28caf57f193141ec5f7c608219f093ced1b567b00d94b0c4a89b8
BLAKE2b-256 checksum
How to use checksums
19dffef3dbcfcc43efa1fc8e46c17bb9468c90295e3926c0f6f44083530298a2
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 13, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.0

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