Communicate with the AVM FRITZ!Box
Project description
Python-Tool to communicate with the AVM Fritz!Box. Uses the TR-064 protocol over UPnP.
Installation:
For installation use pip
$ pip install fritzconnection or $ pip install fritzconnection[qr]
The latter will enable QR-code creation for wifi login.
Quickstart:
Using fritzconnection is as easy as:
from fritzconnection import FritzConnection fc = FritzConnection(address='192.168.178.1') fc.reconnect() # get a new external ip from the provider print(fc) # print router model informations
In general FritzConnection can execute every action provided by the (model-specific) API. For i.e. this can be network settings, status informations, access to home automation devices and much more.
The basic method FritzConnection provides to access the FritzOS-API is the call_action() method. A reconnection by means of call_action() would look like this:
fc = FritzConnection(address='192.168.178.1') fc.call_action("WANIPConn1", "ForceTermination")
The package comes with a library providing modules as examples how to implement applications on top of FritzConnection.
Documentation
The full documentation and release notes are at https://fritzconnection.readthedocs.org
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
Hashes for fritzconnection-1.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74228e711f699537d498648d62333a3336459383957a8c7863b1dadedd3a9928 |
|
MD5 | d45b928e5c76cb2708d28c253def390a |
|
BLAKE2b-256 | f264c445b0e43e5308f9406eab55eb5d8d0e01cee5a170097be8f1b3a4c407d0 |