Asynchronous Python client for Roku devices using the External Control Protocol.
This package allows you to monitor and control Roku devices.
pip install rokuecp
import asyncio
from rokuecp import Roku
async def main():
"""Show example of connecting to your Roku device."""
async with Roku("192.168.1.100") as roku:
print(roku)
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())