Skip to main content

Connector for EE BrightBox routers.

Project description

Connector for EE BrightBox routers.

https://img.shields.io/travis/krygal/eebrightbox/master.svg https://img.shields.io/librariesio/github/krygal/eebrightbox.svg https://img.shields.io/pypi/v/eebrightbox.svg https://img.shields.io/pypi/pyversions/eebrightbox.svg https://img.shields.io/pypi/l/eebrightbox.svg

Installation

pip install eebrightbox

Example

from eebrightbox import EEBrightBox

config = {
    'version': 2,
    'host': '192.168.1.1', # optional
    'username': 'admin', # optional
    'password': 'admin_password', # found at the back of the router
}

with EEBrightBox(config) as ee:
    active_devices = ee.get_active_devices()
    ssids = ee.get_ssids()

    print(active_devices)
    # Output: [{'mac': '10:AD:E1:2C:68:FE', 'hostname': 'hostname1', 'port': 'wl1', 'ip': '192.168.1.111', 'ipv6': None, 'ipv6_ll': None, 'time_first_seen': datetime.datetime(2018, 12, 9, 14, 46, 28), 'time_last_active': datetime.datetime(2018, 12, 22, 14, 26, 3), 'activity': True, 'activity_ip': True, 'activity_ipv6': False, 'activity_ipv6_ll': True, 'dhcp_option': None, 'name': 'name1', 'os': None, 'device': None, 'device_oui': None, 'device_serial': None, 'device_class': None}, ...]

    print(ssids)
    # Output: [{'ssid': 'EE-abcdef', 'enabled': True, 'security': 2, 'password': 'three-word-password', 'broadcast': True}, {'ssid': '5GHz-EE-abcdef', 'enabled': True, 'security': 2, 'password': 'three-word-password', 'broadcast': True}]

License

MIT License

Copyright (c) 2018 Krystian Galutowski

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eebrightbox-0.0.4.tar.gz (24.9 kB view details)

Uploaded Source

File details

Details for the file eebrightbox-0.0.4.tar.gz.

File metadata

  • Download URL: eebrightbox-0.0.4.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for eebrightbox-0.0.4.tar.gz
Algorithm Hash digest
SHA256 87b2feacaab4a0c0a80d5666d11b566155d0b9fcf2e2028bfd24de2885bdc7b0
MD5 0e52b2497a26c67655b00eda283503c0
BLAKE2b-256 d67e92be892071c4dd6a90d785b67550edc0f98016f6d215494af041c3f03e51

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page