Skip to main content

Communicate with the AVM FRITZ!Box

Project description

Python versions https://img.shields.io/pypi/l/fritzconnection.svg

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


Download files

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

Source Distribution

fritzconnection-1.7.2.tar.gz (36.2 kB view details)

Uploaded Source

Built Distribution

fritzconnection-1.7.2-py3-none-any.whl (48.9 kB view details)

Uploaded Python 3

File details

Details for the file fritzconnection-1.7.2.tar.gz.

File metadata

  • Download URL: fritzconnection-1.7.2.tar.gz
  • Upload date:
  • Size: 36.2 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

Hashes for fritzconnection-1.7.2.tar.gz
Algorithm Hash digest
SHA256 6fa65b0f14a74438a010abdbf2201e464cf8e43ab99349b8912c019dbf361b1b
MD5 daca555622515b1e152c952687c16a69
BLAKE2b-256 ef36399d7c7d060bf0a30d270aa4476e3737f51d584f320e33314c3032a42926

See more details on using hashes here.

Provenance

File details

Details for the file fritzconnection-1.7.2-py3-none-any.whl.

File metadata

  • Download URL: fritzconnection-1.7.2-py3-none-any.whl
  • Upload date:
  • Size: 48.9 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

Hashes for fritzconnection-1.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 99fa2ddb01ba45c1b0e5b66551e3120766686c839144c4d6352d0a20d81dc647
MD5 ca9fb7d1e1e553315f62fe74fa0d5628
BLAKE2b-256 639b0b7959644667330cf638bc9fac71b8d6c25dd0d799fb3270c37445f3d7bc

See more details on using hashes here.

Provenance

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