与天空盒交互的python库。
pyinthesk的Python项目详细描述
这个库将直接连接到Sky+ box-使用UPnP协议,可以调用 与框交互的操作。
示例用法
>>> 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.
您可以在项目repository中浏览源代码和文件错误报告。完整的文档可以找到here。