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.19.2.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

rokuecp-0.19.2-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rokuecp-0.19.2.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1015-azure

File hashes

Hashes for rokuecp-0.19.2.tar.gz
Algorithm Hash digest
SHA256 0bba945acedadf0f6689b93a4d599ebaeacd3ec7731e54fddcbc75453508bcfb
MD5 f43608a6fdd3e0ea5cb6d1a4d6e16ce4
BLAKE2b-256 2c10613620507c0b1b07fd62a179c7263edcc7b2a700032deec3bdd6e2af937a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rokuecp-0.19.2-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1015-azure

File hashes

Hashes for rokuecp-0.19.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e24b13ddb0b443857ed325dbcc9b0e86d1f051a9929f8d46b6358ba34a78f7af
MD5 69fd9b4768ecfe3085331af1e6d348a1
BLAKE2b-256 699d2a1b939eaacb20b1ef0d66ab3c921d01f0639398f56a852b0c3c2465b4f5

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