Binary package “python3-netifaces” in ubuntu oracular

portable network interface information - Python 3.x

 netifaces provides a (hopefully portable-ish) way for Python programmers to
 get access to a list of the network interfaces on the local machine, and to
 obtain the addresses of those network interfaces.
 .
 This package contains the module for Python 3.x.