Skip to main content

Provides asynchronous authentication and access to Freebox servers

Project description

aiofreepybox

Easily manage your freebox in Python using the Freebox OS API. Check your calls, manage your contacts, configure your dhcp, disable your wifi, monitor your LAN activity and many others, on LAN or remotely.

aiofreepybox is a python library implementing the freebox OS API. It handles the authentication process and provides a raw access to the freebox API in an asynchronous manner.

This project is based on fstercq/freepybox, which provides the same features as aiofreepybox in a synchronous manner.

Install

Use the PIP package manager

$ pip install aiofreepybox

Or manually download and install the last version from github

$ git clone https://github.com/stilllman/aiofreepybox.git
$ python setup.py install

Get started

# Import the aiofreepybox package.
from aiofreepybox import Freepybox

async def reboot()
    # Instantiate the Freepybox class using default options.
    fbx = Freepybox()

    # Connect to the freebox with default options. 
    # Be ready to authorize the application on the Freebox.
    await fbx.open('192.168.0.254')

    # Do something useful, rebooting your freebox for example.
    await fbx.system.reboot()

    # Properly close the session.
	await fbx.close()

Have a look at the example.py for a more complete overview.

Notes on HTTPS

When you access a Freebox with its default-assigned domain (ending in fbxos.fr), the library verifies its certificate by automatically trusting the Freebox certificate authority. If you want to avoid this, you can setup a custom domain name which will be associated with a Let's Encrypt certificate.

Resources

Freebox OS API documentation : http://dev.freebox.fr/sdk/os/

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

aiofreepybox-0.0.6.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

aiofreepybox-0.0.6-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file aiofreepybox-0.0.6.tar.gz.

File metadata

  • Download URL: aiofreepybox-0.0.6.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

File hashes

Hashes for aiofreepybox-0.0.6.tar.gz
Algorithm Hash digest
SHA256 b82548c941b5429a6e1a9dafea9b2d32f0a428cfd72ac272f4f1ff5ddc170772
MD5 41dbf72c065234a794247098e12b34e0
BLAKE2b-256 243172d75649aadbff25323cf385846caec17d43f5e75ea5604964660b176237

See more details on using hashes here.

File details

Details for the file aiofreepybox-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: aiofreepybox-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 44.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

File hashes

Hashes for aiofreepybox-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dc2c524e57e9bdd88203eb15c5f74a7cefc80bacc7e3dc2bf0dc6b1a18f379fb
MD5 544a564bf01997ec0ef6a815ee7c4552
BLAKE2b-256 4c216091836fe75c0c0dc96bb5b724025e864ba47671df7a2b0430c4401c6409

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