Skip to main content

Connector for EE BrightBox routers.

Project description

Connector for EE BrightBox and Smart Hub routers.

https://img.shields.io/travis/krygal/eebrightbox/master.svg https://img.shields.io/librariesio/github/krygal/eebrightbox.svg https://img.shields.io/codeclimate/maintainability-percentage/krygal/eebrightbox.svg https://img.shields.io/codeclimate/coverage/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 EERouter

config = {
    'version': 2,  # 2 - EE BrightBox 2, 3 - EE Smart Hub
    'host': '192.168.1.1', # optional
    'username': 'admin', # optional
    'password': 'admin_password', # found at the back of the router
}

with EERouter(config) as ee:
    active_devices = ee.get_active_devices()

    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}, ...]

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.6.tar.gz (34.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: eebrightbox-0.0.6.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.7

File hashes

Hashes for eebrightbox-0.0.6.tar.gz
Algorithm Hash digest
SHA256 77270714205591c4f8f74c01e663b117a1fae466d8e4e7e0fec741d5f2cd1531
MD5 3fe7330ad0fdafd70c2f49b78c1ef165
BLAKE2b-256 a5cf579f02bd0e9a89dfb565d79d25398568eafff9f2ea44cb7938c072a6874e

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