Skip to main content

Python Android TV Remote

Author:Tim Santor tsantor@xstudios.com

Overview

Simple package that allows you to mimic Android TV remote inputs via Python. Designed to be used over TCP (not USB).

Features

Offers a limited set of ADB commands. See src\androidtvremote\adb.py for all commands.

- `tcp`
- `devices`
- `connect`
- `install`
- `uninstall`
- `push`
- `pull`
- `get-state`
- `get-serialno`
- `get-devpath`
- `reboot`
- `start-server`
- `kill-server`

Installation

To install python-android-tv-remote, simply:

pip install android-tv-remote

Tips

Get IP address:

adb devices
adb -s <DEVICE_ID> shell ip -f inet addr show wlan0

Development

make env
make reqs
pip install -e .

Testing

Project is at 76% test coverage.

pytest -v
tox

# Run a specific test
pytest -v tests/test_adb.py -k test_get_ip_address

# Run coverage
pytest --cov-report html --cov-report term --cov=tests/

Documentation

Documentation is available at TODO

Issues

If you experience any issues, please create an issue on Bitbucket.

History

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

0.1.6 (2023-06-22)

  • New packaging method using pyproject.toml
  • Added new tests

0.1.5 (2022-01-04)

  • Ensure the ADB server is started as a background process during init.

0.1.4 (2021-12-12)

  • Removed ADB connect params for max_retries and retry_delay.

0.1.3 (2021-12-10)

  • Added ADB connect params for max_retries and retry_delay.

0.1.2 (2021-12-09)

  • Added ADB disconnect method.
  • Removed keycode constants from remote.py. Can pass actual string constants to ADB.

0.1.1 (2021-12-08)

  • Added KEYCODE_SOFT_SLEEP

0.1.0 (2019-04-25)

  • First release on PyPI.

Metadata

Release files for android-tv-remote 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for android-tv-remote 0.1.6
File Interpreter ABI Platform
android_tv_remote-0.1.6-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / android_tv_remote-0.1.6-py2.py3-none-any.whl

Download URL android_tv_remote-0.1.6-py2.py3-none-any.whl
Size 7.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0adfa85399e451b0375cb57e43dc3ccc8cf8649ce53493dd516e87258d2abfc8
BLAKE2b-256 checksum
How to use checksums
4599e15a0ca6179d963595a6ab5a8435a9cf249f6efab8fa837bf3eafa889d19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.11

Release history Release notifications | RSS feed

This release

0.1.6 This release

1 release file

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page