Skip to main content

Asynchronous Python client for Roku (ECP)

Project description

Python: Roku (ECP) Client

Asynchronous Python client for Roku devices using the External Control Protocol.

About

This package allows you to monitor and control Roku devices.

Installation

pip install rokuecp

Usage

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

Setting up development environment

This Python project is fully managed using the Poetry dependency manager. But also relies on the use of NodeJS for certain checks during development.

You need at least:

  • Python 3.9+
  • Poetry
  • NodeJS 14+ (including NPM)

To install all packages, including all development requirements:

npm install
poetry install

As this repository uses the pre-commit framework, all changes are linted and tested with each commit. You can run all checks and tests manually, using the following command:

poetry run pre-commit run --all-files

To run just the Python tests:

poetry run pytest

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

rokuecp-0.15.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

rokuecp-0.15.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file rokuecp-0.15.0.tar.gz.

File metadata

  • Download URL: rokuecp-0.15.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.10 Linux/5.11.0-1028-azure

File hashes

Hashes for rokuecp-0.15.0.tar.gz
Algorithm Hash digest
SHA256 bfadf3c5310a7c5b5a2bb4b5666b3fe78f06b490d67cc470853135efd77bb1ce
MD5 b5992f7327c745fc6d5ee786c7a97793
BLAKE2b-256 49d27c4a40527383494e6b93a574f11efa67fa1fe4183668b1d50b6439b4cf85

See more details on using hashes here.

File details

Details for the file rokuecp-0.15.0-py3-none-any.whl.

File metadata

  • Download URL: rokuecp-0.15.0-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.10 Linux/5.11.0-1028-azure

File hashes

Hashes for rokuecp-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b1f27c4d02010b62a354c02d289638c58a5e9ddfc25fc0f26e8e9965b94706f
MD5 4106fd0432168520e0dc7295d49edd6d
BLAKE2b-256 6c6edd4954de75c7d8f40bb0c3523b440cf934b3aec4b9f28737aa59bb410777

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