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

Uploaded Source

Built Distribution

bboxpy-1.1.6-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bboxpy-1.1.6.tar.gz
Algorithm Hash digest
SHA256 0008675739404f6c881d05c8386d7eee007b97f1fdefc55c7599cca76204ef58
MD5 4ec30d341f3c56957c2a1558b40518c6
BLAKE2b-256 63d7866426323f1f4ffe2a8b0e090c4d1931efc757dda75b9869b611bc48e60e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bboxpy-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1f837af12322b7590fbc85d32c16b96dd3e70e4262801d1869e58fb5eac1b7f0
MD5 3577bcf779864a8570d62f3b2b31fef1
BLAKE2b-256 0bd1128ff192d67136d277596bfdcb9ac0f701a9e92a18ab05e96767ff9ae115

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