Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 884 Bytes

README.rst

File metadata and controls

42 lines (30 loc) · 884 Bytes

Pyroku

Pyroku wraps the API provided by Roku devices to simplify its integration into your Python scripts.

Installation

Pyroku can be easily installed via Pip:

pip install pyroku

Usage

All you need to do is import pyroku, create a Roku object, and pass it the IP of your Roku box.

>>> import pyroku
>>> roku = pyroku.Roku('192.168.0.25')
>>> roku.press_pause()

The buttons available are called like so:

>>> roku.press_pause()
>>> roku.press_play()
>>> roku.press_home()
>>> roku.press_reverse()
>>> roku.press_forward()
>>> roku.press_select()
>>> roku.press_left()
>>> roku.press_right()
>>> roku.press_down()
>>> roku.press_up()
>>> roku.press_back()
>>> roku.press_instant_replay()
>>> roku.press_search()