def ip_addr(interface):
    try:
        return netifaces.ifaddresses(interface)[netifaces.AF_INET][0]['addr']
    except KeyError:
        raise ValueError(_("You have selected an invalid interface"))
Default method to get UserForm Class
dataset/ETHPy150Open nils-werner/zget/zget/utils.py/ip_addr--crossover with--dataset/ETHPy150Open Net-ng/kansha/kansha/user/user_profile.py/get_userform