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.5.0.tar.gz (128.1 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.5.0-py3-none-any.whl (100.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mspptx-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4c74549ef13e539be3685f04ceb06acc9872acd91e0746ca259b0acb13ec1a48
MD5 1b95db4d4ab974558e11b3c419de8e59
BLAKE2b-256 127588d1f305d4a440f09920c668d9f19ff0a6c8a1e47bc6de122abc08c5113d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mspptx-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 100.4 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e474ed46f9ca30ba8dea9f1c98f6c8a682844e6df58651ad0de041e24267f36
MD5 c353a148e1f9ee48d6543e9523e17485
BLAKE2b-256 efb6353967d3c758c800674eb17f6dfa13f364194033accc6dff1c7ccb1c6cad

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