Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 7 days 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T16:27:22.000Z (about 6 years ago)
- Last Synced: 2024-09-25T09:35:47.447Z (about 2 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
[![PyPi Version](https://img.shields.io/pypi/v/pptcom.svg)](https://pypi.python.org/pypi/pptcom)
[![Conda Version](https://img.shields.io/conda/vn/mrossi/pptcom.svg)](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.