与天空盒交互的python库。

pyinthesk的Python项目详细描述


DocsRelease VersionPython VersionLicenseBuild StatusCoverageCode Climate

这个库将直接连接到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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java BCrypt性能恶化   java从时间复杂度重要的值数组映射键值   java AES使用相同的IV进行加密和解密   java我可以用安卓编写php代码吗?   java Sql ddl获取外键信息   如何在Java中创建要打印到JFrame的JLabel数组   java为什么processing3禁止size()的变量参数?   SpringMVC中的java映射外键   数组java arraylist包含对象上的类型   java运行时。getRuntime()。gpg命令不起作用的exec()   通知Eclipse/Java应用程序中捕获的异常   java执行while循环以显示菜单   Java正则表达式从URL提取主机名和域名   java一对多映射不工作Spring数据JPA   java setPriority()方法可以被扩展Thread类的子类使用