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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe5d9b92d3edb596cb019faa0a6204d7dfce961197d9ed9480d5025063caf885
|
|
| MD5 |
b1846615b0f6770c6f5ff3cd5ceb7c81
|
|
| BLAKE2b-256 |
d1e020c3fa28586a4f7ed9d1ff7a78a364dd4fb41e25613ffa54add234d80552
|
Provenance
The following attestation bundles were made for formfeed-0.1.0.tar.gz:
Publisher:
release.yml on formfeed-dev/formfeed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
formfeed-0.1.0.tar.gz -
Subject digest:
fe5d9b92d3edb596cb019faa0a6204d7dfce961197d9ed9480d5025063caf885 - Sigstore transparency entry: 2787178287
- Sigstore integration time:
-
Permalink:
formfeed-dev/formfeed@b3d16b58d047bac8cf1f489738a46a2310ab432c -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/formfeed-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b3d16b58d047bac8cf1f489738a46a2310ab432c -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10033f77e77818120d29d9135e9398e024d2748b9dbed017a016c602f6174892
|
|
| MD5 |
78d2eaeb307cb1de6bfffc78c07a6530
|
|
| BLAKE2b-256 |
50ba99dacb5093ece77e1f33c5b5752fdc7d933776b130de95d33ca1bac0c0c4
|
Provenance
The following attestation bundles were made for formfeed-0.1.0-py3-none-any.whl:
Publisher:
release.yml on formfeed-dev/formfeed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
formfeed-0.1.0-py3-none-any.whl -
Subject digest:
10033f77e77818120d29d9135e9398e024d2748b9dbed017a016c602f6174892 - Sigstore transparency entry: 2787178356
- Sigstore integration time:
-
Permalink:
formfeed-dev/formfeed@b3d16b58d047bac8cf1f489738a46a2310ab432c -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/formfeed-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b3d16b58d047bac8cf1f489738a46a2310ab432c -
Trigger Event:
push
-
Statement type: