Skip to main content

polish-pptx

CLI tool that polishes pptx slides containing multiple arrows, boxes, circles etc. using Claude AI.

Each such slide is rendered (render-pptx), sent to Claude, which returns a polished SVG of the figure; the SVG is rasterized to PNG, cropped to its content and added to the slide (with the content at the same position and scale it had in the uncropped PNG, fitted and centered on the slide). All other shapes on that slide, except the headline and the main text shape, are moved down by one slide height, so they sit below the slide (not visible, but still available for editing). The 3 most recently polished slides of a run are sent along as few-shot examples, so similar slides get the same style and icons.

Installation

For using this tool, you need an Anthropic Claude API key stored as ANTHROPIC_API_KEY environment variable.

pip install polish-pptx

Usage

polish-pptx deck.pptx --slides 4,5     # writes deck.pptx.polished.pptx

Options

  • --model The Anthropic Claude model to use (default claude-sonnet-5-5).
  • --min-shapes The criterion to select slides, must have at lest n shapes (default 3).
  • --slides A comma-separated list of slide numbers to polish, e.g. --slides 1,3,5 (optional, overrides --min-shapes).

Metadata

Release files for polish-pptx 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 polish-pptx 0.1.0
File Size Uploaded Provenance Actions
polish_pptx-0.1.0.tar.gz 7.8 kB Without provenance Details for polish_pptx-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 15.1 kB

Release files / polish_pptx-0.1.0.tar.gz

Download URL polish_pptx-0.1.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4cafb075775dc76f3e45642a9a173162a497829979d20252905d2606d3ca0167
BLAKE2b-256 checksum
How to use checksums
f886ffb0fa15ad6e6a0a48411a595477da3c6d2cfd756e29f7719e7c03517b7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

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

Download URL polish_pptx-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55c42a38167bae8a4c1ce0d1fddbbf7be5152e4ab10ba4e72a5e8f98c45cc97f
BLAKE2b-256 checksum
How to use checksums
d1601f42d0a624920cecafc4ab924e0e24810c821083006d633b31314e6558ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Security for polish-pptx 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