Skip to main content

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.3

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.3.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deckflow-0.1.3-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file deckflow-0.1.3.tar.gz.

File metadata

  • Download URL: deckflow-0.1.3.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for deckflow-0.1.3.tar.gz
Algorithm Hash digest
SHA256 25377acd2152aebfe98579987aaeedd898fef8c27ba950522bb05d9df6d87d07
MD5 84ba220fcedc2de4586339f288b193ab
BLAKE2b-256 41132d82dda47e20764caa73eb072f8bcac917bb35dc2af4ea300a690e0f8ce1

See more details on using hashes here.

File details

Details for the file deckflow-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: deckflow-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for deckflow-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ba4dda01e2ebc457e0d43eb779a6b40d457f11f89daf6a83a452673bd642af60
MD5 4d8d4fded62cc23c0f9040c6da0cd154
BLAKE2b-256 1a61a36b7f92fa6aa25b148a1d20a50733e0ae87620400732db065b924fbe616

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page