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
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.4.tar.gz
.
File metadata
- Download URL: rokuecp-0.19.4.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3f10a4a2e08392fe8c5f3fb6cd91951c7e1e4bb5aa8a3833fcc91c6897dea56 |
|
MD5 | 1a343a0bea8f81200b245ab1cb0f8d3d |
|
BLAKE2b-256 | 57d9aa7caf945e0badfa294bd892033a0701c36ab884160e39a992e213d693bd |
File details
Details for the file rokuecp-0.19.4-py3-none-any.whl
.
File metadata
- Download URL: rokuecp-0.19.4-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8af02bf68e6ea0879b6b36f53c12dcc405ceee043036c50c2be880d95c85ec16 |
|
MD5 | ee275eb24bad08073138a1deacdad4e5 |
|
BLAKE2b-256 | 3a89a891c081e5dfe6bb9633691dddf6d62121b89e63c39dba4f673328dab0b5 |