Metadata-Version: 2.1
Name: pyskyq
Version: 0.1.3
Summary: A python library to control a Sky Q Box
Home-page: https://gitlab.com/bradwood/pyskyq
Author: Bradley Wood
Author-email: pyskyq@bradleywood.com
License: mit
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Provides-Extra: reno
Provides-Extra: reno
Requires-Dist: reno[sphinx]; extra == 'reno'

.. image:: https://gitlab.com/bradwood/pyskyq/badges/develop/pipeline.svg
   :target: https://gitlab.com/bradwood/pyskyq/pipelines

.. image:: https://gitlab.com/bradwood/pyskyq/badges/develop/coverage.svg
   :target: https://bradwood.gitlab.io/pyskyq/develop/coverage/

.. image:: https://badge.fury.io/py/pyskyq.svg
    :target: https://badge.fury.io/py/pyskyq

.. image:: https://img.shields.io/readthedocs/pip.svg   
   :target: https://pyskyq.readthedocs.io/en/latest/


======
pyskyq
======


A Python library for controlling a SkyQ Box

Installing
==========

To install:

::

    pip install pyskyq

Using the cli
=============

You can use the cli tool like this:

::

    pyskyq play

This will press the "play" button on your Sky Q Remote. See constants.py_ for a list of the commands that can be passed.

.. _constants.py: https://gitlab.com/bradwood/pyskyq/blob/develop/src/pyskyq/constants.py

Using the library
=================

The below snippet gives an example of usage:

::

    from pyskyq import SkyQ

    skyq = SkyQ('1.2.3.4')
    skyq.remote.send_command(RCMD.play)

Credits
=======
Code and ideas obtained from:

- https://github.com/dalhundal/sky-remote
- https://gladdy.uk/blog/2017/03/13/skyq-upnp-rest-and-websocket-api-interfaces/

Thank you to those individuals for their contributions.


