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.4
License
MIT
Metadata
Release files for deckflow 0.1.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 |
|---|---|---|---|---|
| deckflow-0.1.4.tar.gz | 16.6 kB | Without provenance | Details for deckflow-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deckflow-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for deckflow-0.1.4-py3-none-any.whl |
Total release size: 35.3 kB
Release files / deckflow-0.1.4.tar.gz
| Download URL | deckflow-0.1.4.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c4477c21b8b90c7d48af0c9348b6f7c28c9ef815ce0055c16751943c3717134
|
|
BLAKE2b-256 checksum How to use checksums |
f30cca2427c1a902fc6b0f1d2a1097fe973a36ccb41253dd75e04ca0ae0c4e44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / deckflow-0.1.4-py3-none-any.whl
| Download URL | deckflow-0.1.4-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ede89386d27d8ffb266124348759d6ce236bd931b183ec0192b916e31651354
|
|
BLAKE2b-256 checksum How to use checksums |
8ed8441c998bdc3c723ed334f6cbbb43eadea99ac78a435386797b4969945025
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for deckflow 0.1.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.