Communicate with the AVM FRITZ!Box
Project description
Python-Tool to communicate with the AVM FritzBox. Uses the TR-064 protocol over UPnP.
Installation:
pip install fritzconnection
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 WLAN settings, internet connection and device status informations, home automation services and much more.
The central 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 some modules as examples how to implement applications on top of FritzConnection.
The package also allows to monitor phone calls in real time by means of the FritzMonitor class (new in 1.4.0):
from fritzconnection import FritzMonitor fm = FritzMonitor(address='192.168.178.1') # default ip for most routers queue = fm.start() # start monitoring: provides a queue.Queue instance # do queue handling here fm.stop() # stop monitoring
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
File details
Details for the file fritzconnection-1.8.0.tar.gz
.
File metadata
- Download URL: fritzconnection-1.8.0.tar.gz
- Upload date:
- Size: 36.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63460d9a6c1ca3a0d56c211c48bbb5f971e41fec16ba0de0f4ad9207293d1359 |
|
MD5 | c2dd103464598da109a238d23c4bbd45 |
|
BLAKE2b-256 | 6a69c6e2a77f6a48539053312571f4fab29783d42ddb3b9da96c14fe3dd19551 |
Provenance
File details
Details for the file fritzconnection-1.8.0-py3-none-any.whl
.
File metadata
- Download URL: fritzconnection-1.8.0-py3-none-any.whl
- Upload date:
- Size: 49.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cf6c49c33796c5693fcf8ea1b04fc793417d504ce007c00b34af104876fca5f |
|
MD5 | 11bee11379c8cfb7ba94ea48873a7a18 |
|
BLAKE2b-256 | 20c742c65087c22dfadd9193daa4ec3803745fb4b483a4540ca068ea1638bab9 |