Skip to main content

Provides a limited set of ADB commands. Primarly acts as a remote to control Android TV interfaces.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

android_tv_remote-0.1.6-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file android_tv_remote-0.1.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for android_tv_remote-0.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0adfa85399e451b0375cb57e43dc3ccc8cf8649ce53493dd516e87258d2abfc8
MD5 49eed385ef8dd7cd80312379703bcef5
BLAKE2b-256 4599e15a0ca6179d963595a6ab5a8435a9cf249f6efab8fa837bf3eafa889d19

See more details on using hashes here.

Supported by

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