formfeed 0.3.0__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {formfeed-0.3.0 → formfeed-0.3.2}/PKG-INFO +6 -1
- {formfeed-0.3.0 → formfeed-0.3.2}/README.md +5 -0
- {formfeed-0.3.0 → formfeed-0.3.2}/pyproject.toml +1 -1
- {formfeed-0.3.0 → formfeed-0.3.2}/src/formfeed/__init__.py +1 -1
- {formfeed-0.3.0 → formfeed-0.3.2}/.gitignore +0 -0
- {formfeed-0.3.0 → formfeed-0.3.2}/LICENSE +0 -0
- {formfeed-0.3.0 → formfeed-0.3.2}/src/formfeed/client.py +0 -0
- {formfeed-0.3.0 → formfeed-0.3.2}/src/formfeed/errors.py +0 -0
- {formfeed-0.3.0 → formfeed-0.3.2}/src/formfeed/models.py +0 -0
- {formfeed-0.3.0 → formfeed-0.3.2}/src/formfeed/py.typed +0 -0
- {formfeed-0.3.0 → formfeed-0.3.2}/src/formfeed/webhooks.py +0 -0
- {formfeed-0.3.0 → formfeed-0.3.2}/tests/test_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: formfeed
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Formfeed API client: template-based PDF and image generation (sync and async, httpx).
|
|
5
5
|
Project-URL: Homepage, https://formfeed.dev
|
|
6
6
|
Project-URL: Documentation, https://docs.formfeed.dev/api/sdks/python
|
|
@@ -64,6 +64,11 @@ with open("offer.docx", "rb") as f:
|
|
|
64
64
|
client.templates.create(name="Offer", slug="offer", kind="docx", engine="jinja2", file=f, publish=True)
|
|
65
65
|
filled = client.renders.create(template="offer", output="docx", data={"customer": {"name": "Olvarest GmbH"}})
|
|
66
66
|
|
|
67
|
+
# a new version with a new document; without file= the latest document is kept
|
|
68
|
+
with open("offer-v2.docx", "rb") as f:
|
|
69
|
+
client.templates.create_version("offer", file=f, change_note="New terms")
|
|
70
|
+
docx = client.templates.version_file("offer", "latest") # the document's bytes
|
|
71
|
+
|
|
67
72
|
# any office document to PDF (Word, Excel, PowerPoint, OpenDocument, RTF)
|
|
68
73
|
with open("report.xlsx", "rb") as f:
|
|
69
74
|
pdf = client.pdf.convert(file=f, single_page_sheets=True)
|
|
@@ -34,6 +34,11 @@ with open("offer.docx", "rb") as f:
|
|
|
34
34
|
client.templates.create(name="Offer", slug="offer", kind="docx", engine="jinja2", file=f, publish=True)
|
|
35
35
|
filled = client.renders.create(template="offer", output="docx", data={"customer": {"name": "Olvarest GmbH"}})
|
|
36
36
|
|
|
37
|
+
# a new version with a new document; without file= the latest document is kept
|
|
38
|
+
with open("offer-v2.docx", "rb") as f:
|
|
39
|
+
client.templates.create_version("offer", file=f, change_note="New terms")
|
|
40
|
+
docx = client.templates.version_file("offer", "latest") # the document's bytes
|
|
41
|
+
|
|
37
42
|
# any office document to PDF (Word, Excel, PowerPoint, OpenDocument, RTF)
|
|
38
43
|
with open("report.xlsx", "rb") as f:
|
|
39
44
|
pdf = client.pdf.convert(file=f, single_page_sheets=True)
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "formfeed"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.2"
|
|
8
8
|
description = "Formfeed API client: template-based PDF and image generation (sync and async, httpx)."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
# PEP 639: the SPDX expression replaces the licence classifier, the two must not be combined
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|