generate pptx file with jinja2 template
Project description
data = {“product”: “Pptx-tpl”, “version”: “1.0.0”}
jinja_env = jinja2.Environment() jinja_env.globals[“now”] = datetime.datetime.now
doc = PptxDocument(“sample/sample.pptx”) doc.render(data, jinja_env) doc.save(“sample/output.pptx”)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pptxtpl-0.0.4.tar.gz
(2.8 kB
view details)
File details
Details for the file pptxtpl-0.0.4.tar.gz
.
File metadata
- Download URL: pptxtpl-0.0.4.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 085a4ff285713cfea38866dac39954e3d6acd2c1b252c16434a3ddc9c66313b0 |
|
MD5 | 0436878efe1207baa2ea06e5aa4dc78b |
|
BLAKE2b-256 | bf283d33c244be3051e5b3a6aafc72dd16c0cab1dc390aeec59692c14c6b0de7 |