https://github.com/the-allanc/pyinthesky
Python library to interact with Sky boxes.
https://github.com/the-allanc/pyinthesky
sky upnp
Last synced: 2 months ago
JSON representation
Python library to interact with Sky boxes.
- Host: GitHub
- URL: https://github.com/the-allanc/pyinthesky
- Owner: the-allanc
- License: mit
- Created: 2014-01-28T13:54:58.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-10-01T17:57:56.000Z (over 7 years ago)
- Last Synced: 2025-04-22T15:08:29.346Z (2 months ago)
- Topics: sky, upnp
- Language: Python
- Size: 74.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
.. |name| replace:: pyinthesky
.. |summary| replace:: Python library to interact with Sky boxes.|name|
======|summary|
.. _repository: https://github.com/the-allanc/pyinthesky/
.. _documentation: https://pyinthesky.readthedocs.io/en/stable/
.. _pypi: https://pypi.python.org/pypi/pyinthesky
.. _coveralls: https://coveralls.io/github/the-allanc/pyinthesky
.. _license: https://github.com/the-allanc/pyinthesky/master/LICENSE.txt
.. _travis: https://travis-ci.org/the-allanc/pyinthesky
.. _codeclimate: https://codeclimate.com/github/the-allanc/pyinthesky.. |Build Status| image:: https://img.shields.io/travis/the-allanc/pyinthesky.svg
:target: travis_
:alt: Build Status
.. |Coverage| image:: https://img.shields.io/coveralls/the-allanc/pyinthesky.svg
:target: coveralls_
:alt: Coverage
.. |Docs| image:: https://readthedocs.org/projects/pyinthesky/badge/?version=stable&style=flat
:target: documentation_
:alt: Docs
.. |Release Version| image:: https://img.shields.io/pypi/pyversions/pyinthesky.svg
:target: pypi_
:alt: Release Version
.. |Python Version| image:: https://img.shields.io/pypi/v/pyinthesky.svg
:target: pypi_
:alt: Python Version
.. |License| image:: https://img.shields.io/pypi/l/pyinthesky.svg
:target: license_
:alt: License
.. |Code Climate| image:: https://img.shields.io/codeclimate/issues/github/the-allanc/pyinthesky.svg
:target: codeclimate_
:alt: Code Climate|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)
>>>
>>> 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... all-content-above-will-be-included-in-sphinx-docs
You can browse the source code and file bug reports at the project repository_. Full documentation can be found `here`__.
__ documentation_