Replace {{KEY}} tokens in PPTX while preserving styling
Project description
pptxvars
Replace {{KEY}} tokens in PPTX while preserving styling
steps:
- Create a custom powerpoint presentation
- Define your variables in powerpoint textboxes by {{VARIABLE_NAME}}
- Define in a YAML file what values must replace the {{KEYS}}
- Execute replacement:
pptxvars --template templates/example_prs.pptx `
--vars templates/example.yml `
--out 'output/{STEM}_{DATE}.pptx'
Or through library:
from pathlib import Path
from pptxvars import apply_vars
apply_vars(
pptx_in=Path("templates/example_prs.pptx"),
yaml_vars=Path("templates/example.yml"),
pptx_out=Path("output/out.pptx"),
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pptxvars-0.1.0.tar.gz
(4.4 kB
view details)
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 pptxvars-0.1.0.tar.gz.
File metadata
- Download URL: pptxvars-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45024c539f9b24abf3e9146b70f3a02c73225deacb65a10763e2e6f4a0c57265
|
|
| MD5 |
ebb65405ed34c09ead7e76b281ed7bd1
|
|
| BLAKE2b-256 |
43816f26bf1b872561f4e6bc6ef2de90163d418e9e7245991635c0ce75ed8a5a
|
File details
Details for the file pptxvars-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pptxvars-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39264e33639b4b9d649569fe9beae453a6b5fc7f654abc082edd75a7fd4dc8dd
|
|
| MD5 |
e9b98dd4f908e15e8b9c0a6e8474ab28
|
|
| BLAKE2b-256 |
a6327d95eecb55e796553b17fffa230e70a39aeec0d0cad1e651a726756e7483
|