Registry / serialization / aspose-slides

aspose-slides

JSON →
library26.6.0pypypi✓ verified 83d ago

Aspose.Slides for Python via .NET is a class library that enables applications to read, write, manipulate, and convert PowerPoint presentations (PPT, PPTX, PPS, POT, PPSX, etc.) without requiring Microsoft PowerPoint. Version 26.4.0 supports Python 3.5 to 3.13. Releases occur monthly.

pip install aspose-slides
INSTALL
IMPORT
SIG · ASPOSE-SLIDES
A
aspose-slides
serializationpythonv26.6.0
Install
4.3s avg
Import
Disk
355MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v26.6.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.3s · import 0.000s · 357MB
355MB installed
● package 355MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Presentation
from aspose.slides import Presentation
import aspose.slides as slides; pres = slides.Presentation()

Creates a simple presentation with one slide, adds a rectangle with text, and saves as PPTX.

import aspose.slides as slides # Create a presentation pres = slides.Presentation() # Add a slide and a shape slide = pres.slides[0] shape = slide.shapes.add_auto_shape(slides.ShapeType.RECTANGLE, 50, 50, 200, 100) # Add text shape.text_frame.text = 'Hello, Aspose.Slides!' # Save pres.save('output.pptx', slides.export.SaveFormat.PPTX) print('Presentation saved.')
Debug
Known issues
gotchaThe Presentation class must be disposed to release .NET resources. Use a context manager or call dispose() explicitly to avoid memory leaks.
fix
with slides.Presentation() as pres: ... or pres = slides.Presentation(); ...; pres.dispose()
affects: all
gotchaImporting aspose.slides takes a few seconds because it loads .NET runtime. Do not import in hot loops.
fix
Perform import once at module level, not inside functions/loops.
affects: all
breakingIn version 24.x, the aspose.slides namespace was restructured. Some classes moved to submodules (e.g., SaveFormat moved to aspose.slides.export).
fix
Update imports: from aspose.slides.export import SaveFormat instead of from aspose.slides import SaveFormat.
affects: >=24.0
gotchaThe Slice class was renamed to Slide in older versions. Always use slides.Slide for slide objects.
fix
Use pres.slides[0] to access slides; iterate with for slide in pres.slides:
affects: all
deprecatedMethods like add_rectangle() and add_ellipse() are deprecated. Use add_auto_shape() with ShapeType instead.
fix
shape = slide.shapes.add_auto_shape(slides.ShapeType.RECTANGLE, left, top, width, height)
affects: >=24.0
Upgrade
Version history
26.6.0latest on PyPI · released Jun 8, 2026
Audit
Dependencies
pythonnetrequiredRequired to bridge .NET runtime; installed automatically with aspose-slides.
clrrequiredPart of pythonnet; used to load .NET assemblies.
Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources