https://github.com/m-rossi/pptcom
Use Microsoft PowerPoint within Python with the help of COM
https://github.com/m-rossi/pptcom
com powerpoint python
Last synced: 8 months ago
JSON representation
Use Microsoft PowerPoint within Python with the help of COM
- Host: GitHub
- URL: https://github.com/m-rossi/pptcom
- Owner: m-rossi
- License: mit
- Created: 2018-02-13T17:00:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T16:27:22.000Z (about 7 years ago)
- Last Synced: 2025-01-29T20:41:09.473Z (9 months ago)
- Topics: com, powerpoint, python
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pptcom
[](https://pypi.python.org/pypi/pptcom)
[](https://anaconda.org/mrossi/pptcom)Use Microsoft PowerPoint within Python with the help of COM
## Installation
```
pip install pptcom
``````
conda install -c mrossi pptcom
```## Usage
You can export the slides of a PowerPoint-presentation:
```python
import pptcomwith pptcom.File('presentation.pptx') as pptfile:
pptfile.export('png')
```## Development
### Building
It is recommended to use [conda-build](https://github.com/conda/conda-build) for building the package. Due to the required packages for testing you need to execute the follwing command inside the repository folder to successfully build the package:
```
conda-build conda.recipe conda.recipe -c defaults -c conda-forge
```### Testing
For testing purposes [python-pptx](https://github.com/scanny/python-pptx) is used, after an installation of this package you can test the package with pytest.