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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

formfeed-0.1.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

formfeed-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file formfeed-0.1.0.tar.gz.

File metadata

  • Download URL: formfeed-0.1.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for formfeed-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fe5d9b92d3edb596cb019faa0a6204d7dfce961197d9ed9480d5025063caf885
MD5 b1846615b0f6770c6f5ff3cd5ceb7c81
BLAKE2b-256 d1e020c3fa28586a4f7ed9d1ff7a78a364dd4fb41e25613ffa54add234d80552

See more details on using hashes here.

Provenance

The following attestation bundles were made for formfeed-0.1.0.tar.gz:

Publisher: release.yml on formfeed-dev/formfeed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file formfeed-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: formfeed-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for formfeed-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10033f77e77818120d29d9135e9398e024d2748b9dbed017a016c602f6174892
MD5 78d2eaeb307cb1de6bfffc78c07a6530
BLAKE2b-256 50ba99dacb5093ece77e1f33c5b5752fdc7d933776b130de95d33ca1bac0c0c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for formfeed-0.1.0-py3-none-any.whl:

Publisher: release.yml on formfeed-dev/formfeed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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