Skip to main content

windows-apple-remote

CI PyPI

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:

  1. On pypi.org add a pending publisher: project windows-apple-remote, owner aryakvn, repository windows-apple-remote, workflow publish.yml, environment pypi.
  2. Optional dry run: do the same on test.pypi.org with environment testpypi.

Each release:

  1. Bump __version__ in src/atv_remote/__init__.py and move the Unreleased entries in CHANGELOG.md under the new version.
  2. Optional: run the Publish workflow by hand (Actions tab) to upload to TestPyPI.
  3. 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.1

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

Source distribution (sdist)

Source distribution for windows-apple-remote 0.1.1
File Size Uploaded
windows_apple_remote-0.1.1.tar.gz 19.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for windows-apple-remote 0.1.1
File Interpreter ABI Platform
windows_apple_remote-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 31.6 kB

Release files / windows_apple_remote-0.1.1.tar.gz

Download URL windows_apple_remote-0.1.1.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9fd115d20077062f93cbda11c49b9bca74662cd1bee0a20921c32c0144062384
BLAKE2b-256 checksum
How to use checksums
edd268beccf9bae14faecb943cf1f10008c69d2a88f2fb815f1f1529fd8a8a60
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 24, 2026.

Transparency log

Release files / windows_apple_remote-0.1.1-py3-none-any.whl

Download URL windows_apple_remote-0.1.1-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0b4b09814ba53df15dfb150b3007ae61e8983ebe32baf9efd4ce750610ca712
BLAKE2b-256 checksum
How to use checksums
008d54fb7ed4a79714c91fdf1baf3efc6c8b4b42c55f892ce08340c958a1b824
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 24, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

2 release files

0.1.2

2 release files

This release

0.1.1 This release

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