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

Uploaded Source

File details

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

File metadata

  • Download URL: eebrightbox-0.0.5.tar.gz
  • Upload date:
  • Size: 34.0 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.5.tar.gz
Algorithm Hash digest
SHA256 04549ace6d55a4cfdb5bcdd212aef36296667f82100159c9d734cb0d66e73c2e
MD5 50037cb8044d78e8a265e8c300dee36e
BLAKE2b-256 3b6e9a7e5584b2b4c99a8d3e16e018a602a75e74022517b5afcc9d7c3de0636f

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