Programmatic PowerPoint manager
Project description
Deckflow
A library to manage the content of PowerPoint presentations, built on python-pptx. Deckflow enables you to extract, analyze, and modify the content of PPTX files in a simple and intuitive way.
Installation
pip install deckflow
Requirements: Python 3.9+
Features
- Content extraction (text, tables, charts)
- Formatting properties analysis
- Element modification and updates
- Duplicate detection support
Quick Start
Basic usage
from deckflow import Deck
# Load a presentation
deck = Deck("presentation.pptx")
# Iterate slides
for slide in deck.slides:
print(slide)
Inspect a slide
slide = deck.get_slide(1)
slide.list_content() # print available texts/charts/tables on the slide
Read and update text
print(slide.get_text("TextName").get_content())
slide.update_text("TextName", "New Text")
Work with charts
chart = slide.get_chart("ChartName")
data = chart.get_data()
# update categories and series (example data)
slide.update_chart("ChartName", {
'categories': ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep'],
'series': {
'Serie 1': [182.0,190.0,209.0,220.0,227.0,231.0,524.0,236.0,249.0],
'Serie 2': [61.0,109.0,123.0,116.0,119.0,121.0,132.0,138.0,134.0]
}
})
Update tables
slide.update_table("TableName",
[['Product', 'Q1', 'Q2', 'Q3'], ['Widget', '100', '120', '130'], ['Gadget', '80', '95', '105']],
by_rows=False, by_columns=True)
Save changes
deck.save("updated_presentation.pptx")
Project Status
⚠️ Version 0.1.1
License
MIT
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
deckflow-0.1.2.tar.gz
(15.7 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
deckflow-0.1.2-py3-none-any.whl
(17.6 kB
view details)
File details
Details for the file deckflow-0.1.2.tar.gz.
File metadata
- Download URL: deckflow-0.1.2.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
172b7e950edeb0f5866bb4ace6f83eef90475dbb9da6e4051a627f946841a79c
|
|
| MD5 |
46d0942a3bed25514ab7bc7baf466765
|
|
| BLAKE2b-256 |
c5e6cb81f6bb8da3d045299918688a27bfe08dcf8c7b9a4a0d0474106f91327b
|
File details
Details for the file deckflow-0.1.2-py3-none-any.whl.
File metadata
- Download URL: deckflow-0.1.2-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d74a9aa809c3cb811b47eede2f1ebe38937459c5c43f0d4746bf0bf8e891da67
|
|
| MD5 |
cc4a837765b7d931939736c0d04cc879
|
|
| BLAKE2b-256 |
13a1f8966a2eea38d5a1ab64b18b0a0c2c50bcb9d42be51852c722a7c44b7d6c
|