Skip to main content

Replace {{KEY}} tokens in PPTX while preserving styling

Project description

pptxvars

Replace {{KEY}} tokens in PPTX while preserving styling


steps:

  1. Create a custom powerpoint presentation
  2. Define your variables in powerpoint textboxes by {{VARIABLE_NAME}}
  3. Define in a YAML file what values must replace the {{KEYS}}
  4. 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)

Uploaded Source

Built Distribution

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

pptxvars-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

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

Hashes for pptxvars-0.1.0.tar.gz
Algorithm Hash digest
SHA256 45024c539f9b24abf3e9146b70f3a02c73225deacb65a10763e2e6f4a0c57265
MD5 ebb65405ed34c09ead7e76b281ed7bd1
BLAKE2b-256 43816f26bf1b872561f4e6bc6ef2de90163d418e9e7245991635c0ce75ed8a5a

See more details on using hashes here.

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

Hashes for pptxvars-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39264e33639b4b9d649569fe9beae453a6b5fc7f654abc082edd75a7fd4dc8dd
MD5 e9b98dd4f908e15e8b9c0a6e8474ab28
BLAKE2b-256 a6327d95eecb55e796553b17fffa230e70a39aeec0d0cad1e651a726756e7483

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page