pyinthesky

Python library to interact with Sky boxes.

Docs Release Version Python Version License Build Status Coverage Code Climate

This library is to make it straight-forward to connect to Sky+ boxes - using the UPnP protocol, you can invoke actions to interact with the box.

Example Usage

>>> import pyinthesky
>>> skybox = pyinthesky.locate() # Find the Sky box on the network.
>>> conn = pyinthesky.Connection(skybox)
>>> conn.connect()
>>>
>>> recs = conn.get_recordings()
>>> next(recs)
<Recording "Doctor Who: The Seeds Of Death" (horror channel) at 2015-05-12 10:00>
>>>
>>> conn.count_recordings()
171
>>>
>>> conn.get_disk_space_info()['perc_used']
77.67807431685328
>>>
>>> # The below methods are dynamically created when a connection is made and we
>>> # load up the service descriptions from the box.
>>> conn.Pause(0) # Pause the currently playing show.
>>> conn.Play(0)  # And resume.

Project Home

You can browse the source code and file issues at the project repository.

Indices and tables