Instruct an AVM FRITZ!Box via UPnP to reconnect.
This is usually realized with tools like Netcat or cURL. However, when developing in Python anyway, it is more convenient to integrate a native implementation. This one requires Python 2.5 or higher.
UPnP (Universal Plug and Play) control messages are based on SOAP, which is itself based on XML, and transmitted over HTTP.
Make sure UPnP is enabled on the FRITZ!Box.
A reconnect only takes a few second while restarting the box takes about up to a minute; not counting the time needed to navigate through the web interface.
Licensed under the terms of the MIT license.
Created by Jochen Kupperschmidt.