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 18+ (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.18.1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

rokuecp-0.18.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rokuecp-0.18.1.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1042-azure

File hashes

Hashes for rokuecp-0.18.1.tar.gz
Algorithm Hash digest
SHA256 0d90e97fdeb289ea49b6d8929abfc50d9e6dc86524acd594c7f32c51466bf599
MD5 c4819f82aa32f76aef886df454199352
BLAKE2b-256 9e21af811dcd61ec8730a15d83d7b614de3b6d7aab1ad7c5e8417b32cefe5058

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rokuecp-0.18.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1042-azure

File hashes

Hashes for rokuecp-0.18.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43ae66d62430b88ce103c3d4ca66e040b3ce30fb4c72b0ad1091f087d2bad134
MD5 67c73439edbb2570eb70447962d0b59e
BLAKE2b-256 5507c056b9af9e1cbce1df8f79931103dfb862810ad555c8e1089b3c283409a3

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