The fritzconnection package is available on PyPi and installable by pip

$ pip install fritzconnection

This installation will also install the required package requests. If this does not work (for whatever reason) requests can also installed by pip:

$ pip install requests

It is not necessary, but good practice, to do the installation in a virtual environment – either by means of venv or conda (comes with miniconda or anaconda).

fritzconnection runs with Python 3.6 or newer (older versions are not supported).