gen-pptx-from-simple-text
CLI to generate powerpoint slides from simple text file[s]
How to install?
pip install gen-pptx-from-simple-text
How should the simple text file like for generating pptx?
Here is a sample text file - resources/dummy.txt. Each section separated by an empty line makes a slide in the generated pptx.
How to run the CLI?
$ pptx --help
Usage: pptx [OPTIONS] LYRICS_FILES...
A powerpoint generator.
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]
--help Show this message and exit.
pptx resources/dummy.txt -pt resources/default.pptx
Notes:
--pptx-template-path | -ptis expecting either a directory with pptx templates or a pptx template file. When it is a directory,pptxwill chose one among all the pptx files found in the 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 is available here resources/black.pptx.
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?
REPO_NAME=gen-pptx-from-simple-text
python -m ~/.venv_${REPO_NAME}
git clone https://github.com/sukujgrg/${REPO_NAME}.git
cd ${REPO_NAME}
source ~/.venv_${REPO_NAME}/bin/activate
pip install -r requirements.txt
Metadata
Release files for gen-pptx-from-simple-text 2.0.0
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 |
|---|---|---|---|---|
| gen-pptx-from-simple-text-2.0.0.tar.gz | 4.0 kB | Without provenance | Details for gen-pptx-from-simple-text-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gen_pptx_from_simple_text-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for gen_pptx_from_simple_text-2.0.0-py3-none-any.whl |
Total release size: 9.4 kB
Release files / gen-pptx-from-simple-text-2.0.0.tar.gz
| Download URL | gen-pptx-from-simple-text-2.0.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0cc6851a37594f49ef9c989762b0c55f714027ff0f9dc0d6b352b98834e7ab4
|
|
BLAKE2b-256 checksum How to use checksums |
f19f1e0c704f9fcba74751273e4156c269749b5d0832d14299bcfbe2ab354ff5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.5
|
Release files / gen_pptx_from_simple_text-2.0.0-py3-none-any.whl
| Download URL | gen_pptx_from_simple_text-2.0.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37ed117219b5230e4cc7821c183bfc51e5acd3a6666e9e72e4900a06ad9c7fcc
|
|
BLAKE2b-256 checksum How to use checksums |
e06641bc3e7141aa34ed29f4e42e8223e5cf06a22d1e11386df7d0528cd3fb66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.5
|
Security for gen-pptx-from-simple-text 2.0.0
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.