[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#996563: ITP: ifcfg -- Python cross-platform network interface discovery (ifconfig/ipconfig/ip)



On Tue, Dec 21, 2021 at 9:36 AM Jochen Sprickerhof <jspricke@debian.org> wrote:
Hi Jose,

* Jose Luis Rivero <jrivero@osrfoundation.org> [2021-10-15 14:36]:
>* Package name    : ifcfg
>  Version         : 0.22
>  Upstream Author : BJ Dierkes
>* URL             : https://github.com/ftao/python-ifcfg
>* License         : BSD
>  Programming Lang: Python
>  Description     : Python cross-platform network interface discovery (ifconfig/ipconfig/ip)
>
>Ifcfg is a cross-platform library for parsing ifconfig and ipconfig output in
>Python. It is useful for pulling information such as IP, Netmask, MAC Address,
>Hostname, etc.

I'm not sure this should be part of Debian. Parsing command line tools
is known to be brittle and ifconfig is a well known example for this.
There is `ip -json` to provide a more machine readable output but it
does not seem to be used by ifcfg.

Also there is already python3-psutil and python3-netifaces in Debian,
providing the same information.

We were specifically looking into the features related to the interface flags which were
not implemented in the psutil or netifaces at the time of writing.

We changed the approach and find some dedicated time for trying to implement these
missing features in psutils. https://github.com/giampaolo/psutil/pull/2037



Reply to: