Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiosysbus-1.0.5.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

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

aiosysbus-1.0.5-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file aiosysbus-1.0.5.tar.gz.

File metadata

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

File hashes

Hashes for aiosysbus-1.0.5.tar.gz
Algorithm Hash digest
SHA256 0733e84e469cfac6a0b3c2e81591cf2a7cc2f32f5a8886782b7a5ca621e02752
MD5 9157f03d235ad5620b50fbce9a616168
BLAKE2b-256 b0e1b53c463dde3066084512500747e33fbde6ff98398a2f37798923cb3ddd89

See more details on using hashes here.

File details

Details for the file aiosysbus-1.0.5-py3-none-any.whl.

File metadata

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

File hashes

Hashes for aiosysbus-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fa2d095211c887e93d6736ebc4d2f0a18927c7dd2dd690502943d5e0db1288de
MD5 1c46fee57f57a02d52873ad4f59774bb
BLAKE2b-256 1e46849870b7ea24f32791c9604b0b54a4860f1a9aa7eb4a8e0cb8c33037bde4

See more details on using hashes here.

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