PyChromecast
Python module to talk to Google Chromecast.
Library for Python 2 and 3 to communicate with the Google Chromecast. It currently supports:
Auto discovering connected Chromecasts on the network
Start the default media receiver and play any online media
Control playback of current playing media
Implement Google Chromecast api v2
Communicate with apps via channels
Easily extendable to add support for unsupported namespaces
Multi-room setups with Audio cast devices
Check out [Home Assistant](https://home-assistant.io) for a ready-made solution using PyChromecast for controlling and automating your Chromecast or Cast-enabled device like Google Home.
https://github.com/balloob/pychromecast