Playground
MIT License
This is a python3 library for controlling and querying information from an Apple TV. It is built upon asyncio and supports most of the commands that the regular Apple Remote app does and more!
All the documentation you need is available at pyatv.dev.
To save you some time, here are some shortcuts: