bthomehub5-devicelist-0.1.1
توضیحات
A library that returns a list of devices currently connected to a BT Home Hub 5
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bthomehub5-devicelist-0.1.1 |
| نام | bthomehub5-devicelist |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Arran Hobson Sayers |
| ایمیل نویسنده | ahobsonsayers@gmail.com |
| آدرس صفحه اصلی | https://github.com/ahobsonsayers/bthomehub5-devicelist |
| آدرس اینترنتی | https://pypi.org/project/bthomehub5-devicelist/ |
| مجوز | - |
# bthomehub5-devicelist
This library will return a dictionary containing information about the devices currently connected to a BT Home Hub 5 with a user specified IP Address.
## Installation
pip install bthomhub5-devicelist
## How to use
Example Usage:
import bthomehub5_devicelist
from pprint import pprint
def main():
# If an IP Address is not specified, it will default as 192.169.1.254
devicelist = bthomehub5_devicelist.get_devicelist('192.168.1.254')
pprint(devicelist)
if __name__ == '__main__':
main()
The library will return a dictionary with connected devices MAC addresses as keys and device names as values
The console output from running the example code will look like this:
```
>>>
{'4f:c9:32:04:d3:ec': 'Example-PC',
'3f:6a:66:49:d4:16': 'Example-IPhone',
'01:5d:e8:fb:c8:a9': 'Example-Smartlight',
'65:10:5c:6d:d0:2b': 'Example-Android'}
```
## License
MIT - Feel free to go crazy with the code
نیازمندی
| مقدار | نام |
|---|---|
| ==0.1.5 | html-table-parser-python3 |
| - | requests |
نحوه نصب
نصب پکیج whl bthomehub5-devicelist-0.1.1:
pip install bthomehub5-devicelist-0.1.1.whl
نصب پکیج tar.gz bthomehub5-devicelist-0.1.1:
pip install bthomehub5-devicelist-0.1.1.tar.gz