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(password='xxxxxx')

    # Connect. (optional)
    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 bbox for example.
    await bbox.device.async_reboot()

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

    #Call api (raw mode)
    summary = await bbox.async_raw_request(method="get", path="device/summary")
    print(summary)


if __name__ == "__main__":
    loop = asyncio.new_event_loop()
    asyncio.set_event_loop(loop)
    asyncio.run(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.3.8.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bboxpy-1.3.8-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bboxpy-1.3.8.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for bboxpy-1.3.8.tar.gz
Algorithm Hash digest
SHA256 71f41484ef0cd46b76f005d0713bc8628a2e5090a9ae09e2d9f38536c83c5989
MD5 53d78d6fa08798ebc76aa9c182d3693d
BLAKE2b-256 12dd68a3df27f978ed1e38ea2d7b7fdbb7b7db6daa87893286ae78421f2545ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for bboxpy-1.3.8.tar.gz:

Publisher: python-publish.yml on cyr-ius/bboxpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: bboxpy-1.3.8-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for bboxpy-1.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 369720aa0d993b0c273edae7cf57bf97b7296ec1111ecd3e8ad30de674e52a73
MD5 28b1eb44d128d34a9ae3838fe2ba72ea
BLAKE2b-256 09d862d5082fcd0a55ee640a5696c3123f2b461f9d7c93cdb8c418e81197c86b

See more details on using hashes here.

Provenance

The following attestation bundles were made for bboxpy-1.3.8-py3-none-any.whl:

Publisher: python-publish.yml on cyr-ius/bboxpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page