windows-apple-remote
Package: windows-apple-remote · Source:
github.com/aryakvn/windows-apple-remote
Control your Windows PC's media with the Apple TV Remote on your iPhone or iPad (Control Center → Apple TV Remote). The PC advertises itself as an Apple TV over the Companion protocol using pyatv, and turns remote buttons into media keys.
| Remote (touch area) | PC |
|---|---|
| Tap | Play/Pause |
| Swipe right / left | Next / Previous track |
| Swipe up / down (longer = more) | Volume Up / Down |
| iPhone volume buttons | Volume Up / Down |
| Back (Menu) | Escape |
Install & run
pip install windows-apple-remote
atv-remote
Or the latest code from GitHub:
pip install git+https://github.com/aryakvn/windows-apple-remote.git
Then on the iPhone (same Wi-Fi network): Control Center → Apple TV Remote → pick your PC's name. The first time, a 4-digit PIN is printed in the terminal; type it on the phone. The phone is remembered afterwards.
Options:
atv-remote --name "Living Room PC" # name shown on the phone (default: hostname)
atv-remote --address 192.168.1.20 # IP to advertise if auto-detect picks the wrong adapter
atv-remote --port 49200 # fixed TCP port (useful for firewall rules)
atv-remote -v # debug logging
Notes
- Windows Firewall: allow Python on private networks when prompted, or the phone can't connect. mDNS (UDP 5353) must be allowed too.
- Forget all paired devices: delete
%APPDATA%\atv-remote\state.json. It also holds this PC's private identity key, so keep it private. - Media and volume keys are global; Back (Escape) goes to the focused window.
- Windows has a single Play/Pause key, so the remote's separate Play and Pause both toggle.
- Now-playing info and the volume slider are not supported (they need AirPlay/MRP).
- macOS support is planned. HomeKit is not supported.
Development
git clone https://github.com/aryakvn/windows-apple-remote.git
cd windows-apple-remote
python -m venv .venv
.venv\Scripts\activate
pip install -e ".[test]"
pytest
Use pip install -e (editable). A plain pip install . copies the code into the venv
and later edits stop taking effect. Stop a running atv-remote before reinstalling;
Windows locks its executable.
The tests use pyatv's own client to pair with the server and press buttons end to end. Bugs and ideas: issues.
Releasing to PyPI
Publishing uses trusted publishing, so no API token is stored in GitHub. One-time setup:
- On pypi.org add a pending publisher:
project
windows-apple-remote, owneraryakvn, repositorywindows-apple-remote, workflowpublish.yml, environmentpypi. - Optional dry run: do the same on test.pypi.org
with environment
testpypi.
Each release:
- Bump
__version__insrc/atv_remote/__init__.pyand move theUnreleasedentries inCHANGELOG.mdunder the new version. - Optional: run the Publish workflow by hand (Actions tab) to upload to TestPyPI.
- Publish a GitHub release tagged
vX.Y.Z(matching__version__). The workflow runs the tests, checks the tag against the version, builds, and uploads to PyPI.
Release files for windows-apple-remote 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| windows_apple_remote-0.1.2.tar.gz | 19.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| windows_apple_remote-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.0 kB
Release files / windows_apple_remote-0.1.2.tar.gz
| Download URL | windows_apple_remote-0.1.2.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b373e3baf263a7c5bf5858c01f72cef4728e21fd6d84398366f67a685315f36
|
|
BLAKE2b-256 checksum How to use checksums |
8678064dcb54a3509eb13bd5299514416e513df7acde58a25d91c0817910b30b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / windows_apple_remote-0.1.2-py3-none-any.whl
| Download URL | windows_apple_remote-0.1.2-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81cbe842a5741f2055d286b3795ce5d8ea6e9ce14b71e6f3faa0073b627b0ba1
|
|
BLAKE2b-256 checksum How to use checksums |
3c144487bae51a9ff877627be573b7d9d9b835f4432336a5a0c9eeba6bad0e08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency log