forked from pool/python-fritzconnection
* New method `get_wifi_qr_code()` for QR-code creation for wifi-access
* New method `channel_info
* FritzHomeAutomation: New method `device_information
* FritzConnection: new command line option `-R` to reboot the system
* New method `get_generic_host_entries` returning a generator to iterate over
all entries as reported by the method `get_generic_host_entry`.
* The methods `get_active_hosts` and `get_hosts_info` provide additional host
attributes
* Refactoring of the logging module `fritzconnection.core.logger` (introduced
in 1.7.0). Now emitting messages from INFO-level and up by default.
* Connection errors with the router raised from the underlying `urllib3`
library are caught and raised again as FritzConnectionException preserving
the connection error information
* bugfix: logger deactivated by default
* Tests extended for Python 3.10
* `enable` and `disable` to enable and disable a wlan network.
* `get_password` and `set_password` to get the current password or set a new
one for a wlan network.
* New FritzGuestWLAN library class.
* New FritzConnection method `reboot`.
* New logging module `fritzconnection.core.logger`.
* New arguments for FritzConnection: `pool_connections` and `pool_maxsize` to
adapt the default urllib3 settings (used by requests). (#114).
* New properties `FritzStatus.device_uptime` and
`FritzStatus.connection_uptime``; the latter a replacement for
`FritzStatus.uptime` – still existing as an alias.
* bugfix: html-escape arguments in case that special characters are allowed
by the protocol.
* bugfix: `FritzStatus.bytes_sent` will return the 32 bit value from older
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fritzconnection?expand=0&rev=7
80 lines
2.3 KiB
RPMSpec
80 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-fritzconnection
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
%global pythons python3
|
|
Name: python-fritzconnection
|
|
Version: 1.9.0
|
|
Release: 0
|
|
Summary: A Python module to talk to a AVM fritzbox
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/kbr/fritzconnection/
|
|
Source: https://github.com/kbr/fritzconnection/archive/%{version}.tar.gz#/fritzconnection-%{version}.tar.gz
|
|
BuildRequires: %{python_module lxml}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-lxml
|
|
Requires: python-requests
|
|
Requires: python-setuptools
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
fritzconnection is a Python library to communicate with the AVM
|
|
Fritz!Box by the TR-064 protocol.
|
|
This allows to read status-informations from the box and to read
|
|
and change configuration settings and state.
|
|
|
|
%prep
|
|
%setup -q -n fritzconnection-%{version}
|
|
|
|
%build
|
|
export LC_ALL=C.utf-8
|
|
%python_build
|
|
|
|
%install
|
|
export LC_ALL=C.utf-8
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
|
|
# Don't run functional tests that require connections to a physical fritzbox router
|
|
rm fritzconnection/tests/test_functional.py
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt
|
|
%doc README.rst
|
|
%{_bindir}/fritzcall
|
|
%{_bindir}/fritzconnection
|
|
%{_bindir}/fritzhomeauto
|
|
%{_bindir}/fritzhosts
|
|
%{_bindir}/fritzmonitor
|
|
%{_bindir}/fritzphonebook
|
|
%{_bindir}/fritzstatus
|
|
%{_bindir}/fritzwlan
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|