Skip to main content

Provides asynchronous authentication and access to Freebox servers

Project description

PyPI GitHub Release Python Version License

Read the documentation at https://freebox-api.readthedocs.io/ Tests Codecov GitHub Activity

pre-commit Black

Features

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.

freebox-api 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 freebox-api in a synchronous manner.

Requirements

  • TODO

Installation

You can install freebox-api via pip from PyPI:

$ pip install freebox-api

Or manually download the last version from github and install it with Poetry

$ git clone https://github.com/hacf-fr/freebox-api.git
$ python poetry install

Usage

# Import the freebox-api package.
from freebox_api 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/

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the GNU GPL v3 license, freebox-api is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from @cjolowicz’s Hypermodern Python Cookiecutter template.

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

freebox_api-1.2.2.tar.gz (39.9 kB view details)

Uploaded Source

Built Distribution

freebox_api-1.2.2-py3-none-any.whl (48.5 kB view details)

Uploaded Python 3

File details

Details for the file freebox_api-1.2.2.tar.gz.

File metadata

  • Download URL: freebox_api-1.2.2.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.8

File hashes

Hashes for freebox_api-1.2.2.tar.gz
Algorithm Hash digest
SHA256 a5e30098a2f9ef59cdda6ae837fc703ca472453e55807f2ec63aab0f2409d548
MD5 7f60b823a2bc5fb27db81b02da1a02ca
BLAKE2b-256 3e9132eeb16353873db1b5282772d397b66e3e04ed395c3036051d1404739340

See more details on using hashes here.

File details

Details for the file freebox_api-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: freebox_api-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 48.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.8

File hashes

Hashes for freebox_api-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 467ece57e935b0e279b1fd60a619ba252bf8edc3e200d9cf39f2a2055ed4f31d
MD5 2a759cdf98d9466000ff7d2d998532f7
BLAKE2b-256 3cc5bd1f2e2913d28ffbc4625eaeb83c765c51d18d9c0396a9f6cc6e58464c89

See more details on using hashes here.

Supported by

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