Skip to main content

Fetch data from bouygues bbox

Project description

bboxpy

Manage your Bouygues Bbox in Python

Easily manage your Bbox in Python. Check your config, configure your dhcp, disable your wifi, monitor your LAN activity and many others, on LAN or remotely.

bboxpy is a python library implementing fir the Bbox.

This project is based on stilllman/aiofreepybox, which provides the same features as aiofreepybox in a synchronous manner.

Install

Use the PIP package manager

$ pip install bboxpy

Or manually download and install the last version from github

$ git clone https://github.com/cyr-ius/bboxpy.git
$ python setup.py install

Get started

# Import the bboxpy package.
from bboxpy import Bbox
from bboxpy.exceptions import BboxException

async def async_main()
    # Instantiate the Sysbus class using default options.
    bbox = Bbox(hostname="https://192.168.1.254",pass='xxxxxx')

    # Connect to the livebox with default options.
    await bbox.async_login()

    try:
        device_info = await bbox.device.async_get_bbox_info()
        print(device_info)
    except BboxException as error:
        logger.error(error)

    # Do something useful, rebooting your livebox for example.
    await bbox.device.async_reboot()

    # Properly close the session.
    await bbox.async_logout()


if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(async_main())

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

bboxpy-1.0.7.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

bboxpy-1.0.7-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file bboxpy-1.0.7.tar.gz.

File metadata

  • Download URL: bboxpy-1.0.7.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for bboxpy-1.0.7.tar.gz
Algorithm Hash digest
SHA256 1fc41d4362c209725907bf65dce0f410bf2133a7ca6bcda4dbdee5b60df00320
MD5 9098ae9ff94d0900c815e8650fda2cef
BLAKE2b-256 ea302daad20d1da1f7d045c38dc489bb36a417eee826a150c85c0a54f6767288

See more details on using hashes here.

File details

Details for the file bboxpy-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: bboxpy-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for bboxpy-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 900fdf1534c8f6aab7f047a149125646e9857bebbf003ead4ca8d85b4b7e8afe
MD5 55e0a34a3db53e4e749c1422d2fb9445
BLAKE2b-256 adc3f1e447aaed4b14a32fa38209aa25ba8134d5ecd0a0d86a6ede12404d771c

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