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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7db82f0baccf5ddc93b266a21f5bb2619a8bd47dcd28995d08b60057288311f |
|
MD5 | 08b66cd4ff6415cb69eaee296e1964ec |
|
BLAKE2b-256 | ad6ba152c41174baa085d3f0949c4dc3eaa6ad3c48c2f9c807fa9c2b647e663f |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4b95a098d9de18cdbda6d724876345ca13647188ce1bbe9e400a888cfb8c3fe |
|
MD5 | 97ab7d56bfbf11225bf835207544e2bf |
|
BLAKE2b-256 | b8ef5cfc2c10063fbefccea390ff1d228e14b47a970c8057dd7f169b5b080304 |