Python library to interact with Sky boxes.
Project description
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.
You can browse the source code and file bug reports at the project repository. Full documentation can be found here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyinthesky-0.5.tar.gz
(16.3 kB
view hashes)
Built Distribution
Close
Hashes for pyinthesky-0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7570bc8de932c492ca69bac2ff93091534dcfda0727a44f0207f944bccc2cea8 |
|
MD5 | f8b6dd87d1de7a93ec467366b7967ce3 |
|
BLAKE2b-256 | 3190f87204b8b2c6f61b1e30e79a727e7fff9a6bf52034224833fe6bfa46baa1 |