pptx-builder-from-yaml
CLI to generate powerpoint slides from simple yaml file[s]
- pptx-builder-from-yaml
Dependencies to run the CLI
>= python3.4- python modules
click==7.0.0- python-pptx==0.6.16
PyYAML==3.13
How to install?
pip install pptx-builder-from-yaml
How does a yaml file look like for generating pptx?
Here is a sample yaml file - Dummy.yml
How to use the CLI?
$ pptx-builder --help
Usage: pptx-builder [OPTIONS] YAML_PATHS...
A powerpoint builder
https://github.com/sukujgrg/pptx-builder-from-yaml
Options:
-pt, --pptx-template-path PATH [required]
-ms, --master-slide-idx INTEGER
[default: 0]
-sl, --slide-layout-idx INTEGER
[default: 6]
-fs, --font-size INTEGER [default: 32]
-fn, --font-name TEXT [default: Calibri]
-ns, --dst-dir TEXT [default: ./generated-pptx]
-ta, --slide-txt-alignment [left|middle|right]
[default: left]
--validate Run yaml validation against schema
--version Show the version and exit.
--help Show this message and exit.
How to generate pptx[s]?
pptx-builder slide_yamls/ -pt pptx-templates/default.pptx
Notes:
slide_yamls/is the directory that holdsyamlfiles for slides. Theyaml[s] must follow the schema defined in the code. Here is an exampleyamlfile.slide_yamlsare positional arguments and can accept files and directories. If a positional argument is a directory, it will try to build individualpptxwith eachyamlfiles in the same directory.--pptx-template-path | -ptis expecting either a directory or a pptx file. If it is a directory,pptx-builderwill chose one among all the pptx files found in the same directory. The pptx template file should be without any change to master slide index or in slide layout index. If there are any changes to master slide index or slide layout, you need to pass correspondinginttype to-msand-sloptions. A sample pptx template file can seen here pptx-templates.- The default
--new-slide-pathistmpdirectory and hence it depends on the operating system you run thepptx-builderon.
How to validate a yaml and then generate the PPTX?
pptx-builder slide_yamls/dummy.yml -dm master_slides/default.pptx --validate
FAQs
How can I add same footer to all pptx[s] built using the CLI?
Add footer to pptx template file to pass with --pptx-template-path option
How to get different backgrounds for the generated pptx files using the CLI?
Create different pptx template files with different backgrounds and pass it on to
--pptx-template-path option. See this video on
creating pptx template file.
How to setup development environment?
git clone https://github.com/sukujgrg/pptx-builder-from-yaml.git
cd pptx-builder-from-yaml
pipenv install --dev
pipenv shell
pipenv graph
How to run tests?
cd pptx-builder-from-yaml/
tox .
Metadata
Release files for pptx-builder-from-yaml 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pptx-builder-from-yaml-0.0.4.tar.gz | 5.5 kB | Without provenance | Details for pptx-builder-from-yaml-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pptx_builder_from_yaml-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for pptx_builder_from_yaml-0.0.4-py3-none-any.whl |
Total release size: 12.2 kB
Release files / pptx-builder-from-yaml-0.0.4.tar.gz
| Download URL | pptx-builder-from-yaml-0.0.4.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52d0bf452a1ddef14e2d5ad373a0fc52adf83369153c7bba5616f91bd4e1415e
|
|
BLAKE2b-256 checksum How to use checksums |
b78d66d624190cc9a34aca89ca26a2107ce455cc5a35e6bd39793178473872ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|
Release files / pptx_builder_from_yaml-0.0.4-py3-none-any.whl
| Download URL | pptx_builder_from_yaml-0.0.4-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9d59e8885463e1a4e764fcb0bfd25fc2d154e869b5bea4b4adfc8fd7470b1bb
|
|
BLAKE2b-256 checksum How to use checksums |
21207b20adcdf2d17beeae622cea1a9e4ab8487cc2a5957493b82f23c384879f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|
Security for pptx-builder-from-yaml 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.