Skip to main content

Python tools for PowerPoint OOXML documents, including MS-PPTX extension namespaces

Project description

mspptx

Python tools for PowerPoint OOXML documents, including MS-PPTX extension namespaces (p14/p15/p16).

Overview

mspptx is a Python package for working with PowerPoint .pptx files, including the published MS-PPTX specification. It supports extension namespaces that are not part of the base ISO/IEC 29500 standard.

Installation

pip install mspptx

Quick Start

from mspptx.presentation import Presentation
from mspptx.oxml.slide import get_shape_tree
from mspptx.oxml.shapes import make_textbox
from mspptx.oxml.transitions import make_morph_transition

pres = Presentation.new()
slide = pres.add_slide()

sp_tree = get_shape_tree(slide)
sp_tree.append(make_textbox(914400, 914400, 7315200, 914400, "Hello World!", bold=True, size=3200))

slide.append(make_morph_transition())  # MS-PPTX extension!

pres.save("output.pptx")

Specification Reference

https://learn.microsoft.com/en-us/openspecs/office_standards/ms-pptx/efd8bb2d-d888-4e2e-af25-cad476730c9f

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

mspptx-0.4.0.tar.gz (117.7 kB view details)

Uploaded Source

Built Distribution

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

mspptx-0.4.0-py3-none-any.whl (98.2 kB view details)

Uploaded Python 3

File details

Details for the file mspptx-0.4.0.tar.gz.

File metadata

  • Download URL: mspptx-0.4.0.tar.gz
  • Upload date:
  • Size: 117.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for mspptx-0.4.0.tar.gz
Algorithm Hash digest
SHA256 95ba66d34ab84d650cf04f54d5159f3b53d6ebae4afcb6dc888910d78a6a14c4
MD5 a59bde6bb2866a4e624e97ad3742833b
BLAKE2b-256 18a1fc50063c6f3899ea9496da34019b03f8d935b2ab9941b89b8b99d5d2ec4a

See more details on using hashes here.

File details

Details for the file mspptx-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: mspptx-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 98.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for mspptx-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54fc270ec309b930e8e4b3f88224b096bbd1adfd0902f328c5eaa1fc1e16f9a6
MD5 29011c1d1fac323df5f9525d5ce3fc13
BLAKE2b-256 7536a7016950fd1cadbb03db3ccbe7f6d0d3da9dcaf25f53d487f2ef6292b36c

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