Skip to content

About

Interact with a Connect Box 3 modem/router

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

38 Commits

Folders and files

Repository files navigation

connect-box3

Python API Client to interact with a Connect Box 3 modem/router.

For older hardware revisions (e. g., UPC Connect Box 2), please use connect-box.

The device could be provided under different names by various ISP in Europe.

Currently tested with:

Provider Name Model
Sunrise Connect Box 3 F5685LGB

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

Installation

connect-box3 is available on PyPI.

pip3 install connect-box3

For NixOS, the package is available from Nixpkgs.

nix-env -iA nixos.python3Packages.connect-box3

Usage

connect-box is a CLI application that show-cases the functionality of the module.

connect-box system --password xxx --host 192.168.1.1
              system               
┏━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Field           ┃ Value         ┃
┡━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ modelName       │ F5685LGB      │
│ softwareVersion │ 4.11.1-2309.6 │
│ hardwareVersion │ 1.2.1b        │
└─────────────────┴───────────────┘

See also example.py for usage examples.

Development

Running tests

Tests use hatch to manage the test environment. To run the test suite:

hatch run test:run

To run a specific test file or test:

hatch run test:run tests/test_client.py
hatch run test:run -k test_login

Linting

hatch run ruff check .
hatch run ruff format --check .

License

Licensed under MIT. See LICENSE for details.

About

Interact with a Connect Box 3 modem/router

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages