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 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


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.9.1.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fritzconnection-1.9.1-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fritzconnection-1.9.1.tar.gz
  • Upload date:
  • Size: 36.0 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.9.1.tar.gz
Algorithm Hash digest
SHA256 244f74d62e426465108654d422d3a9e484c857b5bfaf088b623860f1874dd715
MD5 7f26dbeb48e9f189df4482bbc098069a
BLAKE2b-256 b2415e4bd3e1c2e4dcd79ed929ccf9d9cd6ac7d83bc9376e48078282ecdf5154

See more details on using hashes here.

File details

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

File metadata

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

Hashes for fritzconnection-1.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9daa9a6c8366a77a2617b34b1db9b2191bb21ba638be35d691541a0892363a16
MD5 1dd319094c6c890e8a7a40259ee2d7b9
BLAKE2b-256 2d250a6e58b1fcee031017ab700c21b79b037636ae2ec099c8ece25333233472

See more details on using hashes here.

Supported by

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