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 formax_retries
andretry_delay
.
0.1.3 (2021-12-10)
- Added ADB
connect
params formax_retries
andretry_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
Built Distribution
File details
Details for the file android_tv_remote-0.1.6-py2.py3-none-any.whl
.
File metadata
- Download URL: android_tv_remote-0.1.6-py2.py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0adfa85399e451b0375cb57e43dc3ccc8cf8649ce53493dd516e87258d2abfc8 |
|
MD5 | 49eed385ef8dd7cd80312379703bcef5 |
|
BLAKE2b-256 | 4599e15a0ca6179d963595a6ab5a8435a9cf249f6efab8fa837bf3eafa889d19 |