Skip to main content

Python client for interacting with Compal CH7465LG devices.

Project description

Python Client for interacting with the cable modem/router Compal CH7465LG which is provided under different names by various ISP in Europe.

  • UPC Connect Box (CH)

  • Irish Virgin Media Super Hub 3.0 (IE)

  • Ziggo Connectbox (NL)

  • Unitymedia Connect Box (DE)

This module is not official, developed, supported or endorsed by UPC, Unitymedia or Compal.

There is an interface with is providing details about various states like the DHCP lease table for Ethernet and Wifi.

<?xml version="1.0" encoding="UTF-8"?>
<LanUserTable>
   <Ethernet>
      <clientinfo>
         <interface>Ethernet 2</interface>
         <IPv4Addr>192.168.0.160/24</IPv4Addr>
         <index>0</index>
         <interfaceid>2</interfaceid>
         <hostname>GW-B072BF27A983</hostname>
         <MACAddr>B0:72:BF:27:A9:83</MACAddr>
         <method>1</method>
         <leaseTime>00:00:34:53</leaseTime>
...

connect_box is handling the retrieval of the data and the parsing. The primary use case is the Home Assistant upc_connect device tracker but one could use it in other projects as well.

Installation

The module is available from the Python Package Index.

$ pip3 install connect_box

On a Fedora-based system or on a CentOS/RHEL 8 machine which has EPEL enabled.

$ sudo dnf -y install python3-connect-box

For Nix or NixOS is pre-packed module available. The lastest release is usually present in the unstable channel.

$nix-env -iA nixos.python39Packages.connect-box

Usage

The file example.py contains an example about how to use this module.

Development

For development is recommended to use a venv.

$ python3.6 -m venv .
$ source bin/activate
$ python3 setup.py develop

License

connect_box is licensed under MIT, for more details check LICENSE.

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

connect_box-0.2.9.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

connect_box-0.2.9-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file connect_box-0.2.9.tar.gz.

File metadata

  • Download URL: connect_box-0.2.9.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for connect_box-0.2.9.tar.gz
Algorithm Hash digest
SHA256 49d894da40af436a94372f76fb87715425925ca9484665ff0658cd03a5609242
MD5 b25567261d498cbddfa7f72de5977411
BLAKE2b-256 29d8bfb4c88222bbbf0fbe6b69ae613fc2d8d110fea355f15f0c3ea7a0efdf4d

See more details on using hashes here.

Provenance

File details

Details for the file connect_box-0.2.9-py3-none-any.whl.

File metadata

  • Download URL: connect_box-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for connect_box-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 207d4761538e5c12882e1f3fcbeba76e77691b72c41ea7b4d6846d32fe1db99b
MD5 71392d843b0d0cb87d74670ea8d7ee44
BLAKE2b-256 f4530c2ae684d97f44290d825d1ec4aaf96013a8be38446c9656f8edd2f08e45

See more details on using hashes here.

Provenance

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