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

Uploaded Source

Built Distribution

rokuecp-0.19.3-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rokuecp-0.19.3.tar.gz
Algorithm Hash digest
SHA256 b7db82f0baccf5ddc93b266a21f5bb2619a8bd47dcd28995d08b60057288311f
MD5 08b66cd4ff6415cb69eaee296e1964ec
BLAKE2b-256 ad6ba152c41174baa085d3f0949c4dc3eaa6ad3c48c2f9c807fa9c2b647e663f

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for rokuecp-0.19.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b4b95a098d9de18cdbda6d724876345ca13647188ce1bbe9e400a888cfb8c3fe
MD5 97ab7d56bfbf11225bf835207544e2bf
BLAKE2b-256 b8ef5cfc2c10063fbefccea390ff1d228e14b47a970c8057dd7f169b5b080304

See more details on using hashes here.

Provenance

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