Metadata-Version: 2.1
Name: bboxpy
Version: 1.0.8
Summary: Fetch data from bouygues bbox
Author-email: Cyr-ius <cyr-ius@ipocus.net>
License: GPL-3
Keywords: bouygues,async,bbox
Platform: any
Classifier: Programming Language :: Python
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Topic :: Home Automation
Requires-Python: >=3.10.0
Description-Content-Type: text/markdown
License-File: LICENSE

# 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

```bash
$ pip install bboxpy
```

Or manually download and install the last version from github

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


## Get started

```python
# 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())

```
