Provides asynchronous authentication and access to Livebox
Project description
aiosysbus
Manage your Livebox in Python
Easily manage your Livebox in Python. Check your config, configure your dhcp, disable your wifi, monitor your LAN activity and many others, on LAN or remotely.
aiosysbus is a python library implementing fir the Livebox v3.
This project is based on stilllman/aiofreepybox, which provides the same features as aiofreepybox in a synchronous manner.
WARNING
Version 1.0.0 and above makes all these calls asynchronously. It breaks the compatibility of previous codes
Install
Use the PIP package manager
$ pip install aiosysbus
Or manually download and install the last version from github
$ git clone https://github.com/cyr-ius/aiosysbus.git
$ python setup.py install
Get started
aiosysbus < 1.0.0
# Import the aiosysbus package.
from aiosysbus import AIOSysbus
async def reboot()
# Instantiate the Sysbus class using default options.
lvbx = AIOSysbus('192.168.1.1','80','xxxxxx')
# Connect to the livebox with default options.
lvbx.connect()
# Do something useful, rebooting your livebox for example.
lvbx.system.reboot()
# Properly close the session.
lvbx.close()
aiosysbus >= 1.0.0
import asyncio
import logging
async def async_main() -> None:
# Instantiate the Sysbus class using default options.
api = AIOSysbus(username=xxxx, password=xxxx, host=HOST)
# Connect to the livebox.
await api.async_connect()
# Query example
parameters = {"parameters": {"expression": {"wifi": "wifi && .Active==False"}}}
devices = await api.devices.async_get_devices(parameters)
await api.async_close()
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(async_main())
Have a look at the example.py for a more complete overview.
Notes on HTTPS
Not implemented
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aiosysbus-1.1.8.tar.gz
.
File metadata
- Download URL: aiosysbus-1.1.8.tar.gz
- Upload date:
- Size: 42.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f78d8047af5b7d13430571b8b7d8215fd0517a508b5e6f9608677578491a90d |
|
MD5 | 349558582d6f9e43998a91da7fccb452 |
|
BLAKE2b-256 | 65ab2cebf7fadb516b0de298c5b136fa8a19331561806ea967b9667463e5d13c |
File details
Details for the file aiosysbus-1.1.8-py3-none-any.whl
.
File metadata
- Download URL: aiosysbus-1.1.8-py3-none-any.whl
- Upload date:
- Size: 40.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f160bae567ef5272a6e5837e717f8ec6cf3bc9724e606409acf3d118124bb4e |
|
MD5 | 8cef9e0355b9ca2d9f3bb34a92664dc3 |
|
BLAKE2b-256 | aad4377f16b75f0ee922d47844b3355e71c047e10739a81854e0a6e1b4ee616b |