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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bboxpy-1.1.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 248ebc0cf2638cbdc080ccaad634e1b674520d8d1ba01515237eee79cc93ded1
MD5 941b5410302778a9feb6872f7d5f2cc6
BLAKE2b-256 a8f5274cea035a35886f07b4ca0afe96d2c4509184642bd7598677c976199662

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bboxpy-1.1.1-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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 784903d6920c823af0eeb2cc2b0e2a41fecb3f7f48d4a1647d8c08e2da8ecca9
MD5 b804e89f9e88885e27e2b933049f558b
BLAKE2b-256 bf44997e7b11ab380d4047ea3bbb8b11fec6610536f37cb66ad6f888a3267574

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