PowerPoint Template for python
Project description
PPTT
PowerPoint Template for python
Installation
$ pip install PPTT
✨🍰✨
How to use it?
make master pptx
master.pptx preview
make page!
create slide.json
like this
{
"pages": [
{
"slide_pos": 1,
"contents": {
"title": {
"text": "PPTT"
},
"subtitle": {
"text": "you don't need to config design"
}
}
},
{
"slide_pos": 2,
"contents": {
"title": {
"text": "Replace Table Data"
},
"table": {
"table": {
"data_type": "key_value",
"keys": ["Name", "Age", "Hobby", {"name": "Language", "data_key": "language"}],
"data": [
{"Name": "sinsky", "Age": 28, "Hobby": "programming", "language": "korean"},
{"Name": "summer", "Age": 4, "Hobby": "reading", "language": "korean"},
{"Name": "emmit", "Age": 30, "Hobby": "lego", "language": "english"},
{"Name": "agent", "Age": 20, "Hobby": "hiding", "language": "english"},
{"Name": "python", "Age": 38, "Hobby": "making", "language": "python"}
]
}
}
}
},
{
"slide_pos": 3,
"contents": {
"title": {
"text": "Replace Chart Data"
},
"chart": {
"chart": {
"data_type": "category_data",
"title": "this is new chart",
"categories": ["list", "dict", "str"],
"series": {
"series 1": [5, 13, 8]
}
}
}
}
},
{
"slide_pos": 4,
"contents": {
"body": {
"text": "support multi-line\ntext\nlike this"
},
"table": {
"table": {
"data_type": "raw",
"data": [
[null, "1Q", "2Q"],
["Apple", 10, 20],
["Google", 8, 6],
["AWS", 20, 15]
]
}
}
}
}
]
}
make ppt!
pptt make_ppt master.pptx clone.pptx -i slide.json
clone.pptx preview
test
. ./tests.sh
Change Logs
- 0.0.1
- add cli version
- cli usecase example
- 0.0.2
- support python api
- 0.0.3
- remove feature : I will refactoring ASAP
- python api feature
- template mode
- add replace mode
- update simple usecase example
- support table data replace
- support data type : raw, key_value
- support chart data replace
- support data type : category_data
- remove feature : I will refactoring ASAP
- 0.0.4
- New Feature
- support all chart data tye : xy_data, bubble_data
- Docs
- add chart example
- New Feature
- 0.0.5
- Bug Fix
- fix table replace data dose not reset issue
- Bug Fix
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
PPTT-0.0.5.tar.gz
(13.6 kB
view details)
Built Distribution
PPTT-0.0.5-py3-none-any.whl
(19.4 kB
view details)
File details
Details for the file PPTT-0.0.5.tar.gz
.
File metadata
- Download URL: PPTT-0.0.5.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2bb43d695b81b849f29fdac1d4872a9f383103ebad04fe112dfda28b2654a26 |
|
MD5 | 8a142d2086abc8b80541e67073ff2ac4 |
|
BLAKE2b-256 | b7abbb3a0c609a3a6493ce70639506efa84b8d8cc16c1efa19516a22594d13af |
File details
Details for the file PPTT-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: PPTT-0.0.5-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdc6d7703464a095f01436024f9936798cc2d4c105d967f63fd705cfb72f6242 |
|
MD5 | 0942dab8969f6fdd86415a896a110219 |
|
BLAKE2b-256 | 667f579098229f6cd96ca15a063b92ffc391e80f04045b90a28f01ba2525abb8 |