Skip to main content

pptx-concatenator

A Python library for concatenating PowerPoint presentations using pptx-slide-copier.

Features

  • Concatenate multiple PPTX files by appending slides
  • Preserve formatting, images, and layouts
  • Support for both file paths and Presentation objects
  • Simple and intuitive API
  • Command-line interface for easy usage

Installation

pip install -e .

For development:

pip install -e ".[dev]"

Requirements

  • Python 3.9+
  • python-pptx >= 0.6.21
  • pptx-slide-copier >= 0.0.5

Usage

Command Line Interface

After installation, you can use the pptx-concat command to concatenate PPTX files directly from the command line:

# Concatenate two presentations
pptx-concat source.pptx target.pptx -o output.pptx

# Concatenate multiple presentations
pptx-concat source.pptx file1.pptx file2.pptx file3.pptx -o output.pptx

# Show help
pptx-concat --help

Python API

Basic Usage

Concatenate two PPTX files:

from pptx_concatenator import concat_pptx

# Simple function to concatenate two PPTX files
concat_pptx("source.pptx", "target.pptx", "output.pptx")

Using the PptxConcatenator Class

from pptx_concatenator import PptxConcatenator

# Concatenate two presentations
result = PptxConcatenator.concat("source.pptx", "target.pptx", "output.pptx")

# Concatenate multiple presentations
result = PptxConcatenator.concat_multiple(
    "source.pptx",
    ["target1.pptx", "target2.pptx", "target3.pptx"],
    "output.pptx"
)

Working with Presentation Objects

from pptx import Presentation
from pptx_concatenator import PptxConcatenator

# Load presentations
src_prs = Presentation("source.pptx")
target_prs = Presentation("target.pptx")

# Concatenate
result = PptxConcatenator.concat(src_prs, target_prs)

# Save manually
result.save("output.pptx")

Development

Setup Development Environment

make install

Running Tests

# Run tests
make test

# Run tests with coverage
make test-cov

Linting and Formatting

# Run linter
make lint

# Format code
make format

# Check formatting without changes
make format-check

Available Make Commands

  • make install - Install package and development dependencies
  • make test - Run tests
  • make test-cov - Run tests with coverage report
  • make lint - Run ruff linter
  • make format - Format code with ruff
  • make format-check - Check formatting without making changes
  • make clean - Clean build artifacts and cache files

CI/CD

This project uses GitHub Actions for continuous integration:

  • Lint: Checks code quality with ruff
  • Test: Runs tests on Python 3.8-3.12

License

MIT

Metadata

Release files for pptx-concatenator 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pptx-concatenator 0.1.0
File Size Uploaded Provenance Actions
pptx_concatenator-0.1.0.tar.gz 5.2 kB Without provenance Details for pptx_concatenator-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pptx-concatenator 0.1.0
File Interpreter ABI Platform Actions
pptx_concatenator-0.1.0-py3-none-any.whl Python 3 none any Details for pptx_concatenator-0.1.0-py3-none-any.whl

Total release size: 11.0 kB

Release files / pptx_concatenator-0.1.0.tar.gz

Download URL pptx_concatenator-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fd471cea514fd26e0adea32d9a2fd028c57e202c41a4521c2109cde315e24aff
BLAKE2b-256 checksum
How to use checksums
b5e45920a4c1eb3e81bb4feee39e555c2c727166ffe6f2fc3f0bfb7346c49778
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.4

Release files / pptx_concatenator-0.1.0-py3-none-any.whl

Download URL pptx_concatenator-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70b2d03d452605c9b687319777088876858da85412f0fb793a1db79af773f2b9
BLAKE2b-256 checksum
How to use checksums
8a967c44d67e1b2d515a8e04c0041ea065ce3ef700c49d1bcc3b6bcae314102d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.4

Security for pptx-concatenator 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page