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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rokuecp-0.19.5.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for rokuecp-0.19.5.tar.gz
Algorithm Hash digest
SHA256 70514bf2e09c3223a94a1b42c7621b9dd789263e75cec86e6ca9a61f4fa5b4ee
MD5 5a18b0a345f91558fa8638a8595cd6ba
BLAKE2b-256 80ffdfa2d238d66500d48ceab446f99bd0540cce00469a1dd02ec3ec09e2b058

See more details on using hashes here.

Provenance

The following attestation bundles were made for rokuecp-0.19.5.tar.gz:

Publisher: release.yml on ctalkington/python-rokuecp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: rokuecp-0.19.5-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for rokuecp-0.19.5-py3-none-any.whl
Algorithm Hash digest
SHA256 423eda5526ff9ed08aa1697533c41d7fc93fe34d9114f55cd9e62698146afc01
MD5 d3ca5a7d3a054772c1e790a5416867f3
BLAKE2b-256 ee8caa525121136d20e0e6d03021afb29504562f3930b1d5235cb468d152e05b

See more details on using hashes here.

Provenance

The following attestation bundles were made for rokuecp-0.19.5-py3-none-any.whl:

Publisher: release.yml on ctalkington/python-rokuecp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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