Start | Scan, Pair and Connect | Device Information | Control | Power Management | Features | Metadata | Listeners | Stream | Storage | Apps | Audio | Keyboard | Logging | Examples


There are a few example bundled with pyatv in the examples subdirectory:

Filename Description Demonstrates the simple auto_connect helper. Restores credentials for a device before connecting. Manual creation of a configuration used to connect to a device. Generic example demonstrating the pairing API. Play a video from URL using AirPlay. Scans for devices, picks the first one and connects to it. Connect to a device using storage API. Stream audio file to an AirPlay/RAOP receiver. Complete source code of tutorial.

These scripts that are bundled with pyatv can be used for inspiration as well:

More examples can be added on request, please write an issue if you want something more specific.

← Logging