Skip to main content

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)

  • Play Connect Box (PL)

  • 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.python3Packages.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.

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

License

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

Release files for connect-box 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for connect-box 0.4.0
File Size Uploaded
connect_box-0.4.0.tar.gz 11.3 kB Details

Release files / connect_box-0.4.0.tar.gz

Download URL connect_box-0.4.0.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ada7a41f1ce3bbd36b1576ac03f32a1af8c68c03f3243b76617f1cfd3de771bc
BLAKE2b-256 checksum
How to use checksums
65aa95fae43890fd5fe36fd698e3fbd398e8f2e61124af43dc0f21e3ea5a1450
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.4.0 This release

1 release file

0.3.1

1 release file

0.3.0

2 release files

0.2.9

2 release files

0.2.8

1 release file

0.2.7

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page