Skip to main content

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


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 details)

Uploaded Source

Built Distribution

aioroku-1.0.0-py2.py3-none-any.whl (13.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file aioroku-1.0.0.tar.gz.

File metadata

  • Download URL: aioroku-1.0.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.21.0

File hashes

Hashes for aioroku-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fcbac1d68da1685951c07899430691f4fe710e499660f982c6bd525a0e3da179
MD5 135ed6bf960c1beb12a5d283280e27ac
BLAKE2b-256 b655f9695e02ce96e3c8606c5419e846418aeb987abd286da1996c92f8ee0aea

See more details on using hashes here.

File details

Details for the file aioroku-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: aioroku-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.21.0

File hashes

Hashes for aioroku-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 af247c272d7530e36e56895256c492caf038ea3737656dd3f2100fc28f8b2060
MD5 67e2120c7d511569eee8e9e6ae36d5f4
BLAKE2b-256 f5286fa5d406428ed5224ee3f33bb01807792c80cce12b1babc07aa1c023c90a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page