Skip to main content

A library for controlling PowerPoint via Remote Show Control using Python

Project description

RSCPy: PowerPoint Remote Show Control Library

RSCPy is a Python library designed to remotely control PowerPoint presentations using the Remote Show Control add-in. This library enables the sending of commands to control PowerPoint presentations over network connections using both UDP and TCP protocols.

Features

  • Open and close PowerPoint presentations
  • Start and stop presentations
  • Navigate through slides (next, previous, go to specific slide)
  • Set the desktop background to the current slide (experimental feature)
  • Find PowerPoint files within a specified directory

Installation

To install RSCPy, simply use pip:

pip install rsc_py

Requirements

Usage

Here's a quick start to control PowerPoint presentations:

from rsc_py import RSCPy
import time

# Initialize the controller with the IP address of the PowerPoint PC
controller = RSCPy('192.168.1.1', protocol='TCP')

# Open a presentation
controller.open_presentation('path/to/presentation.pptx')

# Start the presentation and wait
controller.run_presentation()
time.sleep(3)

# Go to the next slide and wait
controller.next_slide()
time.sleep(3)

# Close the presentation
controller.close_presentation('path/to/presentation.pptx')

Supported Commands

  • open_presentation(filename): Opens a specified presentation.
  • close_presentation(filename=None): Closes the specified or all presentations.
  • run_presentation(filename=None): Starts the presentation.
  • run_current(): Starts the presentation from the current slide.
  • stop_presentation(filename=None): Stops the presentation.
  • prev_slide(): Moves to the previous slide.
  • next_slide(): Moves to the next slide.
  • go_to_slide(slide): Moves to a specified slide.
  • set_background(): Sets the desktop background to the current slide (will not work on Automatic in PPT 2013+).
  • find_files(path): Finds PowerPoint files in the specified path.

Contributing

Contributions to RSCPy are welcome! Feel free to fork the repository, make your changes, and submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

rsc_py-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rsc_py-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file rsc_py-0.1.0.tar.gz.

File metadata

  • Download URL: rsc_py-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for rsc_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 551d9f8b2c4f3ce389bcedec25c93623ba01156e0bbd05aca65441a37f039731
MD5 ca2f5aa4eab06482ae87e23afdf46689
BLAKE2b-256 6391ed300e75ef5f9562d5bd5c54e81c5f39af640968a0ce3d674e86183e8627

See more details on using hashes here.

File details

Details for the file rsc_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rsc_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for rsc_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd4b3762aa8e9ded1955c42d1be3d1070641b02cefffaf88694289db7ec8d92e
MD5 baed57ea2a3d10a7ca94c2bca45ace69
BLAKE2b-256 982e74ff62b10d4ce96ce2a38db46f1fc03d1508e86f1485de5b1d175e3fd68c

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