%global _empty_manifest_terminate_build 0 Name: python-pyskyqhub Version: 0.1.9 Release: 1 Summary: Library for Sky Q hub License: MIT URL: https://github.com/RogerSelwyn/skyq_hub Source0: https://mirrors.nju.edu.cn/pypi/web/packages/72/74/e1369bfdc4b15a47c6e306f830a77976741dedd61973a60a4dca09ee803c/pyskyqhub-0.1.9.tar.gz BuildArch: noarch Requires: python3-aiohttp %description [![CodeFactor](https://www.codefactor.io/repository/github/rogerselwyn/skyq_hub/badge)](https://www.codefactor.io/repository/github/rogerselwyn/skyq_hub) [![maintained](https://img.shields.io/maintenance/yes/2022.svg)](#) [![maintainer](https://img.shields.io/badge/maintainer-%20%40RogerSelwyn-blue.svg)](https://github.com/RogerSelwyn) # pyskyqhub Python module for accessing Sky Q hub and retrieving connected devices ## Introduction This library enables access to SkyQ hub to pull back a list of devices connected to the hub, and their names/ ## Installing To install: ``` pip install pyskyqhub ``` ## Usage ### Base ``` from pyskyqremote import SkyQhub hub = SkyQHub('192.168.1.254') await hub.async_connect() ``` hub.success_init will indicate for connection was succesful or not ### Get connected devices ``` devices = await skyhub.async_get_skyhub_data() ``` Will return an object such as below: ``` [ {'mac': '68:xx:7b:cc:xx:5c', 'name': 'UNKNOWN', 'connection': 'Wireless'}, {'mac': '70:xx:57:a3:xx:f0', 'name': 'UNKNOWN', 'connection': 'Cabled'}, {'mac': 'e4:xx:6e:44:xx:7d', 'name': 'Laptop', 'connection': 'Wireless'}, {'mac': '20:xx:ed:c5:xx:72', 'name': 'SKY+HD', 'connection': 'UnKnown'}, {'mac': '18:xx:30:bf:xx:e6', 'name': '09AA0xxxxxx02WV', 'connection': 'Wireless'}, ... ] ``` %package -n python3-pyskyqhub Summary: Library for Sky Q hub Provides: python-pyskyqhub BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-pyskyqhub [![CodeFactor](https://www.codefactor.io/repository/github/rogerselwyn/skyq_hub/badge)](https://www.codefactor.io/repository/github/rogerselwyn/skyq_hub) [![maintained](https://img.shields.io/maintenance/yes/2022.svg)](#) [![maintainer](https://img.shields.io/badge/maintainer-%20%40RogerSelwyn-blue.svg)](https://github.com/RogerSelwyn) # pyskyqhub Python module for accessing Sky Q hub and retrieving connected devices ## Introduction This library enables access to SkyQ hub to pull back a list of devices connected to the hub, and their names/ ## Installing To install: ``` pip install pyskyqhub ``` ## Usage ### Base ``` from pyskyqremote import SkyQhub hub = SkyQHub('192.168.1.254') await hub.async_connect() ``` hub.success_init will indicate for connection was succesful or not ### Get connected devices ``` devices = await skyhub.async_get_skyhub_data() ``` Will return an object such as below: ``` [ {'mac': '68:xx:7b:cc:xx:5c', 'name': 'UNKNOWN', 'connection': 'Wireless'}, {'mac': '70:xx:57:a3:xx:f0', 'name': 'UNKNOWN', 'connection': 'Cabled'}, {'mac': 'e4:xx:6e:44:xx:7d', 'name': 'Laptop', 'connection': 'Wireless'}, {'mac': '20:xx:ed:c5:xx:72', 'name': 'SKY+HD', 'connection': 'UnKnown'}, {'mac': '18:xx:30:bf:xx:e6', 'name': '09AA0xxxxxx02WV', 'connection': 'Wireless'}, ... ] ``` %package help Summary: Development documents and examples for pyskyqhub Provides: python3-pyskyqhub-doc %description help [![CodeFactor](https://www.codefactor.io/repository/github/rogerselwyn/skyq_hub/badge)](https://www.codefactor.io/repository/github/rogerselwyn/skyq_hub) [![maintained](https://img.shields.io/maintenance/yes/2022.svg)](#) [![maintainer](https://img.shields.io/badge/maintainer-%20%40RogerSelwyn-blue.svg)](https://github.com/RogerSelwyn) # pyskyqhub Python module for accessing Sky Q hub and retrieving connected devices ## Introduction This library enables access to SkyQ hub to pull back a list of devices connected to the hub, and their names/ ## Installing To install: ``` pip install pyskyqhub ``` ## Usage ### Base ``` from pyskyqremote import SkyQhub hub = SkyQHub('192.168.1.254') await hub.async_connect() ``` hub.success_init will indicate for connection was succesful or not ### Get connected devices ``` devices = await skyhub.async_get_skyhub_data() ``` Will return an object such as below: ``` [ {'mac': '68:xx:7b:cc:xx:5c', 'name': 'UNKNOWN', 'connection': 'Wireless'}, {'mac': '70:xx:57:a3:xx:f0', 'name': 'UNKNOWN', 'connection': 'Cabled'}, {'mac': 'e4:xx:6e:44:xx:7d', 'name': 'Laptop', 'connection': 'Wireless'}, {'mac': '20:xx:ed:c5:xx:72', 'name': 'SKY+HD', 'connection': 'UnKnown'}, {'mac': '18:xx:30:bf:xx:e6', 'name': '09AA0xxxxxx02WV', 'connection': 'Wireless'}, ... ] ``` %prep %autosetup -n pyskyqhub-0.1.9 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-pyskyqhub -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Mon May 15 2023 Python_Bot - 0.1.9-1 - Package Spec generated