Asynchronous library to the Roku media player. Easy, breezy, beautiful.
Project description
Screw remotes. Control your Roku via Python. Asynchronously.
Installation
pip install aioroku
Usage
Requires Python 3.5 and uses asyncio and aiohttp.
import asyncio import aiohttp from aioroku import AioRoku def get_args(): arg_parser = ArgumentParser() arg_parser.add_argument('--roku_ip', '-r', metavar="ROKU_IP_ADDRESS") args = arg_parser.parse_args() return args.roku_ip async def main(): async with aiohttp.ClientSession() as session: my_roku = AioRoku(host, session) print(await my_roku.active_app) if __name__ == '__main__': roku_ip = get_args() loop = asyncio.get_event_loop() loop.run_until_complete(main(roku_ip)) loop.close()
TODO
Docs
Tests, of course.
Project details
NoneRelease history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aioroku-1.0.0.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for aioroku-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af247c272d7530e36e56895256c492caf038ea3737656dd3f2100fc28f8b2060 |
|
MD5 | 67e2120c7d511569eee8e9e6ae36d5f4 |
|
BLAKE2b-256 | f5286fa5d406428ed5224ee3f33bb01807792c80cce12b1babc07aa1c023c90a |